rust/compiler/rustc_lint/src
bors f48c99a004 Auto merge of #130599 - jieyouxu:snake_case_binary_cleanup, r=petrochenkov
Explain why `non_snake_case` is skipped for binary crates and cleanup tests

- Explain `non_snake_case` lint is skipped for bin crate names because binaries are not intended to be distributed or consumed like library crates (#45127).
- Coalesce the bunch of tests into a single one but with revisions, which is easier to compare the differences for `non_snake_case` behavior with respect to crate types.

Follow-up to #121749 with some more comments and test cleanup.

cc `@saethlin` who bumped into one of the tests and was confused why it was `only-x86_64-unknown-linux-gnu`.

try-job: dist-i586-gnu-i586-i686-musl
2024-09-21 11:16:38 +00:00
..
context Improve handling of raw-idents in check-cfg 2024-09-18 11:07:32 +02:00
nonstandard_style
types compiler: reuse {un,}signed_fit in get_type_suggestion (nfc) 2024-09-20 17:19:27 -07:00
async_closures.rs docs: Enable required feature for 'closure_returning_async_block' lint 2024-09-14 10:43:26 +02:00
async_fn_in_trait.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
builtin.rs Simplify some nested if statements 2024-09-11 13:45:23 -04:00
context.rs Make Span optional in BufferedEarlyLint 2024-08-07 14:08:34 +02:00
deref_into_dyn_supertrait.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
drop_forget_useless.rs Fix handling of macro arguments within the `dropping_copy_types lint 2024-08-22 13:32:01 +02:00
early.rs Add warn(unreachable_pub) to rustc_lint. 2024-08-27 15:24:11 +10:00
enum_intrinsics_non_enums.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
errors.rs Add warn(unreachable_pub) to rustc_lint. 2024-08-27 15:24:11 +10:00
expect.rs Check AttrId for expectations. 2024-09-06 20:51:06 +00:00
for_loops_over_fallibles.rs Remove needless returns detected by clippy in the compiler 2024-09-09 13:32:22 +02:00
foreign_modules.rs some fixes for clashing_extern_declarations lint 2024-09-13 11:51:17 +02:00
hidden_unicode_codepoints.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
if_let_rescope.rs Make some lint doctests compatible with --stage=0 2024-09-14 23:18:49 +10:00
impl_trait_overcaptures.rs Review comments 2024-09-05 06:34:42 -04:00
internal.rs Add an internal lint that warns when accessing untracked data 2024-09-03 19:14:19 +02:00
invalid_from_utf8.rs Remove extern crate rustc_session from rustc_lint. 2024-04-29 13:57:41 +10:00
late.rs Add warn(unreachable_pub) to rustc_lint. 2024-08-27 15:24:11 +10:00
let_underscore.rs rustc_lint: make let-underscore-lock translatable 2024-07-30 00:34:27 +03:00
levels.rs Fix lint levels not getting overridden by attrs on Stmt nodes 2024-09-14 16:12:00 +05:30
lib.rs Auto merge of #124895 - obeis:static-mut-hidden-ref, r=compiler-errors 2024-09-20 17:25:34 +00:00
lints.rs Auto merge of #124895 - obeis:static-mut-hidden-ref, r=compiler-errors 2024-09-20 17:25:34 +00:00
macro_expr_fragment_specifier_2024_migration.rs Insert some blank lines. 2024-07-30 07:25:15 +10:00
map_unit_fn.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
methods.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
multiple_supertrait_upcastable.rs Stop using ty::GenericPredicates for non-predicates_of queries 2024-08-29 00:17:40 -04:00
non_ascii_idents.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
non_fmt_panic.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
non_local_def.rs chore: Fix typos in 'compiler' (batch 1) 2024-09-02 07:42:38 +02:00
nonstandard_style.rs Explain why non_snake_case is skipped for binary crates 2024-09-21 05:24:26 +00:00
noop_method_call.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
opaque_hidden_inferred_bound.rs Don't ICE in opaque_hidden_inferred_bound lint for RPITIT in trait with no default method body 2024-09-16 12:35:54 -04:00
pass_by_value.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
passes.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
precedence.rs Temporarily switch ambiguous_negative_literals lint to allow 2024-07-31 19:36:47 +02:00
ptr_nulls.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
redundant_semicolon.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
reference_casting.rs Use bool in favor of Option<()> for diagnostics 2024-08-21 01:31:11 -04:00
shadowed_into_iter.rs Make Ty::boxed_ty return an Option 2024-09-06 00:30:36 +03:00
static_mut_refs.rs Disallow hidden references to mutable static 2024-09-13 13:33:43 +03:00
tail_expr_drop_order.rs Rename and reorder lots of lifetimes. 2024-09-13 15:46:20 +10:00
tests.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
traits.rs Use is_lang_item more 2024-08-13 16:44:53 -04:00
types.rs Rollup merge of #130646 - workingjubilee:literally-factorize-int-lint, r=compiler-errors 2024-09-21 07:22:50 +02:00
unit_bindings.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
unused.rs Make Ty::boxed_ty return an Option 2024-09-06 00:30:36 +03:00