rust/compiler/rustc_passes/src
Stuart Cook 599b08ada8
Rollup merge of #140874 - mejrs:rads, r=WaffleLapkin
make `rustc_attr_parsing` less dominant in the rustc crate graph

It has/had a glob re-export of `rustc_attr_data_structures`, which is a crate much lower in the graph, and a lot of crates were using it *just* (or *mostly*) for that re-export, while they can rely on `rustc_attr_data_structures` directly.

Previous graph:
![graph_1](https://github.com/user-attachments/assets/f4a5f13c-4222-4903-b56d-28c83511fcbd)

Graph with this PR:
![graph_2](https://github.com/user-attachments/assets/1e053d9c-75cc-402b-84df-86229c98277a)

The first commit keeps the re-export, and just changes the dependency if possible. The second commit is the "breaking change" which removes the re-export, and "explicitly" adds the `rustc_attr_data_structures` dependency where needed. It also switches over some src/tools/*.

The second commit is actually a lot more involved than I expected. Please let me know if it's a better idea to back it out and just keep the first commit.
2025-05-19 13:24:54 +10:00
..
liveness compiler: Use size_of from the prelude instead of imported 2025-03-07 13:37:04 -08:00
abi_test.rs Replace infallible name_or_empty methods with fallible name methods. 2025-04-17 09:50:52 +10:00
check_attr.rs don't depend on rustc_attr_parsing if rustc_data_structures will do 2025-05-09 23:16:55 +02:00
check_export.rs Initial support for dynamically linked crates 2025-05-04 22:03:15 +03:00
dead.rs impl !PartialOrd for HirId 2025-04-03 09:22:21 +00:00
debugger_visualizer.rs Replace infallible name_or_empty methods with fallible name methods. 2025-04-17 09:50:52 +10:00
diagnostic_items.rs Move methods from Map to TyCtxt, part 5. 2025-04-02 10:00:46 +11:00
entry.rs use slice::contains where applicable 2025-03-28 12:21:21 +00:00
errors.rs Initial support for dynamically linked crates 2025-05-04 22:03:15 +03:00
hir_id_validator.rs Adjust Map's to_string functionality. 2025-03-12 08:30:03 +11:00
input_stats.rs Add {ast,hir,thir}::PatKind::Missing variants. 2025-03-28 09:18:57 +11:00
lang_items.rs Initial support for dynamically linked crates 2025-05-04 22:03:15 +03:00
layout_test.rs Replace infallible name_or_empty methods with fallible name methods. 2025-04-17 09:50:52 +10:00
lib.rs update cfg(bootstrap) 2025-05-12 15:33:37 +02:00
lib_features.rs don't depend on rustc_attr_parsing if rustc_data_structures will do 2025-05-09 23:16:55 +02:00
liveness.rs Rollup merge of #139782 - xizheyin:issue-139627, r=wesleywiser 2025-04-17 06:25:16 +02:00
loops.rs Move methods from Map to TyCtxt, part 4. 2025-03-12 08:55:37 +11:00
naked_functions.rs Add naked_functions_rustic_abi feature gate 2025-04-07 21:42:12 +02:00
reachable.rs Initial support for dynamically linked crates 2025-05-04 22:03:15 +03:00
stability.rs don't depend on rustc_attr_parsing if rustc_data_structures will do 2025-05-09 23:16:55 +02:00
upvars.rs Move methods from Map to TyCtxt, part 2. 2025-02-18 10:17:44 +11:00
weak_lang_items.rs Initial support for dynamically linked crates 2025-05-04 22:03:15 +03:00