mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
Remove unused LintExpectationId::get_lint_index.
This commit is contained in:
@@ -118,13 +118,6 @@ pub fn is_stable(&self) -> bool {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_lint_index(&self) -> Option<u16> {
|
||||
let (LintExpectationId::Unstable { lint_index, .. }
|
||||
| LintExpectationId::Stable { lint_index, .. }) = self;
|
||||
|
||||
*lint_index
|
||||
}
|
||||
|
||||
pub fn set_lint_index(&mut self, new_lint_index: Option<u16>) {
|
||||
let (LintExpectationId::Unstable { lint_index, .. }
|
||||
| LintExpectationId::Stable { lint_index, .. }) = self;
|
||||
|
||||
Reference in New Issue
Block a user