Skip to content

Commit e30ed15

Browse files
Properly handle different defaults for severity of lints
Previously all lints were assumed to be `#[warn]`, and we had a hand-coded list of `#[allow]` exceptions. Now the severity is autogenerated from rustdoc output. Also support lints that change status between editions, and the `warnings` lint group.
1 parent 86a850d commit e30ed15

File tree

8 files changed

+6200
-969
lines changed

8 files changed

+6200
-969
lines changed

crates/ide-completion/src/completions/attribute/lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub(super) fn complete_lint(
1111
existing_lints: &[ast::Path],
1212
lints_completions: &[Lint],
1313
) {
14-
for &Lint { label, description } in lints_completions {
14+
for &Lint { label, description, .. } in lints_completions {
1515
let (qual, name) = {
1616
// FIXME: change `Lint`'s label to not store a path in it but split the prefix off instead?
1717
let mut parts = label.split("::");

0 commit comments

Comments
 (0)