Change all run-pass hygiene tests to ui tests

Change some tests to `check-pass` that are only testing name resolution.
This commit is contained in:
Matthew Jasper 2019-07-14 11:34:13 +01:00
parent 96234d5363
commit 03178f31c4
26 changed files with 14 additions and 21 deletions

View File

@ -1,4 +1,3 @@
// run-pass
// ignore-pretty pretty-printing is unhygienic
#[macro_export]

View File

@ -1,4 +1,3 @@
// run-pass
#![crate_type = "lib"]
extern crate my_crate;

View File

@ -1,4 +1,3 @@
// run-pass
#![feature(decl_macro)]
#![allow(unused)]

View File

@ -1,6 +1,6 @@
// Make sure `$crate` and `crate` work in for basic cases of nested macros.
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// aux-build:intercrate.rs
#![feature(decl_macro, crate_in_paths)]

View File

@ -1,6 +1,3 @@
// FIXME: Investigate why expansion info for a single expansion id is reset from
// `MacroBang(format_args)` to `MacroAttribute(derive(Clone))` (issue #52363).
fn main() {
format_args!({ #[derive(Clone)] struct S; });
//~^ ERROR format argument must be a string literal

View File

@ -1,5 +1,5 @@
error: format argument must be a string literal
--> $DIR/expansion-info-reset.rs:5:18
--> $DIR/expansion-info-reset.rs:2:18
|
LL | format_args!({ #[derive(Clone)] struct S; });
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
#![allow(unused_must_use)]
#![feature(decl_macro)]

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
// ignore-pretty pretty-printing is unhygienic
#![feature(decl_macro)]

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
// ignore-pretty pretty-printing is unhygienic
#![feature(decl_macro)]

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
// ignore-pretty pretty-printing is unhygienic
#![feature(decl_macro)]

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
#![allow(dead_code)]
// ignore-pretty pretty-printing is unhygienic
@ -12,7 +12,7 @@ extern crate legacy_interaction;
// ```rust
// macro_rules! m {
// () => {
// fn f() // (1)
// fn f() {} // (1)
// g() // (2)
// }
// }

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
// ignore-pretty pretty-printing is unhygienic
#![feature(decl_macro)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// aux-build:local_inner_macros.rs
extern crate local_inner_macros;

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
// ignore-pretty pretty-printing is unhygienic
#![feature(decl_macro)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// aux-build:transparent-basic.rs
#![feature(decl_macro, rustc_attrs)]

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
// ignore-pretty pretty-printing is unhygienic
#![feature(decl_macro)]

View File

@ -1,4 +1,4 @@
// run-pass
// check-pass
// ignore-pretty pretty-printing is unhygienic
// aux-build:my_crate.rs