Make pretty-expanded-hygiene a ui test
`normalize-stdout-test` removes the need for Make, and it can be updated with `--bless` this way
This commit is contained in:
parent
03178f31c4
commit
a4a7bb9a3f
3 changed files with 12 additions and 21 deletions
20
src/test/ui/hygiene/unpretty-debug.rs
Normal file
20
src/test/ui/hygiene/unpretty-debug.rs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// check-pass
|
||||
// compile-flags: -Zunpretty=expanded,hygiene
|
||||
|
||||
// Don't break whenever Symbol numbering changes
|
||||
// normalize-stdout-test "\d+#" -> "0#"
|
||||
|
||||
// minimal junk
|
||||
#![feature(no_core)]
|
||||
#![no_core]
|
||||
|
||||
macro_rules! foo {
|
||||
($x: ident) => { y + $x }
|
||||
}
|
||||
|
||||
fn bar() {
|
||||
let x = 1;
|
||||
foo!(x)
|
||||
}
|
||||
|
||||
fn y() {}
|
||||
15
src/test/ui/hygiene/unpretty-debug.stdout
Normal file
15
src/test/ui/hygiene/unpretty-debug.stdout
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
// check-pass
|
||||
// compile-flags: -Zunpretty=expanded,hygiene
|
||||
|
||||
// Don't break whenever Symbol numbering changes
|
||||
// normalize-stdout-test "\d+#" -> "0#"
|
||||
|
||||
// minimal junk
|
||||
#![feature /* 0#0 */(no_core)]
|
||||
#![no_core /* 0#0 */]
|
||||
|
||||
macro_rules! foo /* 0#0 */ { ($ x : ident) => { y + $ x } }
|
||||
|
||||
fn bar /* 0#0 */() { let x /* 0#0 */ = 1; y /* 0#1 */ + x /* 0#0 */ }
|
||||
|
||||
fn y /* 0#0 */() { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue