rust/src/test/ui/proc-macro
Aaron Hill a7c408d6ac
Normalize symbol ids to 0 in test stdout
The number of symbols we allocate (even early on) seems to be platform
dependent. We only care about hygiene for the purposes of this test,
so just set all of the symbol ids to zero
2020-06-29 22:04:10 -04:00
..
auxiliary Serialize all foreign SourceFiles into proc-macro crate metadata 2020-06-29 21:45:42 -04:00
debug Show SyntaxContext in formatted Span debug output 2020-06-08 21:47:33 -04:00
outer expand: Feature gate out-of-line modules in proc macro input 2019-11-04 14:56:07 +03:00
add-impl.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
ambiguous-builtin-attrs-test.rs tests: move all proc_macro tests from -fulldeps. 2018-11-30 06:15:20 +02:00
ambiguous-builtin-attrs-test.stderr Update tests 2019-03-11 23:10:26 +03:00
ambiguous-builtin-attrs.rs tests: move all proc_macro tests from -fulldeps. 2018-11-30 06:15:20 +02:00
ambiguous-builtin-attrs.stderr hide --explain hint if error has no extended info 2019-04-18 13:29:28 -04:00
append-impl.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
attr-args.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
attr-cfg.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
attr-invalid-exprs.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
attr-invalid-exprs.stderr Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
attr-on-trait.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
attr-stmt-expr-rpass.rs tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
attr-stmt-expr.rs normalize use of backticks in compiler messages for libsyntax/feature_gate 2019-07-09 14:13:28 +02:00
attr-stmt-expr.stderr --bless --compare-mode=nll 2020-02-09 20:43:49 +01:00
attribute-order-restricted.rs tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
attribute-order-restricted.stderr tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
attribute-spans-preserved.rs Remove licenses 2018-12-25 21:08:33 -07:00
attribute-spans-preserved.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
attribute-spans-preserved.stdout Update pretty tests 2020-03-17 20:58:31 +01:00
attribute-with-error.rs tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
attribute-with-error.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
attribute.rs Introduce built-in macros through libcore 2019-07-26 13:09:54 +03:00
attribute.stderr move attr meta grammar to parse::validate_atr + ast_validation 2019-11-09 02:04:24 +01:00
attributes-included.rs Moving more build-pass tests to check-pass 2020-04-23 20:21:38 -07:00
attributes-included.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
attributes-on-definitions.rs Respect attributes on proc macro definitions 2019-08-27 01:33:13 +03:00
attributes-on-definitions.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
attributes-on-modules-fail.rs Stabilize attribute macros on inline modules 2019-12-28 11:42:26 +03:00
attributes-on-modules-fail.stderr reword "possible candidate" import suggestion 2020-05-07 00:33:25 -04:00
attributes-on-modules.rs Stabilize attribute macros on inline modules 2019-12-28 11:42:26 +03:00
bang-macro.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
break-token-spans.rs Fix tests 2020-05-20 15:33:58 -04:00
break-token-spans.stderr Use a fixed-point iteration when breaking tokens 2020-05-19 19:47:23 -04:00
call-site.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
capture-macro-rules-invoke.rs Always capture tokens for macro_rules! arguments 2020-06-15 11:50:27 -04:00
count_compound_ops.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
crate-var.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
crt-static.rs Ignore SGX on a few ui tests 2020-05-05 19:19:39 -07:00
custom-attr-only-one-derive.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
define-two.rs Remove licenses 2018-12-25 21:08:33 -07:00
define-two.stderr Update tests 2019-03-11 23:10:26 +03:00
derive-attr-cfg.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
derive-b.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
derive-bad.rs defatalize ProcMacroDerive::expand 2020-03-24 06:28:56 +01:00
derive-bad.stderr defatalize ProcMacroDerive::expand 2020-03-24 06:28:56 +01:00
derive-helper-configured.rs resolve: Block expansion of a derive container until all its derives are resolved 2019-08-27 00:31:55 +03:00
derive-helper-shadowed.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
derive-helper-shadowing-2.rs resolve: Give derive helpers highest priority during resolution 2019-11-19 00:50:53 +03:00
derive-helper-shadowing.rs resolve: Give derive helpers highest priority during resolution 2019-11-19 00:50:53 +03:00
derive-helper-shadowing.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
derive-in-mod.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
derive-same-struct.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
derive-same-struct.stdout tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
derive-still-gated.rs resolve: Tweak "cannot find" wording for attributes 2019-09-15 13:10:12 +03:00
derive-still-gated.stderr resolve: Tweak "cannot find" wording for attributes 2019-09-15 13:10:12 +03:00
derive-test.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
derive-two-attrs.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
derive-union.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
disappearing-resolution.rs resolve: Say "import" when reporting private imports 2020-01-16 21:59:11 +03:00
disappearing-resolution.stderr Serialize all foreign SourceFiles into proc-macro crate metadata 2020-06-29 21:45:42 -04:00
dollar-crate-issue-57089.rs Use check-pass in ui tests where appropriate 2019-11-04 16:03:46 +01:00
dollar-crate-issue-57089.stdout Update pretty tests 2020-03-17 20:58:31 +01:00
dollar-crate-issue-62325.rs Stabilize proc macros in type positions 2019-09-30 21:59:35 +03:00
dollar-crate-issue-62325.stdout Update pretty tests 2020-03-17 20:58:31 +01:00
dollar-crate.rs test-macros: Avoid always producing errors in #[derive(Print)] 2020-05-31 00:17:33 +03:00
dollar-crate.stdout Update pretty tests 2020-03-17 20:58:31 +01:00
edition-imports-2018.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
empty-crate.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
empty-where-clause.rs Don't lose empty where clause when pretty-printing 2020-06-08 21:09:54 -04:00
empty-where-clause.stderr Don't lose empty where clause when pretty-printing 2020-06-08 21:09:54 -04:00
expand-to-unstable-2.rs Remove #[feature(custom_attribute)] 2019-11-09 17:50:51 +03:00
expand-to-unstable-2.stderr resolve: Remove rustc_attrs as a standalone feature gate 2020-03-24 21:37:29 +03:00
expand-to-unstable.rs Remove licenses 2018-12-25 21:08:33 -07:00
expand-to-unstable.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
expand-with-a-macro.rs Re-enable Emscripten's exception handling support 2019-10-25 15:16:36 -07:00
export-macro.rs Remove licenses 2018-12-25 21:08:33 -07:00
export-macro.stderr proc_macro_harness: Use item header spans for errors 2020-03-22 12:59:32 +03:00
exports.rs Remove licenses 2018-12-25 21:08:33 -07:00
exports.stderr proc_macro_harness: Use item header spans for errors 2020-03-22 12:59:32 +03:00
extern-prelude-extern-crate-proc-macro.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
gen-lifetime-token.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
gen-macro-rules-hygiene.rs Test basic hygiene for macro_rules produced by transparent macros 2019-10-15 10:03:51 +03:00
gen-macro-rules-hygiene.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
gen-macro-rules.rs resolve: Properly integrate derives and macro_rules scopes 2019-08-17 20:15:06 +03:00
generate-dollar-ident.rs Add a test for proc macro generating $ IDENT 2020-02-17 22:47:59 +03:00
generate-mod.rs Remove licenses 2018-12-25 21:08:33 -07:00
generate-mod.stderr reword "possible candidate" import suggestion 2020-05-07 00:33:25 -04:00
helper-attr-blocked-by-import-ambig.rs tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
helper-attr-blocked-by-import-ambig.stderr tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
helper-attr-blocked-by-import.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
hygiene_example.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
illegal-proc-macro-derive-use.rs Remove licenses 2018-12-25 21:08:33 -07:00
illegal-proc-macro-derive-use.stderr Remove licenses 2018-12-25 21:08:33 -07:00
import.rs tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
import.stderr tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
input-interpolated.rs Add a test for $:ident in proc macro input 2020-05-31 00:24:56 +03:00
input-interpolated.stdout Add a test for $:ident in proc macro input 2020-05-31 00:24:56 +03:00
invalid-attributes.rs Reword malformed attribute input diagnostics 2019-05-25 11:55:50 -07:00
invalid-attributes.stderr Reword malformed attribute input diagnostics 2019-05-25 11:55:50 -07:00
invalid-punct-ident-1.rs defatalize BangProcMacro::expand 2020-03-24 06:28:55 +01:00
invalid-punct-ident-1.stderr Set RUST_BACKTRACE=0 in tests that include a backtrace in stderr 2019-10-02 15:23:22 -04:00
invalid-punct-ident-2.rs defatalize BangProcMacro::expand 2020-03-24 06:28:55 +01:00
invalid-punct-ident-2.stderr Set RUST_BACKTRACE=0 in tests that include a backtrace in stderr 2019-10-02 15:23:22 -04:00
invalid-punct-ident-3.rs defatalize BangProcMacro::expand 2020-03-24 06:28:55 +01:00
invalid-punct-ident-3.stderr Set RUST_BACKTRACE=0 in tests that include a backtrace in stderr 2019-10-02 15:23:22 -04:00
invalid-punct-ident-4.rs expand: address review comments 2020-03-24 06:28:56 +01:00
invalid-punct-ident-4.stderr expand: address review comments 2020-03-24 06:28:56 +01:00
is-available.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
issue-36935.rs defatalize ProcMacroDerive::expand 2020-03-24 06:28:56 +01:00
issue-36935.stderr defatalize ProcMacroDerive::expand 2020-03-24 06:28:56 +01:00
issue-37788.rs tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
issue-37788.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
issue-38586.rs Moved issue tests to subdirs and normalised names. 2019-03-14 01:00:49 +00:00
issue-38586.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
issue-39889.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
issue-41211.rs Remove #[feature(custom_attribute)] 2019-11-09 17:50:51 +03:00
issue-41211.stderr Remove #[feature(custom_attribute)] 2019-11-09 17:50:51 +03:00
issue-42708.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
issue-50061.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
issue-50493.rs Update tests 2020-01-09 21:23:12 +03:00
issue-50493.stderr Add span label to primary error span 2020-03-22 11:18:06 -07:00
issue-53481.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
issue-59191-replace-root-with-fn.rs Change expansion error to be non-fatal 2020-02-02 21:03:38 -08:00
issue-59191-replace-root-with-fn.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
item-error.rs Remove licenses 2018-12-25 21:08:33 -07:00
item-error.stderr review comments 2020-02-05 10:32:01 -08:00
keep-expr-tokens.rs Collect tokens for ast::Expr 2020-05-24 15:54:48 -04:00
keep-expr-tokens.stderr Collect tokens for ast::Expr 2020-05-24 15:54:48 -04:00
lifetimes-rpass.rs tests: Move run-pass tests with naming conflicts to ui 2019-07-27 18:56:17 +03:00
lifetimes.rs Stabilize proc macros in type positions 2019-09-30 21:59:35 +03:00
lifetimes.stderr Stabilize proc macros in type positions 2019-09-30 21:59:35 +03:00
lints_in_proc_macros.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
lints_in_proc_macros.stderr Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
load-panic.rs tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
load-panic.stderr tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
load-two.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
macro-brackets.rs tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
macro-brackets.stderr Surround types with backticks in type errors 2019-11-18 11:03:04 -08:00
macro-crate-multi-decorator.rs resolve: Remove rustc_attrs as a standalone feature gate 2020-03-24 21:37:29 +03:00
macro-namespace-reserved-2.rs Update tests 2020-01-09 21:23:12 +03:00
macro-namespace-reserved-2.stderr Update tests 2020-01-09 21:23:12 +03:00
macro-namespace-reserved.rs Remove licenses 2018-12-25 21:08:33 -07:00
macro-namespace-reserved.stderr Update tests 2019-03-11 23:10:26 +03:00
macro-rules-derive.rs Always capture tokens for macro_rules! arguments 2020-06-15 11:50:27 -04:00
macro-rules-derive.stderr Always capture tokens for macro_rules! arguments 2020-06-15 11:50:27 -04:00
macro-use-attr.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
macro-use-bang.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
macros-in-extern-derive.rs Stabilize macros in extern blocks 2019-09-30 21:59:35 +03:00
macros-in-extern-derive.stderr Stabilize macros in extern blocks 2019-09-30 21:59:35 +03:00
macros-in-extern.rs Stabilize macros in extern blocks 2019-09-30 21:59:35 +03:00
macros-in-type.rs Stabilize proc macros in type positions 2019-09-30 21:59:35 +03:00
meta-macro-hygiene.rs Normalize symbol ids to 0 in test stdout 2020-06-29 22:04:10 -04:00
meta-macro-hygiene.stdout Normalize symbol ids to 0 in test stdout 2020-06-29 22:04:10 -04:00
meta-macro.rs Serialize all foreign SourceFiles into proc-macro crate metadata 2020-06-29 21:45:42 -04:00
meta-macro.stdout Serialize all foreign SourceFiles into proc-macro crate metadata 2020-06-29 21:45:42 -04:00
mixed-site-span.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
mixed-site-span.stderr resolve: Do not suggest imports from the same module in which we are resolving 2020-05-30 20:42:20 +03:00
modify-ast.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
module.rs expand: Feature gate out-of-line modules in proc macro input 2019-11-04 14:56:07 +03:00
multispan.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
multispan.stderr Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
negative-token.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
nested-item-spans.rs tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
nested-item-spans.stderr Point at type in let assignment on type errors 2019-11-21 19:24:31 -08:00
no-macro-use-attr.rs rewrote error messages for #[rustc_error] 2019-11-05 22:42:23 +01:00
no-macro-use-attr.stderr rustc: Add a warning count upon completion 2020-04-11 16:15:24 +02:00
no-missing-docs.rs Migrate compile-pass annotations to build-pass 2019-07-03 06:30:28 +09:00
non-root.rs Remove licenses 2018-12-25 21:08:33 -07:00
non-root.stderr proc_macro_harness: Use item header spans for errors 2020-03-22 12:59:32 +03:00
not-joint.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
out-of-line-mod.rs Add a test for out-of-line module passed through a proc macro 2020-03-21 21:40:58 +03:00
parent-source-spans.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
parent-source-spans.stderr Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
proc-macro-attributes.rs resolve: Tweak "cannot find" wording for attributes 2019-09-15 13:10:12 +03:00
proc-macro-attributes.stderr resolve: Tweak "cannot find" wording for attributes 2019-09-15 13:10:12 +03:00
proc-macro-deprecated-attr.rs Deprecated proc_macro doesn't trigger warning on build library 2019-10-24 14:14:51 +08:00
proc-macro-gates.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
proc-macro-gates.stderr Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
proc-macro-gates2.rs Resolve attributes in several places 2019-09-09 09:27:15 -03:00
proc-macro-gates2.stderr Resolve attributes in several places 2019-09-09 09:27:15 -03:00
pub-at-crate-root.rs Fix error message about exported symbols from proc-macro crates 2019-11-11 08:04:39 +01:00
pub-at-crate-root.stderr proc_macro_harness: Use item header spans for errors 2020-03-22 12:59:32 +03:00
reserved-macro-names.rs resolve: Reserve cfg/cfg_attr/derive only in attribute sub-namespace 2019-07-06 18:36:35 +03:00
reserved-macro-names.stderr resolve: Reserve cfg/cfg_attr/derive only in attribute sub-namespace 2019-07-06 18:36:35 +03:00
resolve-error.rs tests: remove ignore directives from tests that mention core/alloc/std spans. 2020-04-02 11:48:34 +03:00
resolve-error.stderr tests: remove ignore directives from tests that mention core/alloc/std spans. 2020-04-02 11:48:34 +03:00
resolved-located-at.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
resolved-located-at.stderr Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
shadow.rs tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
shadow.stderr tests: Centralize proc macros commonly used for testing 2019-05-22 02:20:34 +03:00
signature.rs Remove licenses 2018-12-25 21:08:33 -07:00
signature.stderr Specific labels when referring to "expected" and "found" types 2019-11-18 11:02:22 -08:00
smoke.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
span-api-tests.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
span-preservation.rs Add some more tests 2019-11-17 01:11:35 +03:00
span-preservation.stderr Emit coercion suggestions in more places 2019-12-03 21:51:16 -05:00
struct-field-macro.rs tests: Move run-pass tests without naming conflicts to ui 2019-07-27 18:56:16 +03:00
subspan.rs Remove licenses 2018-12-25 21:08:33 -07:00
subspan.stderr rustc_macros: don't limit the -Zmacro-backtrace suggestion to extern macros. 2020-02-06 21:46:38 +02:00
three-equals.rs Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
three-equals.stderr Stabilize fn-like proc macros in expression, pattern and statement positions 2020-05-03 19:24:41 +03:00
trait-fn-args-2015.rs syntax: Remove Nt(Impl,Trait,Foreign)Item 2020-02-24 20:25:32 +03:00
two-crate-types-1.rs Remove licenses 2018-12-25 21:08:33 -07:00
two-crate-types-1.stderr Move former compile-fail-fulldeps tests to ui 2018-12-09 19:56:30 +03:00
two-crate-types-2.rs Remove licenses 2018-12-25 21:08:33 -07:00
two-crate-types-2.stderr Move former compile-fail-fulldeps tests to ui 2018-12-09 19:56:30 +03:00
visibility-path.rs resolve: Do not resolve visibilities on proc macro definitions twice 2020-03-23 11:40:58 +03:00
visibility-path.stderr resolve: Do not resolve visibilities on proc macro definitions twice 2020-03-23 11:40:58 +03:00
weird-hygiene.rs Always capture tokens for macro_rules! arguments 2020-06-15 11:50:27 -04:00