about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-09 09:05:09 +0100
committerGitHub <noreply@github.com>2025-01-09 09:05:09 +0100
commitb593085a9ed610d041f6b7732026713b36b0da26 (patch)
treebb333a89c0de1e41f3d2f7f04558d678e4f54c6a /compiler/rustc_parse/src
parent04e87154bb4133ab553f01506e672ded68c7dd6f (diff)
parent933c4f5a811f2c73b82c35c5b759c2e6b0f5e2f0 (diff)
downloadrust-b593085a9ed610d041f6b7732026713b36b0da26.tar.gz
rust-b593085a9ed610d041f6b7732026713b36b0da26.zip
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.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions