Repository navigation
destringlyfy lint infrastructure - #164607
Conversation
|
Some changes occurred in compiler/rustc_passes/src/check_attr.rs cc @jdonszelmann, @JonathanBrouwer Some changes occurred in compiler/rustc_attr_ir cc @jdonszelmann, @JonathanBrouwer Some changes occurred in compiler/rustc_attr_parsing |
|
|
|
haven't updated clippy yet. But I think I can do a perf run. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
destringlyfy lint infrastructure
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (3dcd667): comparison URL. Overall result: ❌✅ regressions and improvements - BENCHMARK(S) FAILEDBenchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=never rustc-perf ❗ ❗ ❗ ❗ ❗
❗ ❗ ❗ ❗ ❗ Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -1.0%, secondary -1.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.2%, secondary 0.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.0%, secondary -0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 489.513s -> 489.49s (-0.00%) |
|
huh, any ideas why this might happenened in libc? |
it's one of the cases where a function takes |
This comment has been minimized.
This comment has been minimized.
|
cc @rust-lang/clippy |
This comment has been minimized.
This comment has been minimized.
No need to apologize, all reviews are welcome :) To answer your question w/r to spans: it would make comparing different And |
|
Also, possible followups:
|
|
@bors try @rust-timer queue |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@rustbot ready |
|
@bors rollup=iffy |
destringlyfy lint infrastructure
Currently, lints are passed as strings and parsed/split/reformatted/compared/etc in many many places. It's not always clear whether that string includes the tool or not.
Instead, they are passed around as:
```rust
pub struct LintName {
pub tool: Option<Symbol>,
pub name: Symbol,
}
```
r? @JonathanBrouwer
…uwer Rollup of 7 perf-sensitive pull requests Successful merges: - #163339 (MIR move elimination [5/6]: Storage reconstruction) - #163525 (Move lang item collection to the resolver) - #163928 (do not prefer trivially true candidates with `-Znext-solver` ) - #164341 (Expand an early return case in `coerce_unsized`) - #164484 (Use adaptive sparse encoding for metadata tables) - #164607 (destringlyfy lint infrastructure) - #165160 (New solver opts for diesel (part 3)) > [!WARNING] > This rollup conflicts with pending auto build #165178 and may need to be recreated if the pending build succeeds.
…uwer Rollup of 7 perf-sensitive pull requests Successful merges: - #163339 (MIR move elimination [5/6]: Storage reconstruction) - #163525 (Move lang item collection to the resolver) - #163928 (do not prefer trivially true candidates with `-Znext-solver` ) - #164341 (Expand an early return case in `coerce_unsized`) - #164484 (Use adaptive sparse encoding for metadata tables) - #164607 (destringlyfy lint infrastructure) - #165160 (New solver opts for diesel (part 3)) > [!WARNING] > This rollup conflicts with pending auto build #165178 and may need to be recreated if the pending build succeeds.
…uwer Rollup of 7 perf-sensitive pull requests Successful merges: - #163339 (MIR move elimination [5/6]: Storage reconstruction) - #163525 (Move lang item collection to the resolver) - #163928 (do not prefer trivially true candidates with `-Znext-solver` ) - #164341 (Expand an early return case in `coerce_unsized`) - #164484 (Use adaptive sparse encoding for metadata tables) - #164607 (destringlyfy lint infrastructure) - #165160 (New solver opts for diesel (part 3)) > [!WARNING] > This rollup conflicts with pending auto build #165178 and may need to be recreated if the pending build succeeds.
…uwer Rollup of 7 perf-sensitive pull requests Successful merges: - #163339 (MIR move elimination [5/6]: Storage reconstruction) - #163359 (MIR move elimination [1.5/6]: Ensure ZSTs are always initialized) - #163525 (Move lang item collection to the resolver) - #163928 (do not prefer trivially true candidates with `-Znext-solver` ) - #164341 (Expand an early return case in `coerce_unsized`) - #164484 (Use adaptive sparse encoding for metadata tables) - #164607 (destringlyfy lint infrastructure)
Rollup merge of #164607 - mejrs:lint_name, r=JonathanBrouwer destringlyfy lint infrastructure Currently, lints are passed as strings and parsed/split/reformatted/compared/etc in many many places. It's not always clear whether that string includes the tool or not. Instead, they are passed around as: ```rust pub struct LintName { pub tool: Option<Symbol>, pub name: Symbol, } ``` r? @JonathanBrouwer
View all comments
Currently, lints are passed as strings and parsed/split/reformatted/compared/etc in many many places. It's not always clear whether that string includes the tool or not.
Instead, they are passed around as:
r? @JonathanBrouwer