rust/compiler/rustc_passes/src
Nicholas Nethercote 3591e77b35 Add missing #[rustc_lint_diagnostics] attributes.
Prior to the previous commit, `#[rust_lint_diagnostics]` attributes
could only be used on methods with an `impl Into<{D,Subd}iagMessage>`
parameter. But there are many other nearby diagnostic methods (e.g.
`Diag::span`) that don't take such a parameter and should have the
attribute.

This commit adds the missing attribute to these `Diag` methods. This
requires adding some missing
`#[allow(rustc::diagnostic_outside_of_impl)]` markers at call sites to
these methods.
2024-03-06 14:19:38 +11:00
..
liveness Match unmatched backticks in compiler/ that are part of rustdoc 2023-03-03 08:39:00 +01:00
abi_test.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
check_attr.rs Add missing #[rustc_lint_diagnostics] attributes. 2024-03-06 14:19:38 +11:00
check_const.rs Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11:00
dead.rs Overhaul the handling of errors at the top-level. 2024-02-22 08:03:47 +11:00
debugger_visualizer.rs Add check for ui_testing via promoting parameters from ParseSess to Session 2024-01-13 12:11:13 -05:00
diagnostic_items.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
entry.rs Rewrite the untranslatable_diagnostic lint. 2024-03-06 14:19:01 +11:00
errors.rs Rename SubdiagnosticMessageOp as SubdiagMessageOp. 2024-03-05 12:14:49 +11:00
hir_id_validator.rs Add DiagCtxt::delayed_bug. 2024-01-10 07:33:07 +11:00
hir_stats.rs Add ast::ExprKind::Dummy 2024-02-25 22:22:09 +01:00
lang_items.rs resolve: Scale back unloading of speculatively loaded crates 2024-02-18 20:59:19 +03:00
layout_test.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
lib_features.rs Remove Session methods that duplicate DiagCtxt methods. 2023-12-24 08:05:28 +11:00
lib.rs Use generic NonZero internally. 2024-02-15 08:09:42 +01:00
liveness.rs Fix liveness analysis in the presence of never patterns 2024-02-21 12:04:39 +01:00
loops.rs hir: Remove fn opt_hir_id and fn opt_span 2024-02-07 09:38:24 +03:00
naked_functions.rs Rename TyCtxt::emit_spanned_lint as TyCtxt::emit_node_span_lint. 2024-01-23 08:09:05 +11:00
reachable.rs Move some methods from tcx.hir() to tcx 2023-12-12 06:40:29 -08:00
stability.rs remove platform-intrinsics ABI; make SIMD intrinsics be regular intrinsics 2024-02-25 08:14:52 +01:00
upvars.rs is_closure_like 2024-02-11 22:09:52 +00:00
weak_lang_items.rs Stop mentioning internal lang items in no_std binary errors 2024-01-10 21:18:54 +01:00