1
Fork 0
rust/tests/ui/lint
bors 4bc39f028d Auto merge of #120924 - xFrednet:rfc-2383-stabilization-party, r=Urgau,blyxyas
Let's `#[expect]` some lints: Stabilize `lint_reasons` (RFC 2383)

Let's give this another try! The [previous stabilization attempt](https://github.com/rust-lang/rust/pull/99063) was stalled by some unresolved questions. These have been discussed in a [lang team](https://github.com/rust-lang/lang-team/issues/191) meeting. The last open question, regarding the semantics of the `#[expect]` attribute was decided on in https://github.com/rust-lang/rust/issues/115980

I've just updated the [stabilization report](https://github.com/rust-lang/rust/issues/54503#issuecomment-1179563964) with the discussed questions and decisions. Luckily, the decision is inline with the current implementation.

This hopefully covers everything. Let's hope that the CI will be green like the spring.

fixes #115980
fixes #54503

---

r? `@wesleywiser`

Tacking Issue: https://github.com/rust-lang/rust/issues/54503
Stabilization Report: https://github.com/rust-lang/rust/issues/54503#issuecomment-1179563964
Documentation Update: https://github.com/rust-lang/reference/pull/1237

<!--
For Clippy:

changelog: [`allow_attributes`]: Is now available on stable, since the `lint_reasons` feature was stabilized
changelog: [`allow_attributes_without_reason`]: Is now available on stable, since the `lint_reasons` feature was stabilized
-->

---

Roses are red,
Violets are blue,
Let's expect lints,
With reason clues
2024-06-26 16:38:30 +00:00
..
auxiliary Split non_local_definitions lint tests in separate test files 2024-04-09 00:42:48 +02:00
dead-code Auto merge of #120924 - xFrednet:rfc-2383-stabilization-party, r=Urgau,blyxyas 2024-06-26 16:38:30 +00:00
decorate-ice Invoke decorate when error level is beyond warning, including error 2024-03-17 14:41:37 +00:00
force-warn [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
internal [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
known-tool-in-submodule [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
large_assignments [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
let_underscore [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
must_not_suspend Error on using yield without also using #[coroutine] on the closure 2024-04-24 08:05:29 +00:00
non-local-defs Clarify that anonymous consts still do introduce a new scope 2024-06-19 18:34:15 -07:00
non-snake-case tests/ui/lint: Move 19 tests to new non-snake-case subdir 2024-06-15 18:18:43 +02:00
redundant-semicolon [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
rfc-2383-lint-reason RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
rfc-2457-non-ascii-idents separate messages for individual categories 2024-02-26 10:09:03 +08:00
semicolon-in-expressions-from-macros [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unknown-lints [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unnecessary-qualification fixes #121331 2024-03-14 09:54:42 +08:00
unsafe_code trigger unsafe_code on global_asm! invocations 2024-02-20 00:14:53 +01:00
unused Revert "Rollup merge of #124099 - voidc:disallow-ambiguous-expr-attrs, r=davidtwco" 2024-06-06 20:39:54 +00:00
use-redundant Silence unused_imports lint for redundant imports 2024-04-11 14:38:21 -04:00
ambiguous_wide_pointer_comparisons_suggestions.fixed Downgrade ambiguous_wide_pointer_comparisons suggestions to MaybeIncorrect 2024-02-20 17:21:01 +00:00
ambiguous_wide_pointer_comparisons_suggestions.rs Downgrade ambiguous_wide_pointer_comparisons suggestions to MaybeIncorrect 2024-02-20 17:21:01 +00:00
ambiguous_wide_pointer_comparisons_suggestions.stderr Downgrade ambiguous_wide_pointer_comparisons suggestions to MaybeIncorrect 2024-02-20 17:21:01 +00:00
anonymous-reexport.rs
anonymous-reexport.stderr Make early lints translatable 2024-05-21 20:16:39 +00:00
bad-lint-cap.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bad-lint-cap.stderr
bad-lint-cap2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bad-lint-cap2.stderr
bad-lint-cap3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bad-lint-cap3.stderr
bare-trait-objects-path.rs
bare-trait-objects-path.stderr
clashing-extern-fn-recursion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
clashing-extern-fn-wasm.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
clashing-extern-fn.rs Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
clashing-extern-fn.stderr Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
cli-lint-override.forbid_warn.stderr
cli-lint-override.force_warn_deny.stderr
cli-lint-override.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cli-lint-override.warn_deny.stderr
cli-unknown-force-warn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
cli-unknown-force-warn.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
command-line-lint-group-allow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
command-line-lint-group-deny.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
command-line-lint-group-deny.stderr
command-line-lint-group-forbid.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
command-line-lint-group-forbid.stderr
command-line-lint-group-warn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
command-line-lint-group-warn.stderr
command-line-register-lint-tool.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
command-line-register-unknown-lint-tool.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
command-line-register-unknown-lint-tool.stderr
crate_level_only_lint.rs
crate_level_only_lint.stderr
deny-overflowing-literals.rs
deny-overflowing-literals.stderr
dropping_copy_types-issue-125189-can-not-fixed.rs A small diagnostic improvement for dropping_copy_types 2024-05-24 19:31:57 +08:00
dropping_copy_types-issue-125189-can-not-fixed.stderr A small diagnostic improvement for dropping_copy_types 2024-05-24 19:31:57 +08:00
dropping_copy_types-issue-125189.fixed A small diagnostic improvement for dropping_copy_types 2024-05-24 19:31:57 +08:00
dropping_copy_types-issue-125189.rs A small diagnostic improvement for dropping_copy_types 2024-05-24 19:31:57 +08:00
dropping_copy_types-issue-125189.stderr A small diagnostic improvement for dropping_copy_types 2024-05-24 19:31:57 +08:00
dropping_copy_types.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dropping_copy_types.stderr Let lint_forgetting_references give the suggestion if possible 2024-05-29 17:40:34 +08:00
dropping_references-can-fixed.fixed Let lint_dropping_references give the suggestion if possible. 2024-05-29 16:53:28 +08:00
dropping_references-can-fixed.rs Let lint_dropping_references give the suggestion if possible. 2024-05-29 16:53:28 +08:00
dropping_references-can-fixed.stderr Let lint_dropping_references give the suggestion if possible. 2024-05-29 16:53:28 +08:00
dropping_references.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
dropping_references.stderr Let lint_dropping_references give the suggestion if possible. 2024-05-29 16:53:28 +08:00
empty-lint-attributes.rs RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
enable-unstable-lib-feature.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
enable-unstable-lib-feature.stderr
expansion-time-include.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
expansion-time.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
expansion-time.stderr
expect-future_breakage-crash-issue-126521.rs Prevent ICE from expected future breakage 2024-06-25 22:32:46 +02:00
expect-future_breakage-crash-issue-126521.stderr Prevent ICE from expected future breakage 2024-06-25 22:32:46 +02:00
expr-field.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
expr_attr_paren_order.rs
expr_attr_paren_order.stderr
fn_must_use.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fn_must_use.stderr
for_loop_over_fallibles.rs Fix article in test 2024-05-15 13:17:11 -05:00
for_loop_over_fallibles.stderr Fix article in test 2024-05-15 13:17:11 -05:00
forbid-error-capped.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
forbid-group-group-1.rs
forbid-group-group-1.stderr
forbid-group-group-2.rs
forbid-group-group-2.stderr
forbid-group-member.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
forbid-group-member.stderr
forbid-member-group.rs
forbid-member-group.stderr
forgetting_copy_types-can-fixed.fixed Let lint_forgetting_copy_types give the suggestion if possible. 2024-05-29 16:53:37 +08:00
forgetting_copy_types-can-fixed.rs Let lint_forgetting_copy_types give the suggestion if possible. 2024-05-29 16:53:37 +08:00
forgetting_copy_types-can-fixed.stderr Let lint_forgetting_copy_types give the suggestion if possible. 2024-05-29 16:53:37 +08:00
forgetting_copy_types.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
forgetting_copy_types.stderr Let lint_forgetting_references give the suggestion if possible 2024-05-29 17:40:34 +08:00
forgetting_references-can-fixed.fixed Let lint_forgetting_references give the suggestion if possible 2024-05-29 17:40:34 +08:00
forgetting_references-can-fixed.rs Let lint_forgetting_references give the suggestion if possible 2024-05-29 17:40:34 +08:00
forgetting_references-can-fixed.stderr Let lint_forgetting_references give the suggestion if possible 2024-05-29 17:40:34 +08:00
forgetting_references.rs Let lint_forgetting_references give the suggestion if possible 2024-05-29 17:40:34 +08:00
forgetting_references.stderr Let lint_forgetting_references give the suggestion if possible 2024-05-29 17:40:34 +08:00
function-item-references.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
function-item-references.stderr
future-incompat-json-test.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
future-incompat-json-test.stderr [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
future-incompat-test.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
future-incompat-test.stderr
group-denied-lint-allowed.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
group-forbid-always-trumps-cli.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
group-forbid-always-trumps-cli.stderr Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
ice-array-into-iter-lint-issue-121532.rs Don't use unwrap() in ArrayIntoIter lint when typeck fails 2024-02-25 17:51:56 +05:30
ice-array-into-iter-lint-issue-121532.stderr Don't use unwrap() in ArrayIntoIter lint when typeck fails 2024-02-25 17:51:56 +05:30
ice-const-prop-unions-known-panics-lint-123710.rs Prohibit const prop of unions in KnownPanicsLint 2024-04-29 08:16:26 +05:30
ice-const-prop-unions-known-panics-lint-123710.stderr Prohibit const prop of unions in KnownPanicsLint 2024-04-29 08:16:26 +05:30
ice-unions-known-panics-lint-issue-121534.rs Do not const pop unions 2024-02-26 15:22:22 +05:30
inclusive-range-pattern-syntax.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
inclusive-range-pattern-syntax.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
inclusive-range-pattern-syntax.stderr
inert-attr-macro.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
inert-attr-macro.stderr
inline-trait-and-foreign-items.rs
inline-trait-and-foreign-items.stderr
internal_features.rs
internal_features.stderr
invalid-nan-comparison-suggestion.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
invalid-nan-comparison-suggestion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
invalid-nan-comparison-suggestion.stderr
invalid-nan-comparison.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
invalid-nan-comparison.stderr
invalid_from_utf8.rs Fix tests and bless 2024-04-24 13:12:33 +01:00
invalid_from_utf8.stderr Fix tests and bless 2024-04-24 13:12:33 +01:00
invalid_value-polymorphic.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
invalid_value.rs Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
invalid_value.stderr Fix lint. 2024-03-14 17:34:57 +01:00
issue-1866.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-1866.stderr
issue-14309.rs
issue-14309.stderr
issue-14837.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-17718-const-naming.rs
issue-17718-const-naming.stderr
issue-19102.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-20343.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-30302.rs
issue-30302.stderr
issue-34798.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-35075.rs
issue-35075.stderr
issue-47775-nested-macro-unnecessary-parens-arg.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-49588-non-shorthand-field-patterns-in-pattern-macro.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-54099-camel-case-underscore-types.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-57410-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-57410.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-63364.rs
issue-63364.stderr
issue-70819-dont-override-forbid-in-same-scope.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-70819-dont-override-forbid-in-same-scope.stderr
issue-79546-fuel-ice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-79744.rs
issue-79744.stderr
issue-80988.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-80988.stderr
issue-81218.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-83477.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-83477.stderr
issue-87274-paren-parent.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-87274-paren-parent.stderr
issue-90614-accept-allow-text-direction-codepoint-in-comment-lint.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-97094.rs
issue-97094.stderr
issue-99387.rs Make DefiningAnchor::Bind only store the opaque types that may be constrained, instead of the current infcx root item. 2024-03-11 17:19:37 +00:00
issue-99387.stderr Make DefiningAnchor::Bind only store the opaque types that may be constrained, instead of the current infcx root item. 2024-03-11 17:19:37 +00:00
issue-101284.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-102705.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103317.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103317.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103317.stderr
issue-103435-extra-parentheses.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103435-extra-parentheses.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-103435-extra-parentheses.stderr
issue-104392.rs
issue-104392.stderr
issue-104897.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-104897.stderr
issue-106991.rs
issue-106991.stderr
issue-108155.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-109152.rs
issue-109152.stderr
issue-109529.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-109529.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-109529.stderr
issue-110573.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-111359.rs
issue-111359.stderr
issue-112489.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-117949.noopt.stderr Enable ConstPropLint for promoteds 2024-02-17 10:44:46 +05:30
issue-117949.opt.stderr Enable ConstPropLint for promoteds 2024-02-17 10:44:46 +05:30
issue-117949.opt_with_overflow_checks.stderr Enable ConstPropLint for promoteds 2024-02-17 10:44:46 +05:30
issue-117949.rs Enable ConstPropLint for promoteds 2024-02-17 10:44:46 +05:30
issue-121070-let-range.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-attr-everywhere-early.rs
lint-attr-everywhere-early.stderr
lint-attr-everywhere-late.rs
lint-attr-everywhere-late.stderr Fix remaining cases 2024-06-21 19:00:18 -04:00
lint-attr-non-item-node.rs
lint-attr-non-item-node.stderr
lint-cap-trait-bounds.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-cap.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-change-warnings.rs
lint-change-warnings.stderr
lint-const-item-mutation.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-const-item-mutation.stderr
lint-ctypes-66202.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-ctypes-73249-1.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-ctypes-73249-2.rs
lint-ctypes-73249-2.stderr
lint-ctypes-73249-3.rs
lint-ctypes-73249-3.stderr
lint-ctypes-73249-4.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-ctypes-73249-5.rs
lint-ctypes-73249-5.stderr
lint-ctypes-73249.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-ctypes-73251-1.rs
lint-ctypes-73251-1.stderr
lint-ctypes-73251-2.rs
lint-ctypes-73251-2.stderr
lint-ctypes-73251.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-ctypes-73747.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-ctypes-94223.rs
lint-ctypes-94223.stderr
lint-ctypes-113436-1.rs
lint-ctypes-113436-1.stderr
lint-ctypes-113436.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-ctypes-113900.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-ctypes-enum.rs Put the RFC behind a feature gate result_ffi_guarantees 2024-04-23 21:30:59 -07:00
lint-ctypes-enum.stderr Put the RFC behind a feature gate result_ffi_guarantees 2024-04-23 21:30:59 -07:00
lint-ctypes-fn.rs Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
lint-ctypes-fn.stderr Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
lint-ctypes-option-nonnull-unsized.rs
lint-ctypes-option-nonnull-unsized.stderr
lint-ctypes.rs Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
lint-ctypes.stderr Use the rustc_private libc less in tests 2024-04-15 08:54:11 -04:00
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 Fix remaining cases 2024-06-21 19:00:18 -04:00
lint-expr-stmt-attrs-for-early-lints.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-ffi-safety-all-phantom.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-forbid-attr.rs
lint-forbid-attr.stderr
lint-forbid-cmdline.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-forbid-cmdline.stderr
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-invalid-atomic-ordering-bool.stderr
lint-invalid-atomic-ordering-exchange-weak.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-invalid-atomic-ordering-exchange-weak.stderr
lint-invalid-atomic-ordering-exchange.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-invalid-atomic-ordering-exchange.stderr
lint-invalid-atomic-ordering-false-positive.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-invalid-atomic-ordering-fence.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-invalid-atomic-ordering-fence.stderr
lint-invalid-atomic-ordering-fetch-update.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-invalid-atomic-ordering-fetch-update.stderr
lint-invalid-atomic-ordering-int.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-invalid-atomic-ordering-int.stderr
lint-invalid-atomic-ordering-ptr.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-invalid-atomic-ordering-ptr.stderr
lint-invalid-atomic-ordering-uint.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-invalid-atomic-ordering-uint.stderr
lint-level-macro-def-mod.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-level-macro-def.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-lowercase-static-const-pattern-rename.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-lowercase-static-const-pattern.rs
lint-lowercase-static-const-pattern.stderr
lint-malformed.rs
lint-malformed.stderr
lint-match-arms-2.rs
lint-match-arms-2.stderr
lint-match-arms.rs
lint-match-arms.stderr
lint-misplaced-attr.rs
lint-misplaced-attr.stderr
lint-missing-copy-implementations-allow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-missing-copy-implementations.rs
lint-missing-copy-implementations.stderr
lint-missing-doc.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-missing-doc.stderr
lint-non-camel-case-types.rs
lint-non-camel-case-types.stderr
lint-non-camel-case-variant.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-non-camel-case-with-trailing-underscores.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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
lint-non-uppercase-trait-assoc-const.stderr
lint-nonstandard-style-unicode-1.rs
lint-nonstandard-style-unicode-1.stderr
lint-nonstandard-style-unicode-3.rs
lint-nonstandard-style-unicode-3.stderr
lint-output-format-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-output-format-2.stderr
lint-output-format.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-output-format.stderr
lint-overflowing-ops.noopt.stderr promotion: don't promote int::MIN / -1 2024-02-24 12:17:37 +01:00
lint-overflowing-ops.opt.stderr promotion: don't promote int::MIN / -1 2024-02-24 12:17:37 +01:00
lint-overflowing-ops.opt_with_overflow_checks.stderr promotion: don't promote int::MIN / -1 2024-02-24 12:17:37 +01:00
lint-overflowing-ops.rs promotion: don't promote int::MIN / -1 2024-02-24 12:17:37 +01:00
lint-owned-heap-memory.rs
lint-owned-heap-memory.stderr
lint-pre-expansion-extern-module.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-pre-expansion-extern-module.stderr Deny gen keyword in edition_2024_compat lints 2024-04-22 11:51:50 -04:00
lint-pub-unreachable-for-nested-glob.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-qualification.fixed Ignore paths from expansion in unused_qualifications 2024-03-20 16:30:26 +00:00
lint-qualification.rs Ignore paths from expansion in unused_qualifications 2024-03-20 16:30:26 +00:00
lint-qualification.stderr Don't trigger unused_qualifications on global paths 2024-03-15 14:59:05 +00:00
lint-range-endpoint-overflow.rs
lint-range-endpoint-overflow.stderr
lint-removed-allow.rs
lint-removed-allow.stderr
lint-removed-cmdline-deny.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-removed-cmdline-deny.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
lint-removed-cmdline.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-removed-cmdline.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
lint-removed.rs
lint-removed.stderr
lint-renamed-allow.rs
lint-renamed-allow.stderr
lint-renamed-cmdline-deny.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-renamed-cmdline-deny.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
lint-renamed-cmdline.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-renamed-cmdline.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
lint-renamed.rs
lint-renamed.stderr
lint-shorthand-field.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-shorthand-field.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-shorthand-field.stderr
lint-stability-2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-stability-2.stderr
lint-stability-deprecated.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-stability-deprecated.stderr
lint-stability-fields-deprecated.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-stability-fields-deprecated.stderr
lint-stability-fields.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-stability-fields.stderr
lint-stability.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-stability.stderr
lint-stability2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-stability2.stderr
lint-stability3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-stability3.stderr
lint-strict-provenance-fuzzy-casts.rs
lint-strict-provenance-fuzzy-casts.stderr rename ptr::from_exposed_addr -> ptr::with_exposed_provenance 2024-03-23 13:18:33 +01:00
lint-strict-provenance-lossy-casts.rs
lint-strict-provenance-lossy-casts.stderr rename expose_addr to expose_provenance 2024-04-03 16:00:38 +02:00
lint-struct-necessary.rs
lint-struct-necessary.stderr
lint-temporary-cstring-as-param.rs
lint-temporary-cstring-as-param.stderr
lint-temporary-cstring-as-ptr.rs
lint-temporary-cstring-as-ptr.stderr
lint-type-limits.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-type-limits.stderr
lint-type-limits2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-type-limits2.stderr
lint-type-limits3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-type-limits3.stderr
lint-type-overflow.rs
lint-type-overflow.stderr
lint-type-overflow2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-type-overflow2.stderr
lint-unconditional-drop-recursion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-unconditional-drop-recursion.stderr
lint-unconditional-recursion.rs
lint-unconditional-recursion.stderr
lint-unexported-no-mangle.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-unexported-no-mangle.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
lint-unknown-feature-default.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-unknown-feature.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-unknown-lint-cmdline-allow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-unknown-lint-cmdline-deny.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-unknown-lint-cmdline-deny.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
lint-unknown-lint-cmdline.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-unknown-lint-cmdline.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
lint-unknown-lint.rs
lint-unknown-lint.stderr
lint-unnecessary-import-braces.rs
lint-unnecessary-import-braces.stderr
lint-unnecessary-parens.fixed Add test of unused_parens lint involving macro calls 2024-05-11 15:49:03 -07:00
lint-unnecessary-parens.rs Add test of unused_parens lint involving macro calls 2024-05-11 15:49:03 -07:00
lint-unnecessary-parens.stderr Add test of unused_parens lint involving macro calls 2024-05-11 15:49:03 -07:00
lint-unsafe-code.rs
lint-unsafe-code.stderr
lint_map_unit_fn.rs
lint_map_unit_fn.stderr
lint_pre_expansion_extern_module_aux.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lints-in-foreign-macros.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lints-in-foreign-macros.stderr
missing-copy-implementations-negative-copy.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-copy-implementations-non-exhaustive.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
missing-doc-private-macro.rs
missing-doc-private-macro.stderr
missing_copy_impl_trivial_bounds.rs Use correct param-env in MissingCopyImplementations 2024-05-22 12:46:08 -04:00
noop-method-call.rs When encountering <&T as Clone>::clone(x) because T: Clone, suggest #[derive(Clone)] 2024-02-22 18:01:20 +00:00
noop-method-call.stderr When encountering <&T as Clone>::clone(x) because T: Clone, suggest #[derive(Clone)] 2024-02-22 18:01:20 +00:00
not_found.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
not_found.stderr
opaque-ty-ffi-normalization-cycle.rs
opaque-ty-ffi-normalization-cycle.stderr
opaque-ty-ffi-unsafe.rs
opaque-ty-ffi-unsafe.stderr
outer-forbid.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
outer-forbid.stderr
ptr_null_checks.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ptr_null_checks.stderr
reasons-erroneous.rs RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
reasons-erroneous.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
reasons-forbidden.rs RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
reasons-forbidden.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
reasons.rs RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
reasons.stderr RFC 2383: Stabilize lint_reasons 🎉 2024-06-25 17:22:22 +02:00
recommend-literal.rs
recommend-literal.stderr
reference_casting.rs Handle Deref expressions in invalid_reference_casting 2024-05-10 12:33:07 -04:00
reference_casting.stderr
register-tool-lint.rs
register-tool-lint.stderr
renamed-lints-still-apply.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
renamed-lints-still-apply.stderr
rustdoc-group.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
rustdoc-group.stderr
rustdoc-renamed.rs
rustdoc-renamed.stderr
special-upper-lower-cases.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
special-upper-lower-cases.stderr
suggestions.fixed If suggestion would leave an empty line, delete it 2024-03-01 13:48:20 +00:00
suggestions.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
suggestions.stderr Special case when a code line only has multiline span starts 2024-06-23 22:00:52 +00:00
suspicious-double-ref-op.rs Stabilize LazyCell and LazyLock (lazy_cell) 2024-02-20 20:55:13 -07:00
suspicious-double-ref-op.stderr Stabilize LazyCell and LazyLock (lazy_cell) 2024-02-20 20:55:13 -07:00
test-allow-dead-extern-static-no-warning.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
test-inner-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
test-inner-fn.stderr
trivial-cast-ice.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
trivial-casts-featuring-type-ascription.rs
trivial-casts-featuring-type-ascription.stderr
trivial-casts.rs
trivial-casts.stderr
trivial_casts.rs
trivial_casts.stderr
type-overflow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-overflow.stderr
unaligned_references.rs
unaligned_references.stderr
unaligned_references_external_macro.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unaligned_references_external_macro.stderr
unconditional_panic_98444.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unconditional_panic_98444.stderr
undropped_manually_drops.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
undropped_manually_drops.stderr
unknown-lints-at-crate-level.rs Move 100 entries from tests/ui into subdirs 2024-05-20 19:55:59 -07:00
unnecessary-extern-crate.rs Handle a few more simple tests 2024-05-20 11:13:10 -04:00
unnecessary-extern-crate.stderr Handle a few more simple tests 2024-05-20 11:13:10 -04:00
unreachable-async-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unreachable_pub.rs Don't warn on fields in the unreachable_pub lint 2024-06-06 19:07:05 +02:00
unreachable_pub.stderr Don't warn on fields in the unreachable_pub lint 2024-06-06 19:07:05 +02:00
unused-borrows.rs
unused-borrows.stderr
unused-braces-while-let-with-mutable-value.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused-qualification-in-derive-expansion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused-qualifications-global-paths.rs Don't trigger unused_qualifications on global paths 2024-03-15 14:59:05 +00:00
unused_braces.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_braces.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_braces.stderr
unused_braces_borrow.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_braces_borrow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_braces_borrow.stderr
unused_braces_macro.rs Unify all the always-false cfgs under the FALSE cfg 2024-04-07 01:16:45 +02:00
unused_import_warning_issue_45268.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_import_warning_issue_45268.stderr
unused_labels.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_labels.stderr
unused_parens_json_suggestion.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_parens_json_suggestion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_parens_json_suggestion.stderr [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_parens_multibyte_recovery.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_parens_multibyte_recovery.stderr
unused_parens_remove_json_suggestion.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_parens_remove_json_suggestion.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_parens_remove_json_suggestion.stderr [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_variables-issue-82488.fixed [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_variables-issue-82488.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_variables-issue-82488.stderr
use_suggestion_json.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
use_suggestion_json.stderr Tweak output of import suggestions 2024-06-13 20:22:21 +00:00
warn-ctypes-inhibit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
warn-path-statement.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
warn-path-statement.stderr
warn-unused-inline-on-fn-prototypes.rs
warn-unused-inline-on-fn-prototypes.stderr
wide_pointer_comparisons.rs Add support for NonNull in ambiguous_wide_ptr_comparisions 2024-03-29 22:02:07 +01:00
wide_pointer_comparisons.stderr Add support for NonNull in ambiguous_wide_ptr_comparisions 2024-03-29 22:02:07 +01:00