Rename LintLevelsBuilder::struct_lint as LintLevelsBuilder::opt_span_lint.

This commit is contained in:
Nicholas Nethercote
2024-01-16 15:27:11 +11:00
parent 1881bfaa2b
commit 749afe2050
3 changed files with 3 additions and 3 deletions

View File

@@ -1099,7 +1099,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
/// [`struct_lint_level`]: rustc_middle::lint::struct_lint_level#decorate-signature
#[rustc_lint_diagnostics]
#[track_caller]
pub(crate) fn struct_lint(
pub(crate) fn opt_span_lint(
&self,
lint: &'static Lint,
span: Option<MultiSpan>,