about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/internal.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-03-08 12:13:39 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2024-03-11 10:06:34 +1100
commit43c06335cf2d1cc6b12fcfa5b8795d9becc52e8c (patch)
tree5d3cdc972bf6a1f59c4b4d5d32e94578f915a613 /compiler/rustc_lint/src/internal.rs
parente9f0d9be0e42decc34d236d86e9b9140c6168aa2 (diff)
downloadrust-43c06335cf2d1cc6b12fcfa5b8795d9becc52e8c.tar.gz
rust-43c06335cf2d1cc6b12fcfa5b8795d9becc52e8c.zip
Rename diagnostic derive things.
For increased consistency.

- session_diagnostic_derive    -> diagnostic_derive
- session_subdiagnostic_derive -> subdiagnostic_derive
- SubdiagnosticDeriveBuilder   -> SubdiagnosticDerive
Diffstat (limited to 'compiler/rustc_lint/src/internal.rs')
-rw-r--r--compiler/rustc_lint/src/internal.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/internal.rs b/compiler/rustc_lint/src/internal.rs
index 57fa14acdc1..0872a8a2095 100644
--- a/compiler/rustc_lint/src/internal.rs
+++ b/compiler/rustc_lint/src/internal.rs
@@ -352,8 +352,7 @@ declare_tool_lint! {
 declare_tool_lint! {
     /// The `diagnostic_outside_of_impl` lint detects calls to functions annotated with
     /// `#[rustc_lint_diagnostics]` that are outside an `Diagnostic`, `Subdiagnostic`, or
-    /// `LintDiagnostic` impl, or a `#[derive(Diagnostic)]`, `#[derive(Subdiagnostic)]`,
-    /// `#[derive(LintDiagnostic)]` expansion.
+    /// `LintDiagnostic` impl (either hand-written or derived).
     ///
     /// More details on diagnostics implementations can be found
     /// [here](https://rustc-dev-guide.rust-lang.org/diagnostics/diagnostic-structs.html).