diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-08-06 16:09:13 +0200 |
|---|---|---|
| committer | Samuel Tardieu <sam@rfc1149.net> | 2025-08-06 16:30:31 +0200 |
| commit | 26911aa32cd4fd4b759a578ce3a244e0dcdad14c (patch) | |
| tree | 0f1e3f3bc646a602769c0556a8d1bb859028470d /compiler/rustc_parse/src/errors.rs | |
| parent | 7673826138e7fee1534b7bbf7bf4d8651c924166 (diff) | |
| download | rust-26911aa32cd4fd4b759a578ce3a244e0dcdad14c.tar.gz rust-26911aa32cd4fd4b759a578ce3a244e0dcdad14c.zip | |
Optimize `incompatible_msrv` lint
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.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
