rust/src/test/ui/macros
Dylan DPC ec8477fea1
Rollup merge of #98337 - c410-f3r:assert-compiler, r=oli-obk
[RFC 2011] Optimize non-consuming operators

Tracking issue: https://github.com/rust-lang/rust/issues/44838
Fifth step of https://github.com/rust-lang/rust/pull/96496

The most non-invasive approach that will probably have very little to no performance impact.

## Current behaviour

Captures are handled "on-the-fly", i.e., they are performed in the same place expressions are located.

```rust
// `let a = 1; let b = 2; assert!(a > 1 && b < 100);`

if !(
  { ***try capture `a` and then return `a`*** } > 1 && { ***try capture `b` and then return `b`*** } < 100
) {
  panic!( ... );
}
```

As such, some overhead is likely to occur (Specially with very large chains of conditions).

## New behaviour for non-consuming operators

When an operator is known to not take `self`, then it is possible to capture variables **AFTER** the condition.

```rust
// `let a = 1; let b = 2; assert!(a > 1 && b < 100);`

if !( a > 1 && b < 100 ) {
  { ***try capture `a`*** }
  { ***try capture `b`*** }
  panic!( ... );
}
```

So the possible impact on the runtime execution time will be diminished.

r? ````@oli-obk````
2022-06-28 15:30:02 +05:30
..
auxiliary Permit #[deprecated] in stdlib 2022-03-09 16:32:47 -05:00
issue-69838-dir expand_include: set .directory to dir of included file. 2020-03-20 17:39:29 +01:00
macro-expanded-include Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
rfc-2011-nicer-assert-messages [RFC 2011] Optimize non-consuming operators 2022-06-21 10:56:26 -03:00
rfc-3086-metavar-expr Stabilize $$ in Rust 1.63.0 2022-06-07 21:50:45 -03:00
syntax-extension-source-utils-files tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
ambiguity-legacy-vs-modern.rs resolve: Prefer macro_rules definitions to in-module macro definitions in some cases 2018-10-03 16:12:39 +04:00
ambiguity-legacy-vs-modern.stderr Edit error messages for rustc_resolve::AmbiguityKind variants 2021-10-25 20:33:07 -05:00
assert-as-macro.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
assert-eq-macro-msg.rs Add regression tests 2021-03-13 20:10:04 +08:00
assert-eq-macro-panic.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
assert-eq-macro-success.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
assert-eq-macro-unsized.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
assert-format-lazy.rs Ensure debug_assert! tests get run 2021-02-16 19:05:30 -05:00
assert-macro-explicit.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
assert-macro-fmt.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
assert-macro-owned.rs Add s to non_fmt_panic 2021-07-06 20:12:56 +02:00
assert-macro-static.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
assert-matches-macro-msg.rs fix ui tests 2021-07-16 11:26:20 -07:00
assert-ne-macro-msg.rs Add regression tests 2021-03-13 20:10:04 +08:00
assert-ne-macro-panic.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
assert-ne-macro-success.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
assert-ne-macro-unsized.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
assert-trailing-junk.rs [RFC 2011] Minimal initial implementation 2022-06-15 07:37:40 -03:00
assert-trailing-junk.with-generic-asset.stderr [RFC 2011] Minimal initial implementation 2022-06-15 07:37:40 -03:00
assert-trailing-junk.without-generic-asset.stderr [RFC 2011] Minimal initial implementation 2022-06-15 07:37:40 -03:00
assert.rs [RFC 2011] Minimal initial implementation 2022-06-15 07:37:40 -03:00
assert.with-generic-asset.stderr [RFC 2011] Minimal initial implementation 2022-06-15 07:37:40 -03:00
assert.without-generic-asset.stderr [RFC 2011] Minimal initial implementation 2022-06-15 07:37:40 -03:00
attr-empty-expr.rs expand: Do not ICE when a legacy AST-based macro attribute produces and empty expression 2021-04-03 19:42:09 +03:00
attr-empty-expr.stderr expand: Do not ICE when a legacy AST-based macro attribute produces and empty expression 2021-04-03 19:42:09 +03:00
bad-concat.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad-concat.stderr Remove licenses 2018-12-25 21:08:33 -07:00
bad_hello.rs Remove licenses 2018-12-25 21:08:33 -07:00
bad_hello.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
bang-after-name.fixed Give better error for macro_rules! name! 2021-09-24 16:21:34 +01:00
bang-after-name.rs Give better error for macro_rules! name! 2021-09-24 16:21:34 +01:00
bang-after-name.stderr Give better error for macro_rules! name! 2021-09-24 16:21:34 +01:00
builtin-prelude-no-accidents.rs Clarify message about unresolved use 2020-09-01 18:38:14 +01:00
builtin-prelude-no-accidents.stderr Clarify message about unresolved use 2020-09-01 18:38:14 +01:00
builtin-std-paths-fail.rs Update tests 2020-01-09 21:23:12 +03:00
builtin-std-paths-fail.stderr Expand derive invocations in left-to-right order 2021-04-10 17:29:20 -04:00
builtin-std-paths.rs Give built-in macros stable addresses in the standard library 2019-08-10 00:05:37 +03:00
cfg.rs Add UI test for cfg!(foo, bar) 2022-06-21 19:28:22 +01:00
cfg.stderr Add UI test for cfg!(foo, bar) 2022-06-21 19:28:22 +01:00
colorful-write-macros.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
concat-bytes-error.rs Clarify that repeat count must be positive 2021-12-27 12:31:40 -05:00
concat-bytes-error.stderr Clarify that repeat count must be positive 2021-12-27 12:31:40 -05:00
concat-bytes.rs Support [x; n] expressions in concat_bytes! 2021-12-18 08:50:01 -05:00
concat-rpass.rs Move some tests to more reasonable directories - 5 2021-03-20 11:41:24 -03:00
concat.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
concat.stderr Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
conditional-debug-macro-on.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
cross-crate-pat-span.rs Use correct edition when parsing :pat matchers 2021-05-29 13:09:14 -05:00
derive-in-eager-expansion-hang.rs Add a regression test for #44692 2019-07-11 00:35:01 +03:00
derive-in-eager-expansion-hang.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
die-macro-2.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
die-macro-expr.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
die-macro-pure.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
die-macro.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
doc-comment.rs Insert NoDelim groups around nonterminals when lowering macro_rules 2020-07-01 12:42:30 -04:00
dollar-crate-nested-encoding.rs pretty-print: Do not lose the $crate printing flag in print_tt 2019-07-11 12:07:35 +03:00
duplicate-builtin.rs Give a better error message for duplicate built-in macros 2020-09-01 08:34:17 -04:00
duplicate-builtin.stderr Give a better error message for duplicate built-in macros 2020-09-01 08:34:17 -04:00
edition-macro-pats.rs remove pat2021 2021-04-27 21:15:59 -05:00
empty-trailing-stmt.rs Treat trailing semicolon as a statement in macro call 2020-11-02 13:03:13 -05:00
empty-trailing-stmt.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
format-args-temporaries.rs Add test of temporaries inside format_args of core/std macros 2022-05-22 16:11:08 -07:00
format-foreign.rs Remove licenses 2018-12-25 21:08:33 -07:00
format-foreign.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
format-parse-errors.rs Specific error for positional args after named args in format!() 2019-07-15 20:51:32 -07:00
format-parse-errors.stderr Bless tests 2021-10-15 02:36:58 -05:00
format-unused-lables.rs Remove licenses 2018-12-25 21:08:33 -07:00
format-unused-lables.stderr Update tests 2019-03-11 23:10:26 +03:00
global-asm.rs Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
global-asm.stderr Bless tests 2021-10-15 02:36:58 -05:00
html-literals.rs Move some tests to more reasonable directories 2021-02-16 21:22:21 -03:00
include-single-expr-helper-1.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
include-single-expr-helper.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
include-single-expr.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
include-single-expr.stderr Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
issue-5060.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-6596-1.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-6596-1.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-8709.rs Move some tests to more reasonable directories 2021-01-31 19:46:46 -03:00
issue-8851.rs Move some tests to more reasonable directories 2022-06-21 09:33:14 -03:00
issue-16098.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-16098.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-19163.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-19163.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-21356.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-21356.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-22463.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-25274.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
issue-26322.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-29084.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-29084.stderr Implementation for 65853 2022-04-16 02:26:56 -04:00
issue-30143.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-30143.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
issue-33185.rs Move tests 2022-05-20 10:53:58 -03:00
issue-34171.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-34421-mac-expr-bad-stmt-good-add-semi.rs suggest semi on expr mac!() good as stmt mac!(). 2020-03-27 07:02:50 +01:00
issue-34421-mac-expr-bad-stmt-good-add-semi.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
issue-35450.rs Move some tests to more reasonable places 2022-05-01 08:47:38 -03:00
issue-35450.stderr Move some tests to more reasonable places 2022-05-01 08:47:38 -03:00
issue-37175.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-38715.rs Move some tests to more reasonable places 2022-05-08 17:31:05 -03:00
issue-38715.stderr Move some tests to more reasonable places 2022-05-08 17:31:05 -03:00
issue-39388.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-39388.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-39404.rs Revert "Promote missing_fragment_specifier to hard error" 2020-12-22 09:33:16 -05:00
issue-39404.stderr Revert "Promote missing_fragment_specifier to hard error" 2020-12-22 09:33:16 -05:00
issue-40469.rs Move some tests to more reasonable directories - 2 2021-01-16 19:46:54 -03:00
issue-40770.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-41776.rs Move some tests to more reasonable directories 2022-04-21 12:24:26 -03:00
issue-41776.stderr Move some tests to more reasonable directories 2022-04-21 12:24:26 -03:00
issue-41803.rs Allow unused rules in the testsuite where the lint triggers 2022-05-05 19:13:00 +02:00
issue-44127.rs Move some tests to more reasonable directories 2022-04-21 12:24:26 -03:00
issue-52169.rs Allow unused rules in the testsuite where the lint triggers 2022-05-05 19:13:00 +02:00
issue-54441.rs parse: use parse_item_common in parse_foreign_item. 2020-02-24 00:59:38 +01:00
issue-54441.stderr Bless tests 2021-10-15 02:36:58 -05:00
issue-57597.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-57597.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-58490.rs Add test for issue-58490 2020-03-13 16:06:07 +09:00
issue-58490.stderr Add test for issue-58490 2020-03-13 16:06:07 +09:00
issue-61033-1.rs mbe::transcribe: defatalize errors. 2020-03-24 06:28:56 +01:00
issue-61033-1.stderr mbe::transcribe: defatalize errors. 2020-03-24 06:28:56 +01:00
issue-61033-2.rs mbe::transcribe: defatalize errors. 2020-03-24 06:28:56 +01:00
issue-61033-2.stderr mbe::transcribe: defatalize errors. 2020-03-24 06:28:56 +01:00
issue-61053-different-kleene.rs Implement checks for meta-variables in macros 2019-07-19 19:59:12 +02:00
issue-61053-different-kleene.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
issue-61053-duplicate-binder.rs Implement checks for meta-variables in macros 2019-07-19 19:59:12 +02:00
issue-61053-duplicate-binder.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
issue-61053-missing-repetition.rs Implement checks for meta-variables in macros 2019-07-19 19:59:12 +02:00
issue-61053-missing-repetition.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
issue-61053-unbound.rs Implement checks for meta-variables in macros 2019-07-19 19:59:12 +02:00
issue-61053-unbound.stderr Normalise notes with the/is 2020-01-24 16:24:50 +00:00
issue-63102.rs Add check-pass test for #63102. 2019-08-01 22:41:10 +01:00
issue-68058.rs Fix test not to depend on environment 2020-01-11 10:15:54 +09:00
issue-68060.rs passes: check_attr on more targets 2020-09-28 12:18:52 +01:00
issue-68060.stderr passes: check_attr on more targets 2020-09-28 12:18:52 +01:00
issue-69838-mods-relative-to-included-path.rs expand_include: set .directory to dir of included file. 2020-03-20 17:39:29 +01:00
issue-70446.rs macro_rules: NtLifetime cannot start with an identifier 2020-04-04 16:23:43 +03:00
issue-75982-foreign-macro-weird-mod.rs Compute proper module parent during resolution 2020-10-24 14:28:13 -04:00
issue-77475.rs Add regression test for issue-77475 2020-10-23 16:09:17 +09:00
issue-78325-inconsistent-resolution.rs resolve: Relax macro resolution consistency check to account for any errors 2020-10-24 21:26:08 +03:00
issue-78325-inconsistent-resolution.stderr Bless tests 2021-10-15 02:36:58 -05:00
issue-78333.rs Qualify panic! as core::panic! in non-built-in core macros 2020-11-23 11:28:25 -08:00
issue-78892-substitution-in-statement-attr.rs add regression test for #78892 2020-11-09 15:44:22 +00:00
issue-81006.rs rustc_parse_format: Fix character indices in find_skips 2021-01-17 17:40:58 +03:00
issue-81006.stderr rustc_parse_format: Fix character indices in find_skips 2021-01-17 17:40:58 +03:00
issue-83340.rs Simplify and fix byte skipping in format! string parser 2021-03-21 14:42:27 +03:00
issue-83340.stderr Simplify and fix byte skipping in format! string parser 2021-03-21 14:42:27 +03:00
issue-83344.rs format macro argument parsing fix 2021-03-27 13:06:36 +03:00
issue-83344.stderr format macro argument parsing fix 2021-03-27 13:06:36 +03:00
issue-84195-lint-anon-const.rs Run buffered lints attached to anon consts 2021-04-15 11:11:44 -04:00
issue-84195-lint-anon-const.stderr Show macro name in 'this error originates in macro' message 2021-05-12 19:03:06 -04:00
issue-84429-matches-edition.rs Use correct edition when parsing :pat matchers 2021-05-29 13:09:14 -05:00
issue-84632-eager-expansion-recursion-limit.rs Improve help for recursion limit errors 2021-09-28 22:17:13 +02:00
issue-84632-eager-expansion-recursion-limit.stderr Bless tests 2021-10-15 02:36:58 -05:00
issue-86082-option-env-invalid-char.rs Add test to prevent regression 2021-07-05 22:13:38 -07:00
issue-86865.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-86865.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
issue-87877.rs expand: Treat more macro calls as statement macro calls 2021-09-02 14:14:38 +03:00
issue-88206.rs Improve wording of macro-not-found-but-name-exists note. 2021-08-23 16:57:59 +02:00
issue-88206.stderr Improve wording of macro-not-found-but-name-exists note. 2021-08-23 16:57:59 +02:00
issue-88228.rs Update tests. 2021-08-23 16:43:54 +02:00
issue-88228.stderr Update tests. 2021-08-23 16:43:54 +02:00
issue-92267.rs [rustc_builtin_macros] add indices to format_foreign::printf::Substitution::Escape 2021-12-31 12:42:15 -05:00
issue-92267.stderr [rustc_builtin_macros] add indices to format_foreign::printf::Substitution::Escape 2021-12-31 12:42:15 -05:00
issue-95267.rs Clarify comments about doc comments in macros. 2022-03-30 10:42:47 +11:00
issue-95533.rs Fix thread_local! macro to be compatible with no_implicit_prelude 2022-04-01 10:38:41 +02:00
lint-trailing-macro-call.rs Fix linting when trailing macro expands to a trailing semi 2021-09-15 19:36:28 -05:00
lint-trailing-macro-call.stderr Fix linting when trailing macro expands to a trailing semi 2021-09-15 19:36:28 -05:00
local-ambiguity-multiple-parsing-options.rs defatalize compile_declarative_macro 2020-03-24 06:28:56 +01:00
local-ambiguity-multiple-parsing-options.stderr Include macro name in 'local ambiguity' error 2021-06-07 20:17:48 -05:00
log_syntax-trace_macros-macro-locations.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
log_syntax-trace_macros-macro-locations.stdout tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-2.rs Fix new 'unnecessary trailing semicolon' warnings 2020-11-26 17:08:36 -05:00
macro-as-fn-body.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-at-most-once-rep-2015-rpass.rs tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
macro-at-most-once-rep-2015.rs Fix inaccurate comments in '?' Kleene operator tests. 2019-06-09 04:16:34 +02:00
macro-at-most-once-rep-2015.stderr Bless tests 2021-10-15 02:36:58 -05:00
macro-at-most-once-rep-2018-rpass.rs tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
macro-at-most-once-rep-2018.rs Fix typo in comment. 2019-06-09 04:16:34 +02:00
macro-at-most-once-rep-2018.stderr Bless tests 2021-10-15 02:36:58 -05:00
macro-attribute-expansion.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-attribute.rs Accept arbitrary expressions in key-value attributes at parse time 2020-12-09 21:37:32 +03:00
macro-attribute.stderr Accept arbitrary expressions in key-value attributes at parse time 2020-12-09 21:37:32 +03:00
macro-attributes.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-backtrace-invalid-internals.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-backtrace-invalid-internals.stderr Bless tests 2021-10-15 02:36:58 -05:00
macro-backtrace-nested.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-backtrace-nested.stderr Bless tests 2021-10-15 02:36:58 -05:00
macro-backtrace-println.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-backtrace-println.stderr Bless tests 2021-10-15 02:36:58 -05:00
macro-block-nonterminal.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-comma-behavior-rpass.rs Add needs-unwind to tests that depend on panicking 2021-12-09 22:03:52 +00:00
macro-comma-behavior.core.stderr Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
macro-comma-behavior.rs Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
macro-comma-behavior.std.stderr Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
macro-comma-support-rpass.rs Add test of matches macro for trailing commas 2022-05-11 16:42:16 +02:00
macro-comma-support.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-comma-support.stderr Bless tests 2021-10-15 02:36:58 -05:00
macro-context.rs Make SEMICOLON_IN_EXPRESSIONS_FROM_MACROS warn by default 2021-07-27 14:17:37 -05:00
macro-context.stderr Bless tests 2021-10-15 02:36:58 -05:00
macro-crate-def-only.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-crate-nonterminal-non-root.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-crate-nonterminal-non-root.stderr Update tests 2019-03-11 23:10:26 +03:00
macro-crate-nonterminal-renamed.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-crate-nonterminal.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-crate-use.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-deep_expansion.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-def-site-super.rs resolve: Cache module loading for all foreign modules 2021-10-02 18:31:42 +03:00
macro-delimiter-significance.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-deprecation.rs report kind of deprecated item in message 2020-07-26 13:58:31 -04:00
macro-deprecation.stderr report kind of deprecated item in message 2020-07-26 13:58:31 -04:00
macro-doc-comments.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-doc-escapes.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-doc-raw-str-hashes.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-error.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-error.stderr expand: Merge expand_{bang,attr,derive}_invoc into a single function 2019-07-11 00:12:57 +03:00
macro-expansion-tests.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-expansion-tests.stderr resolve: Remove ! from "cannot find" diagnostics for macros 2019-09-15 13:22:07 +03:00
macro-export-inner-module.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-first-set.rs Allow unused rules in the testsuite where the lint triggers 2022-05-05 19:13:00 +02:00
macro-follow-rpass.rs tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
macro-follow.rs Remove double trailing newlines 2019-04-22 16:57:01 +01:00
macro-follow.stderr Fix typo in Delimited::open_tt 2019-07-27 11:50:09 +02:00
macro-followed-by-seq-bad.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-followed-by-seq-bad.stderr Update tests 2019-03-11 23:10:26 +03:00
macro-followed-by-seq.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-in-expression-context-2.rs Update ui tests 2018-12-04 10:06:05 +01:00
macro-in-expression-context-2.stderr Modify structured suggestion output 2021-08-11 09:46:24 +00:00
macro-in-expression-context.fixed Update stderr 2021-07-27 18:21:25 -05:00
macro-in-expression-context.rs Update stderr 2021-07-27 18:21:25 -05:00
macro-in-expression-context.stderr Update stderr 2021-07-27 18:21:25 -05:00
macro-in-fn.rs review comments 2019-08-21 16:11:01 -07:00
macro-include-items.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-inner-attributes.rs Clarify message about unresolved use 2020-09-01 18:38:14 +01:00
macro-inner-attributes.stderr suggestion for typoed crate or module 2021-10-13 12:17:02 +09:00
macro-input-future-proofing.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-input-future-proofing.stderr syntax: Keep full Tokens for macro_rules separators 2019-06-08 20:36:20 +03:00
macro-interpolation.rs Add test of NtTy in a qpath 2021-11-25 15:03:59 -08:00
macro-invalid-fragment-spec.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-invalid-fragment-spec.stderr Remove licenses 2018-12-25 21:08:33 -07:00
macro-invocation-in-count-expr-fixed-array-type.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-lifetime-used-with-bound.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-lifetime-used-with-labels.rs Bless tests. 2022-06-02 19:24:10 +02:00
macro-lifetime-used-with-static.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-lifetime.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-literal.rs Allow unused rules in the testsuite where the lint triggers 2022-05-05 19:13:00 +02:00
macro-local-data-key-priv.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-local-data-key-priv.stderr Bless tests 2021-10-15 02:36:58 -05:00
macro-match-nonterminal.rs expand: Remove ParseSess::missing_fragment_specifiers 2022-04-09 15:44:19 +03:00
macro-match-nonterminal.stderr expand: Remove ParseSess::missing_fragment_specifiers 2022-04-09 15:44:19 +03:00
macro-meta-items-modern.rs Address review comments 2019-10-01 01:10:12 +03:00
macro-meta-items.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-method-issue-4621.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-missing-delimiters.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-missing-delimiters.stderr Update tests 2019-03-11 23:10:26 +03:00
macro-missing-fragment-deduplication.rs expand: Remove ParseSess::missing_fragment_specifiers 2022-04-09 15:44:19 +03:00
macro-missing-fragment-deduplication.stderr expand: Remove ParseSess::missing_fragment_specifiers 2022-04-09 15:44:19 +03:00
macro-missing-fragment.rs expand: Remove ParseSess::missing_fragment_specifiers 2022-04-09 15:44:19 +03:00
macro-missing-fragment.stderr expand: Remove ParseSess::missing_fragment_specifiers 2022-04-09 15:44:19 +03:00
macro-multiple-items.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-multiple-matcher-bindings.rs remove warn 2019-04-11 15:09:43 -05:00
macro-multiple-matcher-bindings.stderr Tweak duplicate matcher binding error 2019-11-25 13:30:52 -08:00
macro-name-typo.rs tests: remove ignore directives from tests that mention core/alloc/std spans. 2020-04-02 11:48:34 +03:00
macro-name-typo.stderr Remove trailing whitespace from error messages 2021-08-04 10:48:30 +02:00
macro-named-default.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-nested_definition_issue-31946.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-nested_expr.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-nested_stmt_macros.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-non-lifetime.rs Cleanup feature gates. 2022-03-03 18:50:28 +01:00
macro-non-lifetime.stderr Cleanup feature gates. 2022-03-03 18:50:28 +01:00
macro-nt-list.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-of-higher-order.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-or-patterns-back-compat.fixed Change or_patterns_back_compat lint to rust_2021_incompatible_or_patterns 2021-07-06 20:11:45 +02:00
macro-or-patterns-back-compat.rs Change or_patterns_back_compat lint to rust_2021_incompatible_or_patterns 2021-07-06 20:11:45 +02:00
macro-or-patterns-back-compat.stderr Link to edition guide instead of issues for 2021 lints. 2021-08-09 17:45:01 +02:00
macro-outer-attributes.rs Introduce #[rustc_dummy] attribute and use it in tests 2019-06-08 23:55:25 +03:00
macro-outer-attributes.stderr diagnostics: fix trailing space 2022-06-16 14:40:28 +03:00
macro-parameter-span.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-parameter-span.stderr Update tests 2019-03-11 23:10:26 +03:00
macro-pat-follow-2018.rs implement edition-specific :pat behavior for 2015/18 2020-12-19 07:13:36 -06:00
macro-pat-follow.rs implement edition-specific :pat behavior for 2015/18 2020-12-19 07:13:36 -06:00
macro-pat-neg-lit.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-pat-pattern-followed-by-or-in-2021.rs test: add reasonable case 2021-04-14 22:31:44 +08:00
macro-pat-pattern-followed-by-or-in-2021.stderr Bless tests with new suggestion 2021-11-29 22:20:34 -08:00
macro-pat-pattern-followed-by-or.rs test: add reasonable case 2021-04-14 22:31:44 +08:00
macro-pat.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-pat2021-pattern-followed-by-or.rs remove pat2021 2021-04-27 21:15:59 -05:00
macro-pat2021-pattern-followed-by-or.stderr Bless duplicate test 2021-11-29 22:38:26 -08:00
macro-path-prelude-fail-1.rs Cleanup feature gates. 2022-03-03 18:50:28 +01:00
macro-path-prelude-fail-1.stderr Cleanup feature gates. 2022-03-03 18:50:28 +01:00
macro-path-prelude-fail-2.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-path-prelude-fail-2.stderr Update tests 2019-03-11 23:10:26 +03:00
macro-path-prelude-fail-3.rs tests: remove ignore directives from tests that mention core/alloc/std spans. 2020-04-02 11:48:34 +03:00
macro-path-prelude-fail-3.stderr Clarify what attribute and derive macros look like. 2021-08-23 16:57:58 +02:00
macro-path-prelude-fail-4.rs resolve/expand: Catch macro kind mismatches early in resolve 2019-07-11 00:12:08 +03:00
macro-path-prelude-fail-4.stderr resolve/expand: Catch macro kind mismatches early in resolve 2019-07-11 00:12:08 +03:00
macro-path-prelude-pass.rs Make error and warning annotations mandatory in UI tests 2019-11-10 21:01:02 +01:00
macro-path-prelude-shadowing.rs Cleanup feature gates. 2022-03-03 18:50:28 +01:00
macro-path-prelude-shadowing.stderr Edit error messages for rustc_resolve::AmbiguityKind variants 2021-10-25 20:33:07 -05:00
macro-path.rs Fix new 'unnecessary trailing semicolon' warnings 2020-11-26 17:08:36 -05:00
macro-pub-matcher.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
macro-reexport-removed.rs resolve: Tweak "cannot find" wording for attributes 2019-09-15 13:10:12 +03:00
macro-reexport-removed.stderr Tweak removed feature error 2019-11-25 13:30:52 -08:00
macro-seq-followed-by-seq.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-shadowing-relaxed.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
macro-shadowing.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-shadowing.stderr Edit error messages for rustc_resolve::AmbiguityKind variants 2021-10-25 20:33:07 -05:00
macro-stability-rpass.rs Update tests 2021-08-28 00:24:39 -07:00
macro-stability.rs Permit #[deprecated] in stdlib 2022-03-09 16:32:47 -05:00
macro-stability.stderr Change rustc_deprecated to use note 2022-03-04 18:15:49 -05:00
macro-stmt-matchers.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
macro-stmt.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-stmt_macro_in_expr_macro.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-tt-followed-by-seq.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-tt-matchers.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
macro-use-all-and-none.rs Make error and warning annotations mandatory in UI tests 2019-11-10 21:01:02 +01:00
macro-use-all-and-none.stderr Check for duplicate attributes. 2021-11-18 16:10:26 -08:00
macro-use-all.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-use-bad-args-1.rs Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
macro-use-bad-args-1.stderr Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
macro-use-bad-args-2.rs Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
macro-use-bad-args-2.stderr Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
macro-use-both.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-use-one.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-use-scope.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
macro-use-undef.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-use-undef.stderr Update tests 2019-03-11 23:10:26 +03:00
macro-use-wrong-name.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-use-wrong-name.stderr Remove trailing whitespace from error messages 2021-08-04 10:48:30 +02:00
macro-with-attrs1.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-with-attrs2.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-with-braces-in-expr-position.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro_path_as_generic_bound.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro_path_as_generic_bound.stderr Clarify message about unresolved use 2020-09-01 18:38:14 +01:00
macro_undefined.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro_undefined.stderr Bless tests 2020-03-21 15:03:58 +01:00
macro_with_super_2.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macros-in-extern.rs Update tests for extern block linting 2021-01-13 07:49:16 -05:00
macros-nonfatal-errors.rs Stabilize derive_default_enum 2022-04-07 20:03:19 -04:00
macros-nonfatal-errors.stderr Stabilize derive_default_enum 2022-04-07 20:03:19 -04:00
malformed_macro_lhs.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
malformed_macro_lhs.stderr Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
meta-item-absolute-path.rs Update tests 2020-01-09 21:23:12 +03:00
meta-item-absolute-path.stderr Update tests 2020-01-09 21:23:12 +03:00
meta-variable-misuse.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
missing-bang-in-decl.fixed Give better error for macro_rules name 2021-10-01 22:47:39 +01:00
missing-bang-in-decl.rs Give better error for macro_rules name 2021-10-01 22:47:39 +01:00
missing-bang-in-decl.stderr Give better error for macro_rules name 2021-10-01 22:47:39 +01:00
missing-comma.rs Improve recovery on malformed format call 2020-09-02 13:18:19 +02:00
missing-comma.stderr Improve recovery on malformed format call 2020-09-02 13:18:19 +02:00
must-use-in-macro-55516.rs Moving more build-pass tests to check-pass 2020-04-23 20:21:38 -07:00
must-use-in-macro-55516.stderr Bless tests 2021-10-15 02:36:58 -05:00
no-std-macros.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
none-delim-lookahead.rs Fix lookahead with None-delimited group 2021-04-12 11:50:16 -04:00
nonterminal-matching.rs Pretty print empty blocks as {} 2021-12-01 13:50:13 -08:00
nonterminal-matching.stderr Pretty print empty blocks as {} 2021-12-01 13:50:13 -08:00
not-utf8.bin Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
not-utf8.rs Remove compile-fail test suite 2020-12-29 23:39:56 +03:00
not-utf8.stderr Show macro name in 'this error originates in macro' message 2021-05-12 19:03:06 -04:00
out-of-order-shadowing.rs Move some tests to more reasonable directories 2021-09-15 14:03:27 -03:00
out-of-order-shadowing.stderr Edit error messages for rustc_resolve::AmbiguityKind variants 2021-10-25 20:33:07 -05:00
parse-complex-macro-invoc-op.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
paths-in-macro-invocations.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
proc_macro.rs Move some tests to more reasonable directories 2021-11-14 14:38:42 -03:00
pub-item-inside-macro.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
pub-method-inside-macro.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
restricted-shadowing-legacy.rs Add checks for expected macro output in restricted shadowing tests 2018-09-08 14:15:11 +03:00
restricted-shadowing-legacy.stderr Edit error messages for rustc_resolve::AmbiguityKind variants 2021-10-25 20:33:07 -05:00
restricted-shadowing-modern.rs Cherry-pick src/test changes with Centril's changes 2019-08-19 22:31:46 +01:00
restricted-shadowing-modern.stderr Edit error messages for rustc_resolve::AmbiguityKind variants 2021-10-25 20:33:07 -05:00
same-sequence-span.rs Stabilize proc macros generating macro_rules items 2019-10-15 10:03:51 +03:00
same-sequence-span.stderr Bless tests 2021-10-15 02:36:58 -05:00
semi-after-macro-ty.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
span-covering-argument-1.rs update tests for migrate mode by default 2019-04-22 08:40:08 +01:00
span-covering-argument-1.stderr Bless tests 2021-10-15 02:36:58 -05:00
stmt_expr_attr_macro_parse.rs Allow unused rules in the testsuite where the lint triggers 2022-05-05 19:13:00 +02:00
stringify.rs Remove feature: crate visibility modifier 2022-05-21 14:22:06 -04:00
syntax-extension-cfg.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
syntax-extension-source-utils.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
trace-macro.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
trace-macro.stderr Make [e]println macros eagerly drop temporaries (for backport) 2022-04-27 13:22:41 -07:00
trace_faulty_macros.rs Various diagnostics clean ups/tweaks 2021-07-19 08:43:35 -07:00
trace_faulty_macros.stderr Bless tests 2021-10-15 02:36:58 -05:00
trace_macros-format.rs Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
trace_macros-format.stderr Move some tests to more reasonable directories 2021-11-06 15:35:20 -03:00
try-macro.rs Allow deprecated try macro in test crates 2019-08-09 02:29:44 +00:00
two-macro-use.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
type-macros-hlist.rs Allow unused rules in the testsuite where the lint triggers 2022-05-05 19:13:00 +02:00
type-macros-simple.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
typeck-macro-interaction-issue-8852.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
unimplemented-macro-panic.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
unknown-builtin.rs Give a better error message for duplicate built-in macros 2020-09-01 08:34:17 -04:00
unknown-builtin.stderr Give a better error message for duplicate built-in macros 2020-09-01 08:34:17 -04:00
unreachable-arg.edition_2021.stderr Take in account the unreachable! macro in the non_fmt_panic lint 2022-01-31 17:09:31 +01:00
unreachable-arg.rs Take in account the unreachable! macro in the non_fmt_panic lint 2022-01-31 17:09:31 +01:00
unreachable-fmt-msg.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
unreachable-format-arg.rs Take in account the unreachable! macro in the non_fmt_panic lint 2022-01-31 17:09:31 +01:00
unreachable-format-args.edition_2015.stderr Fix invalid special casing of the unreachable! macro 2022-01-31 17:09:31 +01:00
unreachable-format-args.rs Fix invalid special casing of the unreachable! macro 2022-01-31 17:09:31 +01:00
unreachable-macro-panic.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
unreachable-static-msg.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
unreachable.rs Skip tests on emscripten 2020-05-08 00:39:02 +09:00
use-macro-self.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
vec-macro-in-pattern.rs Force vec! to expressions only 2021-01-17 12:48:25 +01:00
vec-macro-in-pattern.stderr Show macro name in 'this error originates in macro' message 2021-05-12 19:03:06 -04:00