From bc127a6a4bc6c78e37d06caa0a129f7d7b3589ca Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Thu, 14 May 2026 14:15:55 +1000 Subject: [PATCH] Remove unused `LintExpectationId::get_lint_index`. --- compiler/rustc_lint_defs/src/lib.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/compiler/rustc_lint_defs/src/lib.rs b/compiler/rustc_lint_defs/src/lib.rs index 9fe45290f036..2e690c7185f8 100644 --- a/compiler/rustc_lint_defs/src/lib.rs +++ b/compiler/rustc_lint_defs/src/lib.rs @@ -118,13 +118,6 @@ pub fn is_stable(&self) -> bool { } } - pub fn get_lint_index(&self) -> Option { - let (LintExpectationId::Unstable { lint_index, .. } - | LintExpectationId::Stable { lint_index, .. }) = self; - - *lint_index - } - pub fn set_lint_index(&mut self, new_lint_index: Option) { let (LintExpectationId::Unstable { lint_index, .. } | LintExpectationId::Stable { lint_index, .. }) = self;