diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-16 16:17:08 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-23 08:09:03 +1100 |
| commit | 82ca070c1680004da7d25abcc1d3d793d00abf06 (patch) | |
| tree | a85d3148676d1d0fbbdcb62463ee5d99961db29f /compiler | |
| parent | cfdea760f5ca36fdd04c8f18f3dac0bef66055cc (diff) | |
| download | rust-82ca070c1680004da7d25abcc1d3d793d00abf06.tar.gz rust-82ca070c1680004da7d25abcc1d3d793d00abf06.zip | |
Rename `TyCtxt::emit_lint` as `TyCtxt::emit_node_lint`.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_middle/src/lint.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_middle/src/ty/context.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/lint.rs b/compiler/rustc_middle/src/lint.rs index 1f87e5f5f94..7e8261729cc 100644 --- a/compiler/rustc_middle/src/lint.rs +++ b/compiler/rustc_middle/src/lint.rs @@ -249,7 +249,7 @@ pub fn explain_lint_level_source( /// for example: /// - [`TyCtxt::emit_spanned_lint`] /// - [`TyCtxt::node_span_lint`] -/// - [`TyCtxt::emit_lint`] +/// - [`TyCtxt::emit_node_lint`] /// - [`TyCtxt::node_lint`] /// - `LintContext::opt_span_lint` /// diff --git a/compiler/rustc_middle/src/ty/context.rs b/compiler/rustc_middle/src/ty/context.rs index cb9fbde35d4..1ea80aa4fb5 100644 --- a/compiler/rustc_middle/src/ty/context.rs +++ b/compiler/rustc_middle/src/ty/context.rs @@ -2111,7 +2111,7 @@ impl<'tcx> TyCtxt<'tcx> { /// Emit a lint from a lint struct (some type that implements `DecorateLint`, typically /// generated by `#[derive(LintDiagnostic)]`). #[track_caller] - pub fn emit_lint( + pub fn emit_node_lint( self, lint: &'static Lint, id: HirId, |
