Skip to content

Commit 8467c20

Browse files
committed
Require an @ in front of all commands
1 parent 4195076 commit 8467c20

File tree

12 files changed

+19
-19
lines changed

12 files changed

+19
-19
lines changed

src/header.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ fn iter_header(testfile: &Path, cfg: Option<&str>, it: &mut dyn FnMut(&str)) {
435435
let ln = ln.trim();
436436
if ln.starts_with("fn") || ln.starts_with("mod") {
437437
return;
438-
} else if let Some(ln) = ln.strip_prefix("//[") {
438+
} else if let Some(ln) = ln.strip_prefix("//@[") {
439439
// A comment like `//[foo]` is specific to revision `foo`
440440
if let Some((lncfg, ln)) = ln.split_once(']') {
441441
if cfg == Some(lncfg) {
@@ -447,7 +447,7 @@ fn iter_header(testfile: &Path, cfg: Option<&str>, it: &mut dyn FnMut(&str)) {
447447
ln
448448
)
449449
}
450-
} else if let Some(ln) = ln.strip_prefix("//") {
450+
} else if let Some(ln) = ln.strip_prefix("//@") {
451451
it(ln.trim_start());
452452
}
453453
}

test-project/tests/assembly/panic.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// assembly-output: emit-asm
2-
// compile-flags: --crate-type rlib
1+
//@assembly-output: emit-asm
2+
//@compile-flags: --crate-type rlib
33
#![no_std]
44

55
#[no_mangle]
66
fn panic_fun() -> u32 {
77
// CHECK-LABEL: panic_fun:
88
// CHECK: ud2
99
panic!();
10-
}
10+
}

test-project/tests/nightly/2018-edition.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// edition:2018
2-
// compile-pass
1+
//@edition:2018
2+
//@compile-pass
33

44
pub struct Foo;
55
impl Foo {

test-project/tests/nightly/auxiliary/simple_proc_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// no-prefer-dynamic
1+
//@no-prefer-dynamic
22

33
#![crate_type = "proc-macro"]
44

test-project/tests/nightly/some-proc-macro.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// run-pass
2-
// aux-build:simple_proc_macro.rs
1+
//@run-pass
2+
//@aux-build:simple_proc_macro.rs
33

44
#![feature(proc_macro_hygiene)]
55

test-project/tests/pretty/macro.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// pretty-compare-only
2-
// pretty-mode:expanded
3-
// pp-exact:macro.pp
1+
//@pretty-compare-only
2+
//@pretty-mode:expanded
3+
//@pp-exact:macro.pp
44

55
macro_rules! square {
66
($x:expr) => {

test-project/tests/run-fail/args-panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111

12-
// error-pattern:meep
12+
//@error-pattern:meep
1313

1414
#![allow(unknown_features)]
1515
#![feature(box_syntax)]

test-project/tests/run-fail/issue-20971.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// Regression test for Issue #20971.
1212

13-
// error-pattern:Hello, world!
13+
//@error-pattern:Hello, world!
1414

1515
pub trait Parser {
1616
type Input;

test-project/tests/run-fail/match-wildcards.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:squirrelcupcake
11+
//@error-pattern:squirrelcupcake
1212
fn cmp() -> int {
1313
match (Some('a'), None::<char>) {
1414
(Some(_), _) => { panic!("squirrelcupcake"); }

test-project/tests/run-fail/mod-zero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern:attempted remainder with a divisor of zero
11+
//@error-pattern:attempted remainder with a divisor of zero
1212
fn main() {
1313
let y = 0;
1414
let _z = 1 % y;

0 commit comments

Comments
 (0)