about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorAlejandra González <blyxyas@gmail.com>2025-08-06 16:25:34 +0000
committerGitHub <noreply@github.com>2025-08-06 16:25:34 +0000
commita4d43215b89819941f92c3ef5156de64c43d4a7b (patch)
treedc1caba4b6424d0aa05d4736df7deea29b024166 /compiler/rustc_parse/src/errors.rs
parent925710d73ec4471c2e0d253096c43d13c8e8bd7a (diff)
parent26911aa32cd4fd4b759a578ce3a244e0dcdad14c (diff)
downloadrust-a4d43215b89819941f92c3ef5156de64c43d4a7b.tar.gz
rust-a4d43215b89819941f92c3ef5156de64c43d4a7b.zip
Optimize `incompatible_msrv` lint (#15422)
This limits repeated lookups in pre-checks (to determine if a MSRV
should be checked), especially when those require locking up an
interner:

- The `core` crate is looked up once when creating the lint, instead of
comparing the crate name with `sym::core` at every check.
- `span.ctxt().outer_expn_data()` is lookup up only once.

changelog: none
r? blyxyas
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions