rust/compiler/rustc_lint/src
Nicholas Nethercote 75b6ec9800 Avoid comments that describe multiple use items.
There are some comments describing multiple subsequent `use` items. When
the big `use` reformatting happens some of these `use` items will be
reordered, possibly moving them away from the comment. With this
additional level of formatting it's not really feasible to have comments
of this type. This commit removes them in various ways:

- merging separate `use` items when appropriate;

- inserting blank lines between the comment and the first `use` item;

- outright deletion (for comments that are relatively low-value);

- adding a separate "top-level" comment.

We also entirely skip formatting for four library files that contain
nothing but `pub use` re-exports, where reordering would be painful.
2024-07-17 08:02:46 +10:00
..
context Improve well known value check-cfg diagnostic for the standard library 2024-07-01 23:03:36 +02:00
nonstandard_style
async_closures.rs Make it into a structured suggestion, maybe-incorrect 2024-06-28 20:16:35 -04:00
async_fn_in_trait.rs Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00
builtin.rs Rollup merge of #127535 - spastorino:unsafe_code-unsafe_extern_blocks, r=oli-obk 2024-07-12 13:47:08 -07:00
context.rs Tweak CheckLintNameResult::Tool. 2024-06-03 09:02:49 +10:00
deref_into_dyn_supertrait.rs Use is_lang_item more aggressively 2024-06-14 16:54:29 -04:00
drop_forget_useless.rs Change lint_dropping_copy_types to use UseLetUnderscoreIgnoreSuggestion as suggestion. 2024-05-29 18:09:20 +08:00
early.rs Remove #[macro_use] extern crate tracing from rustc_lint. 2024-05-23 18:02:17 +10:00
enum_intrinsics_non_enums.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
errors.rs Fix up comments. 2024-06-03 08:44:33 +10:00
expect.rs RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
for_loops_over_fallibles.rs Run rustfmt on files that need it. 2024-05-24 15:17:21 +10:00
foreign_modules.rs Remove #[macro_use] extern crate tracing from rustc_lint. 2024-05-23 18:02:17 +10:00
hidden_unicode_codepoints.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
impl_trait_overcaptures.rs Only require symbol name for @feature_gate 2024-06-28 18:33:31 -04:00
internal.rs Instance::resolve -> Instance::try_resolve, and other nits 2024-07-02 17:28:03 -04:00
invalid_from_utf8.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
late.rs Don't require visit_body to take a lifetime that must outlive the function call 2024-05-29 10:04:08 +00:00
let_underscore.rs Fix up comments. 2024-06-03 08:44:33 +10:00
levels.rs RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
lib.rs Avoid comments that describe multiple use items. 2024-07-17 08:02:46 +10:00
lints.rs Rollup merge of #127535 - spastorino:unsafe_code-unsafe_extern_blocks, r=oli-obk 2024-07-12 13:47:08 -07:00
macro_expr_fragment_specifier_2024_migration.rs Adds expr_2024 migration lit 2024-07-09 17:41:13 +00:00
map_unit_fn.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
methods.rs Fix up comments. 2024-06-03 08:44:33 +10:00
multiple_supertrait_upcastable.rs Auto merge of #127097 - compiler-errors:async-closure-lint, r=oli-obk 2024-07-11 06:59:10 +00:00
non_ascii_idents.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
non_fmt_panic.rs Use is_lang_item more aggressively 2024-06-14 16:54:29 -04:00
non_local_def.rs Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00
nonstandard_style.rs Fix up comments. 2024-06-03 08:44:33 +10:00
noop_method_call.rs Instance::resolve -> Instance::try_resolve, and other nits 2024-07-02 17:28:03 -04:00
opaque_hidden_inferred_bound.rs Remove fully_normalize 2024-07-11 19:15:04 -04:00
pass_by_value.rs Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillot 2024-05-04 00:32:27 +00:00
passes.rs Reduce some pub exposure. 2024-06-03 08:44:33 +10:00
ptr_nulls.rs Rename LintContext::emit_spanned_lint as LintContext::emit_span_lint. 2024-01-23 08:08:25 +11:00
redundant_semicolon.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
reference_casting.rs Handle Deref expressions in invalid_reference_casting 2024-05-10 12:33:07 -04:00
shadowed_into_iter.rs boxed_slice_into_iter: tiny doc correction 2024-06-16 20:57:48 +02:00
tests.rs refactor(rustc_lint): inline check_lint_name_cmdline 2023-08-30 17:35:07 +01:00
traits.rs Use is_lang_item more aggressively 2024-06-14 16:54:29 -04:00
types.rs Update a f16/f128 FIXME to be more accurate 2024-07-08 18:55:26 -04:00
unit_bindings.rs Inline & delete Ty::new_unit, since it's just a field access 2024-05-02 17:49:23 +02:00
unused.rs iter_identity is a better name 2024-07-07 00:12:35 -04:00