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:
Matthew Jasper 2019-07-15 22:26:45 +01:00
parent 03178f31c4
commit a4a7bb9a3f
3 changed files with 12 additions and 21 deletions

View 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() {}

View 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 */() { }