@@ -24,7 +24,7 @@ use rustc_hir::HirId;
2424use rustc_index:: IndexVec ;
2525use rustc_middle:: hir:: nested_filter;
2626use rustc_middle:: lint:: {
27- reveal_actual_level , struct_lint_level , LevelAndSource , LintExpectation , LintLevelSource ,
27+ lint_level , reveal_actual_level , LevelAndSource , LintExpectation , LintLevelSource ,
2828 ShallowLintLevelMap ,
2929} ;
3030use rustc_middle:: query:: Providers ;
@@ -1062,7 +1062,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
10621062 if self . lint_added_lints {
10631063 let lint = builtin:: UNKNOWN_LINTS ;
10641064 let ( level, src) = self . lint_level ( builtin:: UNKNOWN_LINTS ) ;
1065- struct_lint_level (
1065+ lint_level (
10661066 self . sess ,
10671067 lint,
10681068 level,
@@ -1096,7 +1096,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
10961096 /// Used to emit a lint-related diagnostic based on the current state of
10971097 /// this lint context.
10981098 ///
1099- /// [`struct_lint_level `]: rustc_middle::lint::struct_lint_level #decorate-signature
1099+ /// [`lint_level `]: rustc_middle::lint::lint_level #decorate-signature
11001100 #[ rustc_lint_diagnostics]
11011101 #[ track_caller]
11021102 pub ( crate ) fn opt_span_lint (
@@ -1107,7 +1107,7 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
11071107 decorate : impl for <' a , ' b > FnOnce ( & ' b mut DiagnosticBuilder < ' a , ( ) > ) ,
11081108 ) {
11091109 let ( level, src) = self . lint_level ( lint) ;
1110- struct_lint_level ( self . sess , lint, level, src, span, msg, decorate)
1110+ lint_level ( self . sess , lint, level, src, span, msg, decorate)
11111111 }
11121112
11131113 #[ track_caller]
@@ -1118,15 +1118,15 @@ impl<'s, P: LintLevelsProvider> LintLevelsBuilder<'s, P> {
11181118 decorate : impl for < ' a > DecorateLint < ' a , ( ) > ,
11191119 ) {
11201120 let ( level, src) = self . lint_level ( lint) ;
1121- struct_lint_level ( self . sess , lint, level, src, Some ( span) , decorate. msg ( ) , |lint| {
1121+ lint_level ( self . sess , lint, level, src, Some ( span) , decorate. msg ( ) , |lint| {
11221122 decorate. decorate_lint ( lint) ;
11231123 } ) ;
11241124 }
11251125
11261126 #[ track_caller]
11271127 pub fn emit_lint ( & self , lint : & ' static Lint , decorate : impl for < ' a > DecorateLint < ' a , ( ) > ) {
11281128 let ( level, src) = self . lint_level ( lint) ;
1129- struct_lint_level ( self . sess , lint, level, src, None , decorate. msg ( ) , |lint| {
1129+ lint_level ( self . sess , lint, level, src, None , decorate. msg ( ) , |lint| {
11301130 decorate. decorate_lint ( lint) ;
11311131 } ) ;
11321132 }
0 commit comments