diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-16 14:29:28 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-01-23 07:59:45 +1100 |
| commit | c56d71f418778a6957d01f54086592b0eb38b170 (patch) | |
| tree | 886aa518398c09df0e59270b3502322169074d8e /compiler/rustc_macros/src | |
| parent | d5fd0997291ca0135401a39dff25c8a9c13b8961 (diff) | |
| download | rust-c56d71f418778a6957d01f54086592b0eb38b170.tar.gz rust-c56d71f418778a6957d01f54086592b0eb38b170.zip | |
Rename `LintContext::struct_span_lint` as `LintContext::span_lint`.
Diffstat (limited to 'compiler/rustc_macros/src')
| -rw-r--r-- | compiler/rustc_macros/src/diagnostics/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_macros/src/diagnostics/mod.rs b/compiler/rustc_macros/src/diagnostics/mod.rs index d3a4e7ba7d1..135b9e32fe7 100644 --- a/compiler/rustc_macros/src/diagnostics/mod.rs +++ b/compiler/rustc_macros/src/diagnostics/mod.rs @@ -90,7 +90,7 @@ pub fn session_diagnostic_derive(s: Structure<'_>) -> TokenStream { /// Then, later, to emit the error: /// /// ```ignore (rust) -/// cx.struct_span_lint(INVALID_ATOMIC_ORDERING, fail_order_arg_span, AtomicOrderingInvalidLint { +/// cx.span_lint(INVALID_ATOMIC_ORDERING, fail_order_arg_span, AtomicOrderingInvalidLint { /// method, /// success_ordering, /// fail_ordering, |
