about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-01 15:50:48 +0000
committerbors <bors@rust-lang.org>2024-09-01 15:50:48 +0000
commita48861a6279b386ad2b9c3518490181d238fe727 (patch)
tree057456374040988ed4fd1d60e72825c6c418a41a /compiler/rustc_codegen_llvm/src/errors.rs
parent1a1cc050d8efc906ede39f444936ade1fdc9c6cb (diff)
parentff1fc68c11b04e7336c6deef210418f73efd6680 (diff)
downloadrust-a48861a6279b386ad2b9c3518490181d238fe727.tar.gz
rust-a48861a6279b386ad2b9c3518490181d238fe727.zip
Auto merge of #127313 - cjgillot:single-expect, r=jieyouxu
Rewrite lint_expectations in a single pass.

This PR aims at reducing the perf regression from https://github.com/rust-lang/rust/pull/120924#issuecomment-2202486203 with drive-by simplifications.

Basically, instead of using the lint level builder, which is slow, this PR splits `lint_expectations` logic in 2:
- listing the `LintExpectations` is done in `shallow_lint_levels_on`, on a per-owner basis;
- building the unstable->stable expectation id map is done by iterating on attributes.

r? ghost for perf
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions