diff options
| author | bors <bors@rust-lang.org> | 2024-01-23 00:06:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-23 00:06:57 +0000 |
| commit | 0011fac90d2846ea3c04506238ff6e4ed3ce0efe (patch) | |
| tree | 790800883bc3195caaaa042ec32f3c0d2f6420ef /compiler/rustc_session/src/parse.rs | |
| parent | d6b151fc77e213bf637db0f12c1965ace3ffe255 (diff) | |
| parent | 15a4c4fc6f1bda15bbc6c40395ff709d1b7fd166 (diff) | |
Auto merge of #120017 - nnethercote:lint-api, r=oli-obk
Fix naming in the lint API Methods for emit lints are named very inconsistently. This PR fixes that up. r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_session/src/parse.rs')
| -rw-r--r-- | compiler/rustc_session/src/parse.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs index 16036e5be38..1cfaa49401d 100644 --- a/compiler/rustc_session/src/parse.rs +++ b/compiler/rustc_session/src/parse.rs @@ -144,7 +144,7 @@ pub fn feature_warn_issue( let mut err = sess.parse_sess.dcx.struct_span_warn(span, explain); add_feature_diagnostics_for_issue(&mut err, sess, feature, issue, false); - // Decorate this as a future-incompatibility lint as in rustc_middle::lint::struct_lint_level + // Decorate this as a future-incompatibility lint as in rustc_middle::lint::lint_level let lint = UNSTABLE_SYNTAX_PRE_EXPANSION; let future_incompatible = lint.future_incompatible.as_ref().unwrap(); err.is_lint(lint.name_lower(), /* has_future_breakage */ false); |
