rust/compiler/rustc_expand/src
Matthias Krüger b593085a9e
Rollup merge of #135247 - tgross35:stdlib-sym-list, r=oli-obk
Add a list of symbols for stable standard library crates

There are a few locations where the crate name is checked against an enumerated list of `std`, `core`, `alloc`, and `proc_macro`, or some subset thereof. In most cases when we are looking for any "standard library" crate, all four crates should be treated the same. Change this so the crates are listed in one place, and that list is used wherever a list of `std` crates is needed.

`test` could be considered relevant in some of these cases, but generally treating it separate from the others seems preferable while it is unstable.

There are also a few places that Clippy will be able to use this.
2025-01-09 09:05:09 +01:00
..
mbe Rollup merge of #131522 - c410-f3r:unlock-rfc-2011, r=chenyukang 2024-12-26 21:56:47 -05:00
base.rs Rename PatKind::Lit to Expr 2025-01-08 07:34:59 +00:00
build.rs Rename PatKind::Lit to Expr 2025-01-08 07:34:59 +00:00
config.rs Add a list of symbols for stable standard library crates 2025-01-08 16:27:31 -05:00
errors.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
expand.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
lib.rs Add warn(unreachable_pub) to rustc_expand. 2024-08-27 12:40:38 +10:00
mbe.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
module.rs Speed up Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
placeholders.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
proc_macro_server.rs Speed up Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
proc_macro.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00