rust/compiler
Aaron Hill 9e7ef659e1
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.
2020-09-04 13:10:23 -04:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Account for version number in NtIdent hack 2020-09-04 13:10:23 -04:00
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty Auto merge of #76170 - matklad:notrivia, r=petrochenkov 2020-09-02 03:19:38 +00:00
rustc_attr
rustc_builtin_macros Improve recovery on malformed format call 2020-09-02 13:18:19 +02:00
rustc_codegen_llvm pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
rustc_codegen_ssa Auto merge of #73996 - da-x:short-unique-paths, r=petrochenkov 2020-09-03 23:27:45 +00:00
rustc_data_structures Auto merge of #76233 - cuviper:unhasher, r=Mark-Simulacrum 2020-09-02 22:16:22 +00:00
rustc_driver Auto merge of #73996 - da-x:short-unique-paths, r=petrochenkov 2020-09-03 23:27:45 +00:00
rustc_error_codes Rollup merge of #76143 - jyn514:duplicate-builtin-macros, r=petrochenkov 2020-09-01 18:24:35 -07:00
rustc_errors rustc_{errors,session}: add delay_good_path_bug 2020-09-02 10:43:17 +03:00
rustc_expand Auto merge of #76170 - matklad:notrivia, r=petrochenkov 2020-09-02 03:19:38 +00:00
rustc_feature driver: replace lazy_static by SyncLazy from std 2020-09-01 22:06:47 +01:00
rustc_fs_util
rustc_graphviz
rustc_hir hir: replace lazy_static by SyncLazy from std 2020-09-01 22:06:47 +01:00
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Fix some unwanted uses of Debug formatting on user-facing messages 2020-09-02 10:40:10 +03:00
rustc_interface Auto merge of #73996 - da-x:short-unique-paths, r=petrochenkov 2020-09-03 23:27:45 +00:00
rustc_lexer lexer: Tiny improvement to shebang detection 2020-09-02 00:40:19 +03:00
rustc_lint rustc_lint: avoid trimmed paths for ty_find_init_error 2020-09-03 14:36:58 +03:00
rustc_macros pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
rustc_metadata
rustc_middle Auto merge of #76004 - richkadel:llvm-coverage-map-gen-6b.5, r=tmandry 2020-09-04 01:31:07 +00:00
rustc_mir Auto merge of #76004 - richkadel:llvm-coverage-map-gen-6b.5, r=tmandry 2020-09-04 01:31:07 +00:00
rustc_mir_build pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
rustc_parse Auto merge of #76160 - scileo:format-recovery, r=petrochenkov 2020-09-02 19:29:27 +00:00
rustc_parse_format
rustc_passes
rustc_plugin_impl
rustc_privacy
rustc_query_system
rustc_resolve Rollup merge of #76143 - jyn514:duplicate-builtin-macros, r=petrochenkov 2020-09-01 18:24:35 -07:00
rustc_save_analysis pretty: trim paths of unique symbols 2020-09-02 22:26:37 +03:00
rustc_serialize
rustc_session Auto merge of #76004 - richkadel:llvm-coverage-map-gen-6b.5, r=tmandry 2020-09-04 01:31:07 +00:00
rustc_span
rustc_symbol_mangling
rustc_target
rustc_trait_selection specialization_graph: avoid trimmed paths for OverlapError 2020-09-03 14:09:50 +03:00
rustc_traits
rustc_ty
rustc_typeck Fix some unwanted uses of Debug formatting on user-facing messages 2020-09-02 10:40:10 +03:00