rust/tests/ui/lint
bors 71704c4f84 Auto merge of #116623 - Nadrieril:validate-range-endpoints, r=oli-obk
Fix overflow checking in range patterns

When a range pattern contains an overflowing literal, if we're not careful we might not notice the overflow and use the wrapped value. This makes for confusing error messages because linting against overflowing literals is only done in a later pass. So when a range is invalid we check for overflows to provide a better error.

This check didn't use to handle negative types; this PR fixes that. First commit adds tests, second cleans up without changing behavior, third does the fix.

EDIT: while I was at it, I fixed a small annoyance about the span of the overflow lint on negated literals.

Fixes https://github.com/rust-lang/rust/issues/94239
2023-10-11 10:07:19 +00:00
..
auxiliary Add regression test for #112308 2023-06-06 11:50:24 +02:00
dead-code Respect #[expect] the same way #[allow] is with the dead_code lint 2023-08-10 22:57:48 +02:00
force-warn Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
internal Check arguments length in trivial diagnostic lint 2023-05-06 14:42:35 +01:00
known-tool-in-submodule
large_assignments tests/ui: Split large_moves.rs and move to lint/large_assignments 2023-09-21 21:00:11 +02:00
let_underscore
must_not_suspend Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
redundant-semicolon
rfc-2383-lint-reason Rollup merge of #116428 - Alexendoo:note-duplicate-diagnostics, r=compiler-errors,estebank 2023-10-05 19:24:35 +02:00
rfc-2457-non-ascii-idents Reword confusable idents lint 2023-08-04 16:46:08 +00:00
semicolon-in-expressions-from-macros Add SEMICOLON_IN_EXPRESSIONS_FROM_MACROS to future-incompat report 2023-01-21 14:38:25 -06:00
unknown-lints Add test for unknown_lints from another file. 2023-08-14 12:05:53 -07:00
unsafe_code
unused Emit unused doc comment warnings for pat and expr fields 2023-09-03 08:21:18 +05:30
use-redundant diagnostics: account for glob shadowing when linting redundant imports 2023-04-01 11:11:21 -07:00
anonymous-reexport.rs Update anonymous-reexport UI test 2023-03-22 16:05:20 +01:00
anonymous-reexport.stderr Update anonymous-reexport UI test 2023-03-22 16:05:20 +01:00
bad-lint-cap.rs
bad-lint-cap.stderr
bad-lint-cap2.rs
bad-lint-cap2.stderr
bad-lint-cap3.rs
bad-lint-cap3.stderr
bare-trait-objects-path.rs
bare-trait-objects-path.stderr
clashing-extern-fn-recursion.rs
clashing-extern-fn-wasm.rs
clashing-extern-fn.rs fix ClashingExternDeclarations lint ICE 2023-03-20 00:50:03 +01:00
clashing-extern-fn.stderr Bless ui tests. 2023-08-04 16:09:13 +00:00
cli-lint-override.forbid_warn.stderr
cli-lint-override.force_warn_deny.stderr
cli-lint-override.rs
cli-lint-override.warn_deny.stderr
cli-unknown-force-warn.rs feat(rustc_lint): make CheckLintName respect lint level 2023-08-30 19:24:44 +01:00
cli-unknown-force-warn.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
command-line-lint-group-allow.rs
command-line-lint-group-deny.rs
command-line-lint-group-deny.stderr Add help to allow lint for the implied by suggestion 2023-09-04 14:21:38 +02:00
command-line-lint-group-forbid.rs
command-line-lint-group-forbid.stderr Add help to allow lint for the implied by suggestion 2023-09-04 14:21:38 +02:00
command-line-lint-group-warn.rs
command-line-lint-group-warn.stderr Add help to allow lint for the implied by suggestion 2023-09-04 14:21:38 +02:00
command-line-register-lint-tool.rs
command-line-register-unknown-lint-tool.rs
command-line-register-unknown-lint-tool.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
crate_level_only_lint.rs
crate_level_only_lint.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
deny-overflowing-literals.rs
deny-overflowing-literals.stderr
dropping_copy_types.rs Fix dropping_copy_types lint from linting in match-arm with side-effects 2023-07-01 16:05:55 +02:00
dropping_copy_types.stderr Rename drop_ref lint to dropping_references 2023-05-21 14:16:41 +02:00
dropping_references.rs Fix dropping_copy_types lint from linting in match-arm with side-effects 2023-07-01 16:05:55 +02:00
dropping_references.stderr Rename drop_ref lint to dropping_references 2023-05-21 14:16:41 +02:00
empty-lint-attributes.rs
enable-unstable-lib-feature.rs
enable-unstable-lib-feature.stderr
expansion-time-include.rs
expansion-time.rs
expansion-time.stderr
expr-field.rs Visit ExprField for lint levels. 2023-09-13 19:47:20 +00:00
expr_attr_paren_order.rs
expr_attr_paren_order.stderr
fn_must_use.rs
fn_must_use.stderr error-msg: expand suggestion for unused lint 2023-03-15 23:30:12 +13:00
for_loop_over_fallibles.rs
for_loop_over_fallibles.stderr
forbid-error-capped.rs
forbid-group-group-1.rs
forbid-group-group-1.stderr
forbid-group-group-2.rs
forbid-group-group-2.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
forbid-group-member.rs
forbid-group-member.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
forbid-member-group.rs
forbid-member-group.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
forgetting_copy_types.rs Rename forget_copy lint to forgetting_copy_types 2023-05-21 14:09:03 +02:00
forgetting_copy_types.stderr Rename forget_ref lint to forgetting_references 2023-05-21 14:28:09 +02:00
forgetting_references.rs Rename forget_ref lint to forgetting_references 2023-05-21 14:28:09 +02:00
forgetting_references.stderr Rename forget_ref lint to forgetting_references 2023-05-21 14:28:09 +02:00
function-item-references.rs
function-item-references.stderr
future-incompat-test.rs
future-incompat-test.stderr Add help to allow lint for the implied by suggestion 2023-09-04 14:21:38 +02:00
inclusive-range-pattern-syntax.fixed
inclusive-range-pattern-syntax.rs
inclusive-range-pattern-syntax.stderr
inert-attr-macro.rs
inert-attr-macro.stderr
inline-trait-and-foreign-items.rs Split out a separate feature gate for impl trait in associated types 2023-04-12 16:17:31 +00:00
inline-trait-and-foreign-items.stderr
invalid-nan-comparison-suggestion.fixed Uplift improved version of clippy::cmp_nan to rustc 2023-06-10 11:12:55 +02:00
invalid-nan-comparison-suggestion.rs Uplift improved version of clippy::cmp_nan to rustc 2023-06-10 11:12:55 +02:00
invalid-nan-comparison-suggestion.stderr Uplift improved version of clippy::cmp_nan to rustc 2023-06-10 11:12:55 +02:00
invalid-nan-comparison.rs Uplift improved version of clippy::cmp_nan to rustc 2023-06-10 11:12:55 +02:00
invalid-nan-comparison.stderr Avoid invalid NaN lint machine-applicable suggestion in const context 2023-08-05 23:54:59 +02:00
invalid_from_utf8.rs Improve invalid UTF-8 lint by finding the expression initializer 2023-09-21 10:16:29 +02:00
invalid_from_utf8.stderr Improve invalid UTF-8 lint by finding the expression initializer 2023-09-21 10:16:29 +02:00
invalid_value-polymorphic.rs Rename InstCombine to InstSimplify 2023-05-06 23:22:32 -04:00
invalid_value.rs
invalid_value.stderr Revert "Auto merge of #113166 - moulins:ref-niches-initial, r=oli-obk" 2023-07-21 22:35:57 -07:00
issue-1866.rs
issue-1866.stderr Bless ui tests. 2023-08-04 16:09:13 +00:00
issue-14309.rs
issue-14309.stderr
issue-14837.rs
issue-17718-const-naming.rs
issue-17718-const-naming.stderr
issue-20343.rs
issue-30302.rs Change bindings_with_variant_name to deny-by-default 2023-01-20 02:26:12 -05:00
issue-30302.stderr Change bindings_with_variant_name to deny-by-default 2023-01-20 02:26:12 -05:00
issue-31924-non-snake-ffi.rs
issue-34798.rs
issue-35075.rs
issue-35075.stderr
issue-47775-nested-macro-unnecessary-parens-arg.rs
issue-49588-non-shorthand-field-patterns-in-pattern-macro.rs Move test files 2023-04-20 15:06:17 -03:00
issue-54099-camel-case-underscore-types.rs
issue-57410-1.rs
issue-57410.rs
issue-63364.rs
issue-63364.stderr
issue-66362-no-snake-case-warning-for-field-puns.rs
issue-66362-no-snake-case-warning-for-field-puns.stderr
issue-70819-dont-override-forbid-in-same-scope.rs
issue-70819-dont-override-forbid-in-same-scope.stderr
issue-79546-fuel-ice.rs
issue-79744.rs
issue-79744.stderr
issue-80988.rs
issue-80988.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
issue-81218.rs
issue-83477.rs
issue-83477.stderr
issue-86600-lint-twice.rs
issue-86600-lint-twice.stderr
issue-87274-paren-parent.rs
issue-87274-paren-parent.stderr
issue-89469.rs
issue-90614-accept-allow-text-direction-codepoint-in-comment-lint.rs
issue-97094.rs
issue-97094.stderr
issue-99387.rs Replace old private-in-public diagnostic with type privacy lints 2023-08-02 13:40:28 +03:00
issue-99387.stderr Remove normalization from opaque_types_defined_by 2023-07-07 13:17:00 +00:00
issue-101284.rs
issue-102705.rs
issue-103317.fixed
issue-103317.rs
issue-103317.stderr
issue-103435-extra-parentheses.fixed
issue-103435-extra-parentheses.rs
issue-103435-extra-parentheses.stderr
issue-104392.rs
issue-104392.stderr
issue-104897.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
issue-104897.stderr remove duplicated diagnostic for unclosed delimiter 2023-02-28 07:57:17 +00:00
issue-106991.rs Add ui test for E0271 error 2023-02-23 13:57:13 +03:00
issue-106991.stderr Add ui test for E0271 error 2023-02-23 13:57:13 +03:00
issue-108155.rs Don't eagerly convert principal to string 2023-02-17 14:44:58 +00:00
issue-109152.rs Fix #109152, fix the scenario that we may can not get span of func 2023-03-15 14:07:39 +08:00
issue-109152.stderr Fix #109152, fix the scenario that we may can not get span of func 2023-03-15 14:07:39 +08:00
issue-109529.fixed add run-rustfix 2023-03-29 09:56:28 +08:00
issue-109529.rs add run-rustfix 2023-03-29 09:56:28 +08:00
issue-109529.stderr add run-rustfix 2023-03-29 09:56:28 +08:00
issue-110573.rs reimpl make non_upper_case_globals lint not report trait impls 2023-04-20 16:28:49 +12:00
issue-111359.rs Populate effective visibilities in rustc_privacy 2023-05-11 14:51:01 +03:00
issue-111359.stderr Make MissingDebugImplementation a module lint. 2023-08-04 16:09:14 +00:00
issue-112489.rs suspicious_double_ref_op: don't lint on .borrow() 2023-06-11 06:08:44 +00:00
lint-attr-everywhere-early.rs Adjust UI tests for unit_bindings 2023-06-12 20:24:48 +08:00
lint-attr-everywhere-early.stderr Consider lint check attributes on match arms in late lints 2023-05-19 19:04:10 +09:00
lint-attr-everywhere-late.rs Adjust UI tests for unit_bindings 2023-06-12 20:24:48 +08:00
lint-attr-everywhere-late.stderr Make MissingDoc a module lint. 2023-08-04 16:09:14 +00:00
lint-attr-non-item-node.rs
lint-attr-non-item-node.stderr
lint-cap-trait-bounds.rs Add regression test for --cap-lints allow and trait bounds warning 2023-07-28 11:11:29 +02:00
lint-cap.rs
lint-change-warnings.rs
lint-change-warnings.stderr
lint-const-item-mutation.rs
lint-const-item-mutation.stderr
lint-ctypes-66202.rs
lint-ctypes-73249-1.rs
lint-ctypes-73249-2.rs Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
lint-ctypes-73249-2.stderr Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
lint-ctypes-73249-3.rs
lint-ctypes-73249-3.stderr
lint-ctypes-73249-4.rs
lint-ctypes-73249-5.rs
lint-ctypes-73249-5.stderr
lint-ctypes-73249.rs
lint-ctypes-73251-1.rs Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
lint-ctypes-73251-1.stderr Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
lint-ctypes-73251-2.rs Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
lint-ctypes-73251-2.stderr Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
lint-ctypes-73251.rs Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
lint-ctypes-73747.rs
lint-ctypes-94223.rs Fix ICE in improper_ctypes_definitions lint 2023-09-09 12:30:25 +05:30
lint-ctypes-94223.stderr Fix ICE in improper_ctypes_definitions lint 2023-09-09 12:30:25 +05:30
lint-ctypes-113436-1.rs lint/ctypes: allow () within types 2023-07-19 09:59:04 +01:00
lint-ctypes-113436-1.stderr lint/ctypes: allow () within types 2023-07-19 09:59:04 +01:00
lint-ctypes-113436.rs lint/ctypes: allow () within types 2023-07-19 09:59:04 +01:00
lint-ctypes-113900.rs lint/ctypes: only try normalize 2023-07-21 15:42:25 +01:00
lint-ctypes-enum.rs
lint-ctypes-enum.stderr
lint-ctypes-fn.rs Replace old private-in-public diagnostic with type privacy lints 2023-08-02 13:40:28 +03:00
lint-ctypes-fn.stderr
lint-ctypes-option-nonnull-unsized.rs Don't ICE when computing ctype's repr_nullable_ptr for possibly-unsized ty 2023-09-07 06:04:37 +00:00
lint-ctypes-option-nonnull-unsized.stderr Don't ICE when computing ctype's repr_nullable_ptr for possibly-unsized ty 2023-09-07 06:04:37 +00:00
lint-ctypes.rs Replace old private-in-public diagnostic with type privacy lints 2023-08-02 13:40:28 +03:00
lint-ctypes.stderr
lint-deref-nullptr.rs
lint-deref-nullptr.stderr
lint-directives-on-use-items-issue-10534.rs
lint-directives-on-use-items-issue-10534.stderr
lint-enum-intrinsics-non-enums.rs
lint-enum-intrinsics-non-enums.stderr
lint-exceeding-bitshifts.noopt.stderr
lint-exceeding-bitshifts.opt.stderr
lint-exceeding-bitshifts.opt_with_overflow_checks.stderr
lint-exceeding-bitshifts.rs
lint-expr-stmt-attrs-for-early-lints.rs
lint-ffi-safety-all-phantom.rs Mark ZST as FFI-safe if all its fields are PhantomData 2023-01-12 12:21:35 +01:00
lint-forbid-attr.rs
lint-forbid-attr.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
lint-forbid-cmdline.rs
lint-forbid-cmdline.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
lint-forbid-internal-unsafe.rs
lint-forbid-internal-unsafe.stderr
lint-group-nonstandard-style.rs
lint-group-nonstandard-style.stderr
lint-impl-fn.rs
lint-impl-fn.stderr
lint-incoherent-auto-trait-objects.rs
lint-incoherent-auto-trait-objects.stderr
lint-invalid-atomic-ordering-bool.rs
lint-invalid-atomic-ordering-bool.stderr
lint-invalid-atomic-ordering-exchange-weak.rs
lint-invalid-atomic-ordering-exchange-weak.stderr
lint-invalid-atomic-ordering-exchange.rs
lint-invalid-atomic-ordering-exchange.stderr
lint-invalid-atomic-ordering-false-positive.rs
lint-invalid-atomic-ordering-fence.rs
lint-invalid-atomic-ordering-fence.stderr
lint-invalid-atomic-ordering-fetch-update.rs
lint-invalid-atomic-ordering-fetch-update.stderr
lint-invalid-atomic-ordering-int.rs
lint-invalid-atomic-ordering-int.stderr
lint-invalid-atomic-ordering-ptr.rs
lint-invalid-atomic-ordering-ptr.stderr
lint-invalid-atomic-ordering-uint.rs
lint-invalid-atomic-ordering-uint.stderr
lint-level-macro-def-mod.rs
lint-level-macro-def.rs
lint-lowercase-static-const-pattern-rename.rs
lint-lowercase-static-const-pattern.rs
lint-lowercase-static-const-pattern.stderr
lint-malformed.rs
lint-malformed.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
lint-match-arms-2.rs Consider lint check attributes on match arms in match checks 2023-05-19 19:04:15 +09:00
lint-match-arms-2.stderr Consider lint check attributes on match arms in match checks 2023-05-19 19:04:15 +09:00
lint-match-arms.rs
lint-match-arms.stderr
lint-misplaced-attr.rs
lint-misplaced-attr.stderr
lint-missing-copy-implementations-allow.rs
lint-missing-copy-implementations.rs
lint-missing-copy-implementations.stderr
lint-missing-doc.rs Add regression test for #112308 2023-06-06 11:50:24 +02:00
lint-missing-doc.stderr Make MissingDoc a module lint. 2023-08-04 16:09:14 +00:00
lint-non-camel-case-types.rs
lint-non-camel-case-types.stderr
lint-non-camel-case-variant.rs
lint-non-camel-case-with-trailing-underscores.rs
lint-non-snake-case-crate-2.rs
lint-non-snake-case-crate-2.stderr
lint-non-snake-case-crate.rs
lint-non-snake-case-crate.stderr
lint-non-snake-case-functions.rs
lint-non-snake-case-functions.stderr
lint-non-snake-case-identifiers-suggestion-reserved.rs
lint-non-snake-case-identifiers-suggestion-reserved.stderr
lint-non-snake-case-lifetimes.rs
lint-non-snake-case-lifetimes.stderr
lint-non-snake-case-modules.rs
lint-non-snake-case-modules.stderr
lint-non-snake-case-no-lowercase-equivalent.rs
lint-non-uppercase-associated-const.rs
lint-non-uppercase-associated-const.stderr
lint-non-uppercase-statics.rs
lint-non-uppercase-statics.stderr
lint-non-uppercase-trait-assoc-const.rs make non_upper_case_globals lint not report trait impls 2023-04-19 12:47:35 +12:00
lint-non-uppercase-trait-assoc-const.stderr make non_upper_case_globals lint not report trait impls 2023-04-19 12:47:35 +12:00
lint-nonstandard-style-unicode-1.rs
lint-nonstandard-style-unicode-1.stderr
lint-nonstandard-style-unicode-2.rs
lint-nonstandard-style-unicode-2.stderr
lint-nonstandard-style-unicode-3.rs
lint-nonstandard-style-unicode-3.stderr
lint-output-format-2.rs
lint-output-format-2.stderr
lint-output-format.rs
lint-output-format.stderr
lint-owned-heap-memory.rs
lint-owned-heap-memory.stderr
lint-pre-expansion-extern-module.rs
lint-pre-expansion-extern-module.stderr Add help to allow lint for the implied by suggestion 2023-09-04 14:21:38 +02:00
lint-pub-unreachable-for-nested-glob.rs
lint-qualification.fixed Fix removal span calculation of unused_qualifications suggestion 2023-07-18 09:52:08 +08:00
lint-qualification.rs Fix removal span calculation of unused_qualifications suggestion 2023-07-18 09:52:08 +08:00
lint-qualification.stderr Fix removal span calculation of unused_qualifications suggestion 2023-07-18 09:52:08 +08:00
lint-range-endpoint-overflow.rs
lint-range-endpoint-overflow.stderr
lint-removed-allow.rs
lint-removed-allow.stderr
lint-removed-cmdline-deny.rs feat(rustc_lint): make CheckLintName respect lint level 2023-08-30 19:24:44 +01:00
lint-removed-cmdline-deny.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
lint-removed-cmdline.rs feat(rustc_lint): make CheckLintName respect lint level 2023-08-30 19:24:44 +01:00
lint-removed-cmdline.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
lint-removed.rs
lint-removed.stderr
lint-renamed-allow.rs
lint-renamed-allow.stderr
lint-renamed-cmdline-deny.rs feat(rustc_lint): make CheckLintName respect lint level 2023-08-30 19:24:44 +01:00
lint-renamed-cmdline-deny.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
lint-renamed-cmdline.rs feat(rustc_lint): make CheckLintName respect lint level 2023-08-30 19:24:44 +01:00
lint-renamed-cmdline.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
lint-renamed.rs
lint-renamed.stderr
lint-shorthand-field.fixed
lint-shorthand-field.rs
lint-shorthand-field.stderr
lint-stability-2.rs
lint-stability-2.stderr
lint-stability-deprecated.rs diagnostics: update test cases to refer to assoc fn with self as method 2023-02-22 08:40:47 -07:00
lint-stability-deprecated.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
lint-stability-fields-deprecated.rs
lint-stability-fields-deprecated.stderr
lint-stability-fields.rs
lint-stability-fields.stderr
lint-stability.rs
lint-stability.stderr
lint-stability2.rs
lint-stability2.stderr
lint-stability3.rs
lint-stability3.stderr
lint-strict-provenance-fuzzy-casts.rs
lint-strict-provenance-fuzzy-casts.stderr
lint-strict-provenance-lossy-casts.rs
lint-strict-provenance-lossy-casts.stderr
lint-struct-necessary.rs match scrutinee need necessary parentheses for structs 2023-08-14 18:05:13 +08:00
lint-struct-necessary.stderr match scrutinee need necessary parentheses for structs 2023-08-14 18:05:13 +08:00
lint-temporary-cstring-as-param.rs
lint-temporary-cstring-as-param.stderr
lint-temporary-cstring-as-ptr.rs Do not suppress temporary_cstring_as_ptr in macros. 2023-04-04 18:55:02 +00:00
lint-temporary-cstring-as-ptr.stderr Do not suppress temporary_cstring_as_ptr in macros. 2023-04-04 18:55:02 +00:00
lint-type-limits.rs
lint-type-limits.stderr
lint-type-limits2.rs
lint-type-limits2.stderr
lint-type-limits3.rs
lint-type-limits3.stderr
lint-type-overflow.rs
lint-type-overflow.stderr Fix span of overflow lint for negated literals 2023-10-11 04:55:55 +02:00
lint-type-overflow2.rs
lint-type-overflow2.stderr
lint-unconditional-drop-recursion.rs Make unconditional_recursion warning detect recursive drops 2023-07-22 14:04:45 +02:00
lint-unconditional-drop-recursion.stderr Make unconditional_recursion warning detect recursive drops 2023-07-22 14:04:45 +02:00
lint-unconditional-recursion.rs
lint-unconditional-recursion.stderr Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
lint-unexported-no-mangle.rs
lint-unexported-no-mangle.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
lint-unknown-feature-default.rs
lint-unknown-feature.rs
lint-unknown-lint-cmdline-allow.rs feat(rustc_lint): make CheckLintName respect lint level 2023-08-30 19:24:44 +01:00
lint-unknown-lint-cmdline-deny.rs feat(rustc_lint): make CheckLintName respect lint level 2023-08-30 19:24:44 +01:00
lint-unknown-lint-cmdline-deny.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
lint-unknown-lint-cmdline.rs feat(rustc_lint): make CheckLintName respect lint level 2023-08-30 19:24:44 +01:00
lint-unknown-lint-cmdline.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
lint-unknown-lint.rs
lint-unknown-lint.stderr
lint-unnecessary-import-braces.rs
lint-unnecessary-import-braces.stderr
lint-unnecessary-parens.fixed Ensure space is inserted after keyword in unused_delims 2023-06-05 14:25:00 +00:00
lint-unnecessary-parens.rs Ensure space is inserted after keyword in unused_delims 2023-06-05 14:25:00 +00:00
lint-unnecessary-parens.stderr Ensure space is inserted after keyword in unused_delims 2023-06-05 14:25:00 +00:00
lint-unsafe-code.rs
lint-unsafe-code.stderr
lint-uppercase-variables.rs Change bindings_with_variant_name to deny-by-default 2023-01-20 02:26:12 -05:00
lint-uppercase-variables.stderr Run check_match and check_liveness when MIR is built instead of having an explicit phase for them 2023-04-21 22:32:38 +00:00
lint_map_unit_fn.rs Add ui test for map_unit_fn lint in closure case 2023-02-23 13:57:13 +03:00
lint_map_unit_fn.stderr Add ui test for map_unit_fn lint in closure case 2023-02-23 13:57:13 +03:00
lint_pre_expansion_extern_module_aux.rs
lints-in-foreign-macros.rs
lints-in-foreign-macros.stderr
missing-copy-implementations-negative-copy.rs Make lint missing-copy-implementations honor negative Copy impls 2023-08-03 01:37:42 +02:00
missing-doc-private-macro.rs
missing-doc-private-macro.stderr Make MissingDoc a module lint. 2023-08-04 16:09:14 +00:00
no-coverage.rs Rename the feature, but not the attribute, to coverage_attribute 2023-09-08 12:46:09 +01:00
no-coverage.stderr Rework no_coverage to coverage(off) 2023-09-08 12:46:06 +01:00
noop-method-call.fixed Fix noop_method_call detection for new diagnostic items 2023-09-28 08:22:59 -04:00
noop-method-call.rs Fix noop_method_call detection for new diagnostic items 2023-09-28 08:22:59 -04:00
noop-method-call.stderr Fix noop_method_call detection for new diagnostic items 2023-09-28 08:22:59 -04:00
not_found.rs
not_found.stderr
opaque-ty-ffi-normalization-cycle.rs
opaque-ty-ffi-normalization-cycle.stderr
opaque-ty-ffi-unsafe.rs Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
opaque-ty-ffi-unsafe.stderr Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
outer-forbid.rs
outer-forbid.stderr
ptr_null_checks.rs Improve diagnostics and add tests for function calls 2023-08-06 19:08:14 +02:00
ptr_null_checks.stderr Improve diagnostics and add tests for function calls 2023-08-06 19:08:14 +02:00
reasons-erroneous.rs Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
reasons-erroneous.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
reasons-forbidden.rs Support true and false as boolean flag params 2023-01-18 20:46:36 +01:00
reasons-forbidden.stderr
reasons.rs
reasons.stderr
recommend-literal.rs
recommend-literal.stderr
reference_casting.rs Clarify invalid_reference_casting lint around interior mutable types 2023-10-04 22:06:16 +02:00
reference_casting.stderr Clarify invalid_reference_casting lint around interior mutable types 2023-10-04 22:06:16 +02:00
register-tool-lint.rs
register-tool-lint.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
renamed-lints-still-apply.rs
renamed-lints-still-apply.stderr
rustdoc-group.rs
rustdoc-group.stderr
rustdoc-renamed.rs
rustdoc-renamed.stderr
special-upper-lower-cases.rs
special-upper-lower-cases.stderr
suggestions.fixed
suggestions.rs
suggestions.stderr
suspicious-double-ref-op.rs add suggestion 2023-07-23 09:58:31 +00:00
suspicious-double-ref-op.stderr add suggestion 2023-07-23 09:58:31 +00:00
test-allow-dead-extern-static-no-warning.rs
test-inner-fn.rs
test-inner-fn.stderr
trivial-cast-ice.rs
trivial-casts-featuring-type-ascription.rs
trivial-casts-featuring-type-ascription.stderr remove type ascription feature gate 2023-06-03 09:22:47 +08:00
trivial-casts.rs
trivial-casts.stderr
trivial_casts.rs
trivial_casts.stderr adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
type-overflow.rs
type-overflow.stderr Update ui test 2023-06-11 18:27:26 +08:00
unaligned_references.rs still accept references to u8 slices and str in packed fields 2023-09-06 08:32:30 +02:00
unaligned_references.stderr still accept references to u8 slices and str in packed fields 2023-09-06 08:32:30 +02:00
unaligned_references_external_macro.rs make unaligned_reference a hard error 2023-01-31 20:28:11 +01:00
unaligned_references_external_macro.stderr improve error notes for packed struct reference diagnostic 2023-04-28 20:28:56 -05:00
unconditional_panic_98444.rs Add regression test for 98444 2023-03-06 13:41:07 +00:00
unconditional_panic_98444.stderr Add regression test for 98444 2023-03-06 13:41:07 +00:00
undropped_manually_drops.rs Uplift clippy::undropped_manually_drops to rustc 2023-06-08 11:41:34 +02:00
undropped_manually_drops.stderr Uplift clippy::undropped_manually_drops to rustc 2023-06-08 11:41:34 +02:00
unnecessary-extern-crate.rs
unnecessary-extern-crate.stderr
unreachable-async-fn.rs
unreachable_pub.rs
unreachable_pub.stderr
unused-borrows.rs
unused-borrows.stderr
unused-braces-while-let-with-mutable-value.rs
unused-qualification-in-derive-expansion.rs
unused_braces.fixed Fix regression in unused_braces with macros 2023-01-15 05:08:30 +00:00
unused_braces.rs Fix regression in unused_braces with macros 2023-01-15 05:08:30 +00:00
unused_braces.stderr Fix regression in unused_braces with macros 2023-01-15 05:08:30 +00:00
unused_braces_borrow.fixed
unused_braces_borrow.rs
unused_braces_borrow.stderr
unused_braces_macro.rs
unused_import_warning_issue_45268.rs Adjust UI tests for unit_bindings 2023-06-12 20:24:48 +08:00
unused_import_warning_issue_45268.stderr
unused_labels.rs
unused_labels.stderr
unused_parens_json_suggestion.fixed
unused_parens_json_suggestion.rs
unused_parens_json_suggestion.stderr
unused_parens_multibyte_recovery.rs Exit when there are unmatched delims to avoid noisy diagnostics 2023-02-28 07:55:19 +00:00
unused_parens_multibyte_recovery.stderr remove duplicated diagnostic for unclosed delimiter 2023-02-28 07:57:17 +00:00
unused_parens_remove_json_suggestion.fixed
unused_parens_remove_json_suggestion.rs
unused_parens_remove_json_suggestion.stderr
unused_variables-issue-82488.fixed
unused_variables-issue-82488.rs
unused_variables-issue-82488.stderr
use_suggestion_json.rs
use_suggestion_json.stderr
warn-ctypes-inhibit.rs
warn-path-statement.rs
warn-path-statement.stderr
warn-unused-inline-on-fn-prototypes.rs
warn-unused-inline-on-fn-prototypes.stderr