1
Fork 0
rust/tests/ui/lint
bors 71b68da1bd Auto merge of #139578 - ferrocene:pa-compiletest-edition, r=jieyouxu
Fix breakage when running compiletest with `--test-args=--edition=2015`

Compiletest has an `--edition` flag to change the default edition tests are run with. Unfortunately no test suite successfully executes when that flag is passed. If the edition is set to something greater than 2015 the breakage is expected, since the test suite currently supports only edition 2015 (Ferrous Systems will open an MCP about fixing that soonish). Surprisingly, the test suite is also broken if `--edition=2015` is passed to compiletest. This PR focuses on fixing the latter.

This PR fixes the two categories of failures happening when `--edition=2015` is passed:

* Some edition-specific tests set their edition through `//@ compile-flags` instead of `//@ edition`. Compiletest doesn't parse the compile flags, so it would see no `//@ edition` and add another `--edition` flag, leading to a rustc error.
* Compiletest would add the edition after `//@ compile-flags`, while some tests depend on flags passed to `//@ compile-flags` being the last flags in the rustc invocation.

Note that for the first category, I opted to manually go and replace all `//@ compile-flags` setting an edition with an explicit `//@ edition`. We could've changed compiletest to instead check whether an edition was set in `//@ compile-flags`, but I thought it was better to enforce a consistent way to set the edition in tests.

I also added the edition to the stamp, so that changing `--edition` results in tests being re-executed.

r? `@jieyouxu`
2025-04-11 10:53:45 +00:00
..
auxiliary Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
dangling-pointers-from-temporaries Update lint tests with new dangling pointers message 2025-01-22 00:00:31 -05:00
dead-code remove feature(inline_const_pat) 2025-03-21 09:35:31 +01:00
decorate-ice
elided-named-lifetimes Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
force-warn compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
improper_ctypes tests: issue-34798.rs => allow-phantomdata-in-ffi.rs 2024-09-27 14:29:34 -07:00
internal
keyword-idents Known-bug test for keyword_idents lint not propagating to other files 2024-10-28 16:57:08 +11:00
known-tool-in-submodule
large_assignments report call site of inlined scopes for large assignment lints 2025-04-08 20:49:50 +02:00
let_underscore Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
must_not_suspend Point at lint name instead of whole attr for gated lints 2024-12-18 19:27:44 +00:00
non-local-defs Tweak multispan rendering 2024-12-12 23:36:27 +00:00
non-snake-case tests: use specific-purpose needs-crate-type over ignore-$target directives 2025-04-10 12:52:08 +08:00
redundant-semicolon Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
removed-lints Make ptr_cast_add_auto_to_object lint into hard error 2025-02-22 23:03:14 +00:00
rfc-2383-lint-reason Fix lint levels not getting overridden by attrs on Stmt nodes 2024-09-14 16:12:00 +05:30
rfc-2457-non-ascii-idents UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
semicolon-in-expressions-from-macros
unknown-lints
unnecessary-qualification
unsafe_code Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
unused replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
use-redundant Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -04:00
ambiguous_wide_pointer_comparisons_suggestions.fixed
ambiguous_wide_pointer_comparisons_suggestions.rs
ambiguous_wide_pointer_comparisons_suggestions.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
anonymous-reexport.rs
anonymous-reexport.stderr Make early lints translatable 2024-05-21 20:16:39 +00:00
bad-lint-cap.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
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 Compiler: Rename "object safe" to "dyn compatible" 2024-09-25 13:26:48 +02:00
clashing-extern-fn-issue-130851.rs Make clashing_extern_declarations considering generic args for ADT field 2024-09-27 16:37:43 +08:00
clashing-extern-fn-issue-130851.stderr Make clashing_extern_declarations considering generic args for ADT field 2024-09-27 16:37:43 +08:00
clashing-extern-fn-recursion.rs some fixes for clashing_extern_declarations lint 2024-09-13 11:51:17 +02:00
clashing-extern-fn-wasm.rs
clashing-extern-fn.rs Handle pattern types wrapped in Option in FFI checks 2025-02-11 08:52:08 +00:00
clashing-extern-fn.stderr Hide the end of ranges in pretty printing if it's also the maximum of the type 2025-03-06 10:50:23 +00:00
cli-lint-override.forbid_warn.stderr compiler: replace ExternAbi::name calls with formatters 2025-02-11 19:42:47 -08:00
cli-lint-override.force_warn_deny.stderr compiler: replace ExternAbi::name calls with formatters 2025-02-11 19:42:47 -08:00
cli-lint-override.rs
cli-lint-override.warn_deny.stderr compiler: replace ExternAbi::name calls with formatters 2025-02-11 19:42:47 -08:00
cli-unknown-force-warn.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
cli-unknown-force-warn.stderr Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00:00
command-line-lint-group-allow.rs
command-line-lint-group-deny.rs
command-line-lint-group-deny.stderr
command-line-lint-group-forbid.rs
command-line-lint-group-forbid.stderr Only suggest #[allow] for --warn and --deny lint level flags 2024-08-08 13:09:58 +00:00
command-line-lint-group-warn.rs
command-line-lint-group-warn.stderr
command-line-register-lint-tool.rs
command-line-register-unknown-lint-tool.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
command-line-register-unknown-lint-tool.stderr Always run tail_expr_drop_order lint on promoted MIR 2024-12-23 20:25:41 +00:00
crate_level_only_lint.rs
crate_level_only_lint.stderr
deny-inside-forbid-ignored.cli_forbid.stderr Expand test coverage for deny-inside-forbid interactions 2024-10-18 18:18:41 +02:00
deny-inside-forbid-ignored.cli_forbid_warnings.stderr Expand test coverage for deny-inside-forbid interactions 2024-10-18 18:18:41 +02:00
deny-inside-forbid-ignored.rs Expand test coverage for deny-inside-forbid interactions 2024-10-18 18:18:41 +02:00
deny-inside-forbid-ignored.source_only.stderr Expand test coverage for deny-inside-forbid interactions 2024-10-18 18:18:41 +02:00
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-macros.fixed Fix handling of macro arguments within the `dropping_copy_types lint 2024-08-22 13:32:01 +02:00
dropping_copy_types-macros.rs Fix handling of macro arguments within the `dropping_copy_types lint 2024-08-22 13:32:01 +02:00
dropping_copy_types-macros.stderr Fix handling of macro arguments within the `dropping_copy_types lint 2024-08-22 13:32:01 +02:00
dropping_copy_types.rs
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
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
enable-unstable-lib-feature.stderr
expansion-time-include.rs
expansion-time.rs compiletest: Support matching on diagnostics without a span 2025-03-25 17:33:09 +03:00
expansion-time.stderr use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08:00
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
expect-unused-imports.rs Check AttrId for expectations. 2024-09-06 20:51:06 +00:00
expr-field.rs
expr_attr_paren_order.rs
expr_attr_paren_order.stderr
extern-C-fnptr-lints-slices.rs Revert #131669 due to ICEs 2024-12-09 17:31:16 +08:00
extern-C-fnptr-lints-slices.stderr Revert #131669 due to ICEs 2024-12-09 17:31:16 +08:00
fn-ptr-comparisons-134345.rs Fix trimmed_def_paths ICE in the function ptr comparison lint 2024-12-15 23:46:42 +01:00
fn-ptr-comparisons-some.rs Also lint on option of function pointer comparisons 2024-12-20 23:48:46 +01:00
fn-ptr-comparisons-some.stderr Also lint on option of function pointer comparisons 2024-12-20 23:48:46 +01:00
fn-ptr-comparisons-weird.rs Add warn-by-default lint against unpredictable fn pointer comparisons 2024-12-02 18:43:37 +01:00
fn-ptr-comparisons-weird.stderr Add warn-by-default lint against unpredictable fn pointer comparisons 2024-12-02 18:43:37 +01:00
fn-ptr-comparisons.fixed Add warn-by-default lint against unpredictable fn pointer comparisons 2024-12-02 18:43:37 +01:00
fn-ptr-comparisons.rs Add warn-by-default lint against unpredictable fn pointer comparisons 2024-12-02 18:43:37 +01:00
fn-ptr-comparisons.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
fn_must_use.rs
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 Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
forbid-always-trumps-cli.allow-first-group.stderr extend group-forbid-always-trumps-cli test 2024-11-27 21:48:23 +01:00
forbid-always-trumps-cli.allow-first-lint.stderr extend group-forbid-always-trumps-cli test 2024-11-27 21:48:23 +01:00
forbid-always-trumps-cli.allow-first-mix1.stderr extend group-forbid-always-trumps-cli test 2024-11-27 21:48:23 +01:00
forbid-always-trumps-cli.allow-first-mix2.stderr extend group-forbid-always-trumps-cli test 2024-11-27 21:48:23 +01:00
forbid-always-trumps-cli.forbid-first-group.stderr extend group-forbid-always-trumps-cli test 2024-11-27 21:48:23 +01:00
forbid-always-trumps-cli.forbid-first-lint.stderr extend group-forbid-always-trumps-cli test 2024-11-27 21:48:23 +01:00
forbid-always-trumps-cli.forbid-first-mix1.stderr extend group-forbid-always-trumps-cli test 2024-11-27 21:48:23 +01:00
forbid-always-trumps-cli.forbid-first-mix2.stderr extend group-forbid-always-trumps-cli test 2024-11-27 21:48:23 +01:00
forbid-always-trumps-cli.rs extend group-forbid-always-trumps-cli test 2024-11-27 21:48:23 +01:00
forbid-error-capped.rs
forbid-group-group-1.rs
forbid-group-group-1.stderr
forbid-group-group-2.rs
forbid-group-group-2.stderr show forbidden_lint_groups in future-compat reports 2024-11-27 15:27:41 +01:00
forbid-group-member.rs
forbid-group-member.stderr show forbidden_lint_groups in future-compat reports 2024-11-27 15:27:41 +01:00
forbid-macro-with-deny.allow.stderr Expand test coverage for deny-inside-forbid interactions 2024-10-18 18:18:41 +02:00
forbid-macro-with-deny.rs Expand test coverage for deny-inside-forbid interactions 2024-10-18 18:18:41 +02:00
forbid-macro-with-deny.warn.stderr Expand test coverage for deny-inside-forbid interactions 2024-10-18 18:18:41 +02:00
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
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 Update tests. 2025-01-07 16:04:14 +01:00
function-item-references.stderr
future-incompat-json-test.rs
future-incompat-json-test.stderr
future-incompat-test.rs
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
ice-array-into-iter-lint-issue-121532.rs
ice-array-into-iter-lint-issue-121532.stderr
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
improper_ctypes_definitions_ice_134060.rs Add regression test for #134060 2024-12-09 17:39:08 +08:00
improper_ctypes_definitions_ice_134060.stderr Add regression test for #134060 2024-12-09 17:39:08 +08:00
inclusive-range-pattern-syntax.fixed
inclusive-range-pattern-syntax.rs
inclusive-range-pattern-syntax.stderr
inert-attr-macro.rs expand: Do not report cfg_attr traces on macros as unused attributes 2025-03-21 18:25:29 +03:00
inert-attr-macro.stderr expand: Do not report cfg_attr traces on macros as unused attributes 2025-03-21 18:25:29 +03:00
inline-exported.rs Emit unused_attributes for #[inline] on exported functions 2025-03-24 20:07:35 +01:00
inline-exported.stderr Emit unused_attributes for #[inline] on exported functions 2025-03-24 20:07:35 +01:00
inline-trait-and-foreign-items.rs
inline-trait-and-foreign-items.stderr
internal_features.rs update/bless tests 2025-04-06 21:41:47 +02:00
internal_features.stderr
invalid-nan-comparison-suggestion.fixed Add f16 and f128 to invalid_nan_comparison 2024-10-31 21:26:36 -05:00
invalid-nan-comparison-suggestion.rs Add f16 and f128 to invalid_nan_comparison 2024-10-31 21:26:36 -05:00
invalid-nan-comparison-suggestion.stderr Add f16 and f128 to invalid_nan_comparison 2024-10-31 21:26:36 -05:00
invalid-nan-comparison.rs Add f16 and f128 to invalid_nan_comparison 2024-10-31 21:26:36 -05:00
invalid-nan-comparison.stderr Add f16 and f128 to invalid_nan_comparison 2024-10-31 21:26:36 -05:00
invalid_from_utf8.rs Fix false-positive in expr_or_init and in the invalid_from_utf8 lint 2025-03-11 21:56:53 +01:00
invalid_from_utf8.stderr Fix false-positive in expr_or_init and in the invalid_from_utf8 lint 2025-03-11 21:56:53 +01:00
invalid_null_args.rs Uplift clippy::invalid_null_ptr_usage as invalid_null_arguments 2025-03-30 19:33:15 +02:00
invalid_null_args.stderr Uplift clippy::invalid_null_ptr_usage as invalid_null_arguments 2025-03-30 19:33:15 +02:00
invalid_value-polymorphic.rs
invalid_value.rs Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
invalid_value.stderr Update a bunch of library types for MCP807 2025-01-09 23:47:11 -08:00
issue-1866.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-1866.stderr tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-14837.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-17718-const-naming.rs
issue-17718-const-naming.stderr
issue-19102.rs
issue-20343.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-30302.rs
issue-30302.stderr Reword the "unreachable pattern" explanations 2024-08-19 21:39:57 +02:00
issue-35075.rs
issue-35075.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-47775-nested-macro-unnecessary-parens-arg.rs
issue-49588-non-shorthand-field-patterns-in-pattern-macro.rs
issue-54099-camel-case-underscore-types.rs
issue-57410-1.rs
issue-57410.rs
issue-63364.rs
issue-63364.stderr
issue-70819-dont-override-forbid-in-same-scope.rs Allow #[deny(..)] inside #[forbid(..)] as a no-op with a warning 2024-10-18 18:18:41 +02:00
issue-70819-dont-override-forbid-in-same-scope.stderr show forbidden_lint_groups in future-compat reports 2024-11-27 15:27:41 +01:00
issue-79744.rs
issue-79744.stderr
issue-81218.rs
issue-83477.rs
issue-83477.stderr
issue-87274-paren-parent.rs
issue-87274-paren-parent.stderr
issue-90614-accept-allow-text-direction-codepoint-in-comment-lint.rs
issue-97094.rs
issue-97094.stderr
issue-99387.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
issue-99387.stderr Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +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 Reword suggestion message 2024-11-16 20:03:31 +00:00
issue-104897.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
issue-104897.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
issue-106991.rs Shorten error message for callable with wrong return type 2025-02-02 01:00:33 +00:00
issue-106991.stderr Shorten error message for callable with wrong return type 2025-02-02 01:00:33 +00:00
issue-108155.rs
issue-109152.rs
issue-109152.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-109529.fixed
issue-109529.rs
issue-109529.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
issue-110573.rs
issue-111359.rs
issue-111359.stderr
issue-112489.rs
issue-117949.noopt.stderr
issue-117949.opt.stderr
issue-117949.opt_with_overflow_checks.stderr
issue-117949.rs
issue-121070-let-range.rs
linker-warning-bin.rs warn on unused linker_messages warning attributes 2025-01-20 16:46:00 -05:00
linker-warning.rs warn on unused linker_messages warning attributes 2025-01-20 16:46:00 -05:00
linker-warning.stderr Fix lint name in unused linker_messages warning 2025-03-21 13:59:29 +00:00
lint-attr-everywhere-early.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
lint-attr-everywhere-early.stderr
lint-attr-everywhere-late.rs
lint-attr-everywhere-late.stderr Use FnSig instead of raw FnDecl for ForeignItemKind::Fn 2024-08-16 14:10:06 -04:00
lint-attr-non-item-node.rs
lint-attr-non-item-node.stderr
lint-cap-trait-bounds.rs
lint-cap.rs
lint-change-warnings.rs
lint-change-warnings.stderr
lint-const-item-mutation.rs
lint-const-item-mutation.stderr Improve find_self_call with reborrowed receiver 2025-01-06 03:17:04 +00:00
lint-ctypes-66202.rs
lint-ctypes-73249-1.rs
lint-ctypes-73249-2.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
lint-ctypes-73249-2.stderr Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
lint-ctypes-73249-3.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
lint-ctypes-73249-3.stderr Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
lint-ctypes-73249-4.rs
lint-ctypes-73249-5.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
lint-ctypes-73249-5.stderr Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
lint-ctypes-73249.rs
lint-ctypes-73251-1.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
lint-ctypes-73251-1.stderr Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
lint-ctypes-73251-2.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
lint-ctypes-73251-2.stderr Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
lint-ctypes-73251.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
lint-ctypes-73747.rs
lint-ctypes-94223.rs
lint-ctypes-94223.stderr Revert #131669 due to ICEs 2024-12-09 17:31:16 +08:00
lint-ctypes-113436-1.rs
lint-ctypes-113436-1.stderr
lint-ctypes-113436.rs
lint-ctypes-113900.rs
lint-ctypes-cstr.rs Revert #131669 due to ICEs 2024-12-09 17:31:16 +08:00
lint-ctypes-cstr.stderr Revert #131669 due to ICEs 2024-12-09 17:31:16 +08:00
lint-ctypes-enum.rs Add ffi tests for pattern types 2025-02-11 08:30:35 +00:00
lint-ctypes-enum.stderr Add ffi tests for pattern types 2025-02-11 08:30:35 +00:00
lint-ctypes-fn.rs Revert #131669 due to ICEs 2024-12-09 17:31:16 +08:00
lint-ctypes-fn.stderr Revert #131669 due to ICEs 2024-12-09 17:31:16 +08:00
lint-ctypes-non-recursion-limit.rs Add a test 2024-09-23 12:55:56 -04:00
lint-ctypes-option-nonnull-unsized.rs
lint-ctypes-option-nonnull-unsized.stderr
lint-ctypes.rs Update tests. 2025-01-07 16:04:14 +01:00
lint-ctypes.stderr Update tests. 2025-01-07 16:04:14 +01:00
lint-deref-nullptr.rs Don't emit null pointer lint for raw ref of null deref 2024-10-06 22:36:51 -04:00
lint-deref-nullptr.stderr Don't emit null pointer lint for raw ref of null deref 2024-10-06 22:36:51 -04:00
lint-directives-on-use-items-issue-10534.rs
lint-directives-on-use-items-issue-10534.stderr
lint-double-negations.rs implement lint double_negations 2025-01-26 12:18:33 +01:00
lint-double-negations.stderr implement lint double_negations 2025-01-26 12:18:33 +01:00
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
lint-ffi-safety-all-phantom.rs
lint-forbid-attr.rs
lint-forbid-attr.stderr
lint-forbid-cmdline.rs
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 Turn order dependent trait objects future incompat warning into a hard error 2025-02-20 13:39:39 +00:00
lint-incoherent-auto-trait-objects.stderr Turn order dependent trait objects future incompat warning into a hard error 2025-02-20 13:39:39 +00:00
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 Always run tail_expr_drop_order lint on promoted MIR 2024-12-23 20:25:41 +00:00
lint-malformed.stderr Always run tail_expr_drop_order lint on promoted MIR 2024-12-23 20:25:41 +00:00
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
lint-missing-copy-implementations.rs
lint-missing-copy-implementations.stderr
lint-missing-doc-crate.rs Add test about missing docs at crate level 2024-09-09 14:51:39 +02:00
lint-missing-doc-crate.stderr Add test about missing docs at crate level 2024-09-09 14:51:39 +02:00
lint-missing-doc-expect.rs Don't allow test revisions that conflict with built in cfgs 2024-10-23 18:05:27 +00:00
lint-missing-doc-test.rs Use doc(hidden) instead of allow(missing_docs) in the test harness 2024-09-11 12:14:35 +02:00
lint-missing-doc.rs
lint-missing-doc.stderr Use FnSig instead of raw FnDecl for ForeignItemKind::Fn 2024-08-16 14:10:06 -04: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 tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08: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
lint-output-format-2.stderr
lint-output-format.rs
lint-output-format.stderr use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08:00
lint-overflowing-int-136675.rs Fix unwrap error in overflowing int literal 2025-02-09 20:39:43 +08:00
lint-overflowing-int-136675.stderr Fix unwrap error in overflowing int literal 2025-02-09 20:39:43 +08:00
lint-overflowing-ops.noopt.stderr
lint-overflowing-ops.opt.stderr
lint-overflowing-ops.opt_with_overflow_checks.stderr
lint-overflowing-ops.rs Remove the -test suffix from normalize directives 2024-12-27 19:58:16 +11:00
lint-pre-expansion-extern-module.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03: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
lint-qualification.fixed
lint-qualification.rs
lint-qualification.stderr
lint-range-endpoint-overflow.rs
lint-range-endpoint-overflow.stderr
lint-removed-allow.rs
lint-removed-allow.stderr
lint-removed-cmdline-deny.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-removed-cmdline-deny.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-removed-cmdline.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-removed-cmdline.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-removed.rs
lint-removed.stderr
lint-renamed-allow.rs
lint-renamed-allow.stderr
lint-renamed-cmdline-deny.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-renamed-cmdline-deny.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-renamed-cmdline.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-renamed-cmdline.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-renamed.rs
lint-renamed.stderr
lint-shorthand-field.fixed
lint-shorthand-field.rs
lint-shorthand-field.stderr
lint-stability-2.rs use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08:00
lint-stability-2.stderr use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08:00
lint-stability-deprecated.rs
lint-stability-deprecated.stderr
lint-stability-fields-deprecated.rs
lint-stability-fields-deprecated.stderr
lint-stability-fields.rs
lint-stability-fields.stderr use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08:00
lint-stability.rs use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08:00
lint-stability.stderr use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08:00
lint-stability2.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-stability2.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-stability3.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-stability3.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-strict-provenance-fuzzy-casts.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
lint-strict-provenance-fuzzy-casts.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lint-strict-provenance-lossy-casts.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
lint-strict-provenance-lossy-casts.stderr Trim suggestion parts to the subset that is purely additive 2025-02-14 00:44:10 -08:00
lint-struct-necessary.rs
lint-struct-necessary.stderr
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
lint-type-overflow2.rs implement lint double_negations 2025-01-26 12:18:33 +01:00
lint-type-overflow2.stderr implement lint double_negations 2025-01-26 12:18:33 +01:00
lint-unconditional-drop-recursion.rs
lint-unconditional-drop-recursion.stderr
lint-unconditional-recursion-tail-calls.rs Fix unconditional recursion lint wrt tail calls 2024-07-07 17:11:05 +02:00
lint-unconditional-recursion-tail-calls.stderr Fix unconditional recursion lint wrt tail calls 2024-07-07 17:11:05 +02:00
lint-unconditional-recursion.rs
lint-unconditional-recursion.stderr
lint-unexported-no-mangle.rs compiletest: Support matching on diagnostics without a span 2025-03-25 17:33:09 +03:00
lint-unexported-no-mangle.stderr Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00:00
lint-unknown-feature-default.rs
lint-unknown-feature.rs
lint-unknown-lint-cmdline-allow.rs
lint-unknown-lint-cmdline-deny.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-unknown-lint-cmdline-deny.stderr Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00:00
lint-unknown-lint-cmdline.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
lint-unknown-lint-cmdline.stderr Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00:00
lint-unknown-lint.rs
lint-unknown-lint.stderr
lint-unnecessary-import-braces.rs
lint-unnecessary-import-braces.stderr
lint-unnecessary-parens.fixed stabilize raw_ref_op 2024-08-18 19:46:53 +02:00
lint-unnecessary-parens.rs stabilize raw_ref_op 2024-08-18 19:46:53 +02:00
lint-unnecessary-parens.stderr stabilize raw_ref_op 2024-08-18 19:46:53 +02:00
lint-unsafe-code.rs
lint-unsafe-code.stderr
lint_map_unit_fn.rs
lint_map_unit_fn.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
lint_pre_expansion_extern_module_aux.rs
lints-in-foreign-macros.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
lints-in-foreign-macros.stderr Filter empty lines, comments and delimiters from previous to last multiline span rendering 2024-12-12 23:36:27 +00:00
lints-on-stmt-not-overridden-130142.rs Fix lint levels not getting overridden by attrs on Stmt nodes 2024-09-14 16:12:00 +05:30
missing-copy-implementations-negative-copy.rs
missing-copy-implementations-non-exhaustive.rs
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
negative_literals.rs Temporarily switch ambiguous_negative_literals lint to allow 2024-07-31 19:36:47 +02:00
negative_literals.stderr Temporarily switch ambiguous_negative_literals lint to allow 2024-07-31 19:36:47 +02:00
noop-method-call.rs
noop-method-call.stderr
not_found.rs
not_found.stderr
opaque-ty-ffi-normalization-cycle.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
opaque-ty-ffi-normalization-cycle.stderr Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
opaque-ty-ffi-unsafe.rs Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
opaque-ty-ffi-unsafe.stderr Implement #[define_opaque] attribute for functions. 2025-03-11 12:05:02 +00:00
outer-forbid.rs
outer-forbid.stderr show forbidden_lint_groups in future-compat reports 2024-11-27 15:27:41 +01:00
ptr_null_checks.rs
ptr_null_checks.stderr
reasons-erroneous.rs Remove the box_pointers lint. 2024-06-27 08:55:28 +10:00
reasons-erroneous.stderr Remove the box_pointers lint. 2024-06-27 08:55:28 +10: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 Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
reference_casting.rs Handle Deref expressions in invalid_reference_casting 2024-05-10 12:33:07 -04:00
reference_casting.stderr Fixed typos by changing happend to happened 2024-12-01 11:31:09 +13:00
register-tool-lint.rs
register-tool-lint.stderr
renamed-lints-still-apply.rs
renamed-lints-still-apply.stderr
rust-cold-fn-accept-improper-ctypes.rs compiler: Accept "improper" ctypes in extern "rust-cold" fn 2024-09-21 08:59:52 -07:00
rustdoc-group.rs
rustdoc-group.stderr
rustdoc-renamed.rs
rustdoc-renamed.stderr
special-upper-lower-cases.rs
special-upper-lower-cases.stderr
static-mut-refs.e2021.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
static-mut-refs.e2024.stderr More sophisticated span trimming 2025-02-21 00:41:17 +00:00
static-mut-refs.rs Update more 2024 tests to remove -Zunstable-options 2024-11-28 14:32:45 -08:00
suggestions.fixed
suggestions.rs
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
suspicious-double-ref-op.stderr
test-allow-dead-extern-static-no-warning.rs
test-inner-fn.rs
test-inner-fn.stderr Do not suggest using -Zmacro-backtrace for builtin macros 2025-03-14 19:50:03 +00:00
trivial-cast-ice.rs
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 fix: fix overflowing hex wrong suggestion 2025-02-28 07:25:52 +05:30
type-overflow.stderr fix: fix overflowing hex wrong suggestion 2025-02-28 07:25:52 +05:30
unaligned_references.current.stderr Normalize struct tail properly in disalignment check 2024-08-08 11:58:11 -04:00
unaligned_references.next.stderr Normalize struct tail properly in disalignment check 2024-08-08 11:58:11 -04:00
unaligned_references.rs Normalize struct tail properly in disalignment check 2024-08-08 11:58:11 -04:00
unaligned_references_external_macro.rs
unaligned_references_external_macro.stderr
unaligned_references_fake_borrow.rs Ignore fake borrows for packed field check 2025-02-21 17:50:11 +00:00
unconditional_panic_98444.rs
unconditional_panic_98444.stderr
unconditional_panic_promoted.rs Fix some typos 2024-12-24 11:35:38 +08:00
unconditional_panic_promoted.stderr Compute array length from type for unconditional panic. 2024-10-05 00:19:26 +00:00
undropped_manually_drops.rs
undropped_manually_drops.stderr
unit_bindings.deny_level.stderr unit_bindings: improve test coverage 2024-10-21 21:33:33 +08:00
unit_bindings.rs unit_bindings: improve test coverage 2024-10-21 21:33:33 +08:00
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
unqualified_local_imports.rs replace //@ compile-flags: --edition with //@ edition 2025-04-10 09:56:37 +02:00
unqualified_local_imports.stderr add unqualified_local_imports lint 2024-09-23 11:57:28 +02:00
unreachable-async-fn.rs
unreachable_pub.fixed Prefer pub(super) in unreachable_pub lint suggestion 2024-11-04 19:09:40 +01:00
unreachable_pub.rs Prefer pub(super) in unreachable_pub lint suggestion 2024-11-04 19:09:40 +01:00
unreachable_pub.stderr Prefer pub(super) in unreachable_pub lint suggestion 2024-11-04 19:09:40 +01:00
unused-borrows.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
unused-borrows.stderr
unused-braces-while-let-with-mutable-value.rs
unused-qualification-in-derive-expansion.rs Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
unused-qualifications-global-paths.rs
unused_braces.fixed
unused_braces.rs
unused_braces.stderr
unused_braces_borrow.fixed
unused_braces_borrow.rs
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
unused_import_warning_issue_45268.stderr
unused_labels.rs
unused_labels.stderr
unused_parens_json_suggestion.fixed Adding BreakValue to UnusedDelimsCtx to make UnusedParens and UnusedBraces checking break 2024-11-14 09:08:56 +08:00
unused_parens_json_suggestion.rs Adding BreakValue to UnusedDelimsCtx to make UnusedParens and UnusedBraces checking break 2024-11-14 09:08:56 +08:00
unused_parens_json_suggestion.stderr Adding BreakValue to UnusedDelimsCtx to make UnusedParens and UnusedBraces checking break 2024-11-14 09:08:56 +08:00
unused_parens_multibyte_recovery.rs compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
unused_parens_multibyte_recovery.stderr compiletest: Require //~ annotations even if error-pattern is specified 2025-04-03 11:08:55 +03:00
unused_parens_remove_json_suggestion.fixed Adding BreakValue to UnusedDelimsCtx to make UnusedParens and UnusedBraces checking break 2024-11-14 09:08:56 +08:00
unused_parens_remove_json_suggestion.rs Adding BreakValue to UnusedDelimsCtx to make UnusedParens and UnusedBraces checking break 2024-11-14 09:08:56 +08:00
unused_parens_remove_json_suggestion.stderr Adding BreakValue to UnusedDelimsCtx to make UnusedParens and UnusedBraces checking break 2024-11-14 09:08:56 +08:00
unused_variables-issue-82488.fixed
unused_variables-issue-82488.rs
unused_variables-issue-82488.stderr
use_suggestion_json.rs
use_suggestion_json.stderr Add multi-producer, multi-consumer channel (mpmc) 2024-09-30 20:43:51 +03:00
warn-ctypes-inhibit.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
warn-path-statement.rs
warn-path-statement.stderr
warn-unused-inline-on-fn-prototypes.rs
warn-unused-inline-on-fn-prototypes.stderr
wasm_c_abi_transition.rs add FCW to warn about wasm ABI transition 2025-03-25 08:22:35 +01:00
wasm_c_abi_transition.stderr add FCW to warn about wasm ABI transition 2025-03-25 08:22:35 +01:00
wide_pointer_comparisons.rs
wide_pointer_comparisons.stderr Use underline suggestions for purely 'additive' replacements 2025-02-14 00:27:13 -08:00