rust/tests/ui/lint
bors a2545fd6fc Auto merge of #133540 - ehuss:compiletest-proc-macro, r=jieyouxu
Compiletest: add proc-macro header

This adds a `proc-macro` header to simplify using proc-macros, and to reduce boilerplate. This header works similar to the `aux-build` header where you pass a path for a proc-macro to be built.

This allows the `force-host`, `no-prefer-dynamic` headers, and `crate_type` attribute to be removed. Additionally it uses `--extern` like `aux_crate` (allows implicit `extern crate` in 2018) and `--extern proc_macro` (to place in the prelude in 2018).

~~This also includes a secondary change which defaults the edition of proc-macros to 2024. This further reduces boilerplate (removing `extern crate proc_macro;`), and allows using modern Rust syntax. I was a little on the fence including this. I personally prefer it, but I can imagine it might be confusing to others.~~ EDIT: Removed

Some tests were changed so that when there is a chain of dependencies A→B→C, that the `@ proc-macro` is placed in `B` instead of `A` so that the `--extern` flag works correctly (previously it depended on `-L` to find `C`). I think this is better to make the dependencies more explicit. None of these tests looked like the were actually testing this behavior.

There is one test that had an unexplained output change: `tests/ui/macros/same-sequence-span.rs`. I do not know why it changed, but it didn't look like it was particularly important. Perhaps there was a normalization issue?

This is currently not compatible with the rustdoc `build-aux-docs` header. It can probably be fixed, I'm just not feeling motivated to do that right now.

### Implementation steps

- [x] Document this new behavior in rustc-dev-guide once we figure out the specifics. https://github.com/rust-lang/rustc-dev-guide/pull/2149
2024-11-28 19:00:58 +00:00
..
auxiliary Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
dangling-pointers-from-temporaries Update dangling pointer tests 2024-11-11 13:36:43 -07:00
dead-code tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
decorate-ice Invoke decorate when error level is beyond warning, including error 2024-03-17 14:41:37 +00:00
elided-named-lifetimes Hack around a conflict with clippy::needless_lifetimes 2024-09-06 17:06:35 +03:00
force-warn Compiler: Rename "object safe" to "dyn compatible" 2024-09-25 13:26:48 +02:00
improper_ctypes tests: issue-34798.rs => allow-phantomdata-in-ffi.rs 2024-09-27 14:29:34 -07:00
internal [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [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 Fix the misleading diagnostic for let_underscore_drop on type without Drop implementation 2024-09-26 10:18:18 +08:00
must_not_suspend Fix wording of misapplied must_not_suspend error 2024-08-18 20:32:04 +03:00
non-local-defs Also treat impl definition parent as transparent regarding modules 2024-11-01 16:07:02 +01:00
non-snake-case tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
redundant-semicolon Update tests to use new proc-macro header 2024-11-27 07:18:25 -08: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 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 Update tests to use new proc-macro header 2024-11-27 07:18:25 -08:00
unused Adding BreakValue to UnusedDelimsCtx to make UnusedParens and UnusedBraces checking break 2024-11-14 09:08:56 +08:00
use-redundant Introduce REDUNDANT_IMPORTS lint 2024-07-31 00:07:42 -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 Update anonymous-reexport UI test 2023-03-22 16:05:20 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bad-lint-cap2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bad-lint-cap2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
bad-lint-cap3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
bad-lint-cap3.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
bare-trait-objects-path.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
clashing-extern-fn.rs some fixes for clashing_extern_declarations lint 2024-09-13 11:51:17 +02:00
clashing-extern-fn.stderr some fixes for clashing_extern_declarations lint 2024-09-13 11:51:17 +02:00
cli-lint-override.forbid_warn.stderr Update tests. 2024-10-31 10:55:45 +01:00
cli-lint-override.force_warn_deny.stderr Update tests. 2024-10-31 10:55:45 +01:00
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 Update tests. 2024-10-31 10:55:45 +01:00
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 Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00: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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Only suggest #[allow] for --warn and --deny lint level flags 2024-08-08 13:09:58 +00:00
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 Add help to allow lint for the implied by suggestion 2023-09-04 14:21:38 +02:00
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 Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
crate_level_only_lint.rs rustc_lint: Prevent multiple 'lint ignored' lints 2023-12-28 19:46:40 +01:00
crate_level_only_lint.stderr rustc_lint: Prevent multiple 'lint ignored' lints 2023-12-28 19:46:40 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
deny-overflowing-literals.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 [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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
expansion-time-include.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
expansion-time.rs use backticks instead of single quotes when reporting "use of unstable library feature" 2024-11-03 13:55:52 -08: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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
expr_attr_paren_order.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
expr_attr_paren_order.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
extern-C-fnptr-lints-slices.rs tests: Test that extern "C" fn ptrs lint on slices 2024-09-21 09:51:14 -07:00
extern-C-fnptr-lints-slices.stderr tests: Test that extern "C" fn ptrs lint on slices 2024-09-21 09:51:14 -07:00
fn_must_use.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
fn_must_use.stderr error-msg: expand suggestion for unused lint 2023-03-15 23:30:12 +13:00
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-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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
forbid-group-group-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
forbid-group-group-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
forbid-group-group-2.rs rustc_lint: Prevent multiple 'incompatible with previous forbid' lints 2023-12-28 19:46:40 +01:00
forbid-group-group-2.stderr rustc_lint: Prevent multiple 'incompatible with previous forbid' lints 2023-12-28 19:46:40 +01:00
forbid-group-member.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
forbid-group-member.stderr rustc_lint: Prevent multiple 'incompatible with previous forbid' lints 2023-12-28 19:46:40 +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 rustc_lint: Prevent multiple 'incompatible with previous forbid' lints 2023-12-28 19:46:40 +01:00
forbid-member-group.stderr rustc_lint: Prevent multiple 'incompatible with previous forbid' lints 2023-12-28 19:46:40 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Do not point at #[allow(_)] as the reason for compat lint triggering 2024-02-13 20:27:43 +00:00
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 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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
inert-attr-macro.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
inert-attr-macro.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
internal_features.rs lib features ending in '_internals?' are internal 2023-11-21 08:00:26 +01:00
internal_features.stderr lib features ending in '_internals?' are internal 2023-11-21 08:00:26 +01:00
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 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 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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-17718-const-naming.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-19102.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-20343.rs tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
issue-30302.rs Change bindings_with_variant_name to deny-by-default 2023-01-20 02:26:12 -05:00
issue-30302.stderr Reword the "unreachable pattern" explanations 2024-08-19 21:39:57 +02:00
issue-35075.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-35075.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-63364.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Allow #[deny(..)] inside #[forbid(..)] as a no-op with a warning 2024-10-18 18:18:41 +02:00
issue-79744.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-79744.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-97094.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Change how for (x in foo) {} is handled 2023-11-29 18:47:32 +00:00
issue-104392.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-104392.stderr Reword suggestion message 2024-11-16 20:03:31 +00:00
issue-104897.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
issue-104897.stderr Be more accurate about calculating display_col from a BytePos 2024-07-18 20:08:38 +00:00
issue-106991.rs Add ui test for E0271 error 2023-02-23 13:57:13 +03:00
issue-106991.stderr Point at tail expression on rpit E0277 2024-11-02 03:08:04 +00:00
issue-108155.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 add run-rustfix 2023-03-29 09:56:28 +08:00
issue-110573.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00: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 [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 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 Use FnSig instead of raw FnDecl for ForeignItemKind::Fn 2024-08-16 14:10:06 -04:00
lint-attr-non-item-node.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-attr-non-item-node.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-change-warnings.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
lint-ctypes-73249-2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lint-ctypes-73249-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-ctypes-73249-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-ctypes-73249-5.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
lint-ctypes-73251-1.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01: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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 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 [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-cstr.rs Add a special case for CStr/CString in the improper_ctypes lint 2024-08-06 13:56:59 +00:00
lint-ctypes-cstr.stderr Add a special case for CStr/CString in the improper_ctypes lint 2024-08-06 13:56:59 +00:00
lint-ctypes-enum.rs compiler: Fully stabilize result_ffi_guarantees 2024-10-19 13:01:30 -07:00
lint-ctypes-enum.stderr compiler: Fully stabilize result_ffi_guarantees 2024-10-19 13:01:30 -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-non-recursion-limit.rs Add a test 2024-09-23 12:55:56 -04:00
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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-directives-on-use-items-issue-10534.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-enum-intrinsics-non-enums.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 rustc_lint: Prevent multiple 'incompatible with previous forbid' lints 2023-12-28 19:46:40 +01:00
lint-forbid-attr.stderr rustc_lint: Prevent multiple 'incompatible with previous forbid' lints 2023-12-28 19:46:40 +01:00
lint-forbid-cmdline.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-forbid-cmdline.stderr rustc_lint: Prevent multiple 'incompatible with previous forbid' lints 2023-12-28 19:46:40 +01:00
lint-forbid-internal-unsafe.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-forbid-internal-unsafe.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lint-group-nonstandard-style.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-group-nonstandard-style.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-impl-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-impl-fn.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-incoherent-auto-trait-objects.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-incoherent-auto-trait-objects.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-lowercase-static-const-pattern.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-malformed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Remove hir::Guard 2024-01-05 10:56:59 +00:00
lint-match-arms.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-match-arms.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lint-misplaced-attr.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-misplaced-attr.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-missing-copy-implementations.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-non-camel-case-types.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 tests: remove //@ pretty-expanded usages 2024-11-26 02:50:48 +08:00
lint-non-uppercase-associated-const.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-non-uppercase-associated-const.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lint-non-uppercase-statics.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-non-uppercase-statics.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lint-nonstandard-style-unicode-1.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-nonstandard-style-unicode-1.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-nonstandard-style-unicode-3.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-nonstandard-style-unicode-3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-output-format.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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-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 Always use a colon in //@ normalize-*: headers 2024-07-11 12:23:44 +10:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-range-endpoint-overflow.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-removed-allow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-removed-allow.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00: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 Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00:00
lint-removed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-removed.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lint-renamed-allow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-renamed-allow.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00: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 Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00:00
lint-renamed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-renamed.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-stability-deprecated.stderr Stop using hir_ty_to_ty in rustc_privacy 2024-02-07 14:59:26 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-stability-fields.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-stability2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lint-stability3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-stability3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01: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 rename ptr::from_exposed_addr -> ptr::with_exposed_provenance 2024-03-23 13:18:33 +01: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 rename expose_addr to expose_provenance 2024-04-03 16:00:38 +02:00
lint-struct-necessary.rs match scrutinee need necessary parentheses for structs 2023-08-14 18:05:13 +08:00
lint-struct-necessary.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lint-type-limits.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-type-limits.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-type-limits2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-type-limits2.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lint-type-limits3.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-type-limits3.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
lint-type-overflow.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-type-overflow.stderr Fix span of overflow lint for negated literals 2023-10-11 04:55:55 +02:00
lint-type-overflow2.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
lint-type-overflow2.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-unconditional-recursion.stderr Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
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 Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00: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 Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00: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 Rewrite lint_expectations in a single pass. 2024-08-31 14:00:54 +00:00
lint-unknown-lint.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-unknown-lint.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-unnecessary-import-braces.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-unnecessary-import-braces.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lint-unsafe-code.stderr Move /src/test to /tests 2023-01-11 09:32:08 +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 [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 Move /src/test to /tests 2023-01-11 09:32:08 +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 [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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
missing-doc-private-macro.stderr Make MissingDoc a module lint. 2023-08-04 16:09:14 +00:00
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 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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
opaque-ty-ffi-normalization-cycle.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
opaque-ty-ffi-normalization-cycle.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
opaque-ty-ffi-unsafe.rs Add AliasKind::Weak for type aliases. 2023-06-16 19:39:48 +00:00
opaque-ty-ffi-unsafe.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
outer-forbid.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
outer-forbid.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
ptr_null_checks.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
ptr_null_checks.stderr Stabilize ptr::{from_ref, from_mut} 2023-12-15 08:34:59 -08:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
recommend-literal.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
reference_casting.rs Handle Deref expressions in invalid_reference_casting 2024-05-10 12:33:07 -04:00
reference_casting.stderr Lint on reference casting to bigger underlying allocation 2024-02-12 19:40:17 +01:00
register-tool-lint.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
register-tool-lint.stderr Add a note to duplicate diagnostics 2023-10-05 01:04:41 +00:00
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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
rustdoc-group.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-renamed.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
rustdoc-renamed.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
static-mut-refs.e2021.stderr Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
static-mut-refs.e2024.stderr Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
static-mut-refs.rs Update tests for hidden references to mutable static 2024-09-13 14:10:56 +03:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial-casts-featuring-type-ascription.stderr remove type ascription feature gate 2023-06-03 09:22:47 +08:00
trivial-casts.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial-casts.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial_casts.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
trivial_casts.stderr adjust how closure/generator types and rvalues are printed 2023-09-21 22:20:58 +02:00
type-overflow.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
type-overflow.stderr Update ui test 2023-06-11 18:27:26 +08:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unaligned_references_external_macro.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unconditional_panic_98444.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unconditional_panic_98444.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unconditional_panic_promoted.rs Compute array length from type for unconditional panic. 2024-10-05 00:19:26 +00: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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
undropped_manually_drops.stderr Uplift clippy::undropped_manually_drops to rustc 2023-06-08 11:41:34 +02:00
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 add unqualified_local_imports lint 2024-09-23 11:57:28 +02:00
unqualified_local_imports.stderr add unqualified_local_imports lint 2024-09-23 11:57:28 +02:00
unreachable-async-fn.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused-borrows.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Update tests to use new proc-macro header 2024-11-27 07:18:25 -08: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 Fix regression in unused_braces with macros 2023-01-15 05:08:30 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unused_labels.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_labels.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unused_parens_multibyte_recovery.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01: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 [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 Show number in error message even for one error 2023-11-24 19:15:52 +01:00
use_suggestion_json.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
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 [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
warn-path-statement.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
warn-unused-inline-on-fn-prototypes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
warn-unused-inline-on-fn-prototypes.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Do not underline suggestions for code that is already there 2024-08-01 18:53:42 +00:00