diff options
| author | Alejandra González <blyxyas@gmail.com> | 2025-08-06 16:25:34 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-06 16:25:34 +0000 |
| commit | a4d43215b89819941f92c3ef5156de64c43d4a7b (patch) | |
| tree | dc1caba4b6424d0aa05d4736df7deea29b024166 /compiler/rustc_parse/src/errors.rs | |
| parent | 925710d73ec4471c2e0d253096c43d13c8e8bd7a (diff) | |
| parent | 26911aa32cd4fd4b759a578ce3a244e0dcdad14c (diff) | |
| download | rust-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
