about summary refs log tree commit diff
path: root/src/test/ui/proc-macro/input-interpolated.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-07-26 20:00:35 -0400
committerAaron Hill <aa1ronham@gmail.com>2020-07-26 20:05:02 -0400
commitf7235a898a150ce77a214f51c30f9ac8bd8864a5 (patch)
tree1550b0577dcdaf7322d0b8357514b205cbd221a9 /src/test/ui/proc-macro/input-interpolated.rs
parent768803cbb5450eba53641c9342c7b81b6b6aedf8 (diff)
downloadrust-f7235a898a150ce77a214f51c30f9ac8bd8864a5.tar.gz
rust-f7235a898a150ce77a214f51c30f9ac8bd8864a5.zip
Normalize the test output of hygiene-related tests
A raw SyntaxContext id is implicitly dependent on the target platform,
since libstd and libcore have platform-dependent #[cfg]s which affect
which macros are invoked. As a result, we must strip out any
SyntaxContext ids from test output to ensure that the captured stdout is
not platform-dependent.
Diffstat (limited to 'src/test/ui/proc-macro/input-interpolated.rs')
-rw-r--r--src/test/ui/proc-macro/input-interpolated.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/input-interpolated.rs b/src/test/ui/proc-macro/input-interpolated.rs
index b57ce99b138..41c829d9d88 100644
--- a/src/test/ui/proc-macro/input-interpolated.rs
+++ b/src/test/ui/proc-macro/input-interpolated.rs
@@ -1,6 +1,7 @@
 // Check what token streams proc macros see when interpolated tokens are passed to them as input.
 
 // check-pass
+// normalize-stdout-test "#\d+" -> "#CTXT"
 // aux-build:test-macros.rs
 
 #[macro_use]