Skip to content

Commit bc127a6

Browse files
committed
Remove unused LintExpectationId::get_lint_index.
1 parent 530a73f commit bc127a6

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

  • compiler/rustc_lint_defs/src

compiler/rustc_lint_defs/src/lib.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,6 @@ impl LintExpectationId {
118118
}
119119
}
120120

121-
pub fn get_lint_index(&self) -> Option<u16> {
122-
let (LintExpectationId::Unstable { lint_index, .. }
123-
| LintExpectationId::Stable { lint_index, .. }) = self;
124-
125-
*lint_index
126-
}
127-
128121
pub fn set_lint_index(&mut self, new_lint_index: Option<u16>) {
129122
let (LintExpectationId::Unstable { lint_index, .. }
130123
| LintExpectationId::Stable { lint_index, .. }) = self;

0 commit comments

Comments
 (0)