Stream: t-compiler/rust-analyzer

Topic: cfg_if


matklad (Oct 20 2020 at 10:55, on Zulip):

Implemented a quick hack to resolve cfg-if in std. It did work for std::os::unix, but not for std::arch. I wondered why, and, lo and behold, another magnificent hack:

https://github.com/rust-lang/rust/blob/554633534c550d20715e5e1576702b1f035586ad/library/core/src/lib.rs#L274-L292

bjorn3 (Oct 20 2020 at 10:56, on Zulip):

The same is done for backtrace to include it in libstd while backtrace itself depends on libstd.

Last update: Jul 28 2021 at 04:00UTC