about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/lib.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-09-04 13:10:23 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-09-04 13:10:23 -0400
commit9e7ef659e16464d892d0b84aa9828b76c0e5e4ca (patch)
treee5f448e754403a0dad939c24332201166ed8dc4c /compiler/rustc_codegen_llvm/src/lib.rs
parent80cacd77954b39a6bc205213faa8c82c97eb0055 (diff)
downloadrust-9e7ef659e16464d892d0b84aa9828b76c0e5e4ca.tar.gz
rust-9e7ef659e16464d892d0b84aa9828b76c0e5e4ca.zip
Account for version number in NtIdent hack
Issue #74616 tracks a backwards-compatibility hack for certain macros.
This has is implemented by hard-coding the filenames and macro names of
certain code that we want to continue to compile.

However, the initial implementation of the hack was based on the
directory structure when building the crate from its repository (e.g.
`js-sys/src/lib.rs`). When the crate is build as a dependency, it will
include a version number from the clone from the cargo registry (e.g.
`js-sys-0.3.17/src/lib.rs`), which would fail the check.

This commit modifies the backwards-compatibility hack to check that
desired crate name (`js-sys` or `time-macros-impl`) is a prefix of the
proper part of the path.

See https://github.com/rust-lang/rust/issues/76070#issuecomment-687215646
for more details.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/lib.rs')
0 files changed, 0 insertions, 0 deletions