Skip to content

Commit 1cb13b2

Browse files
authored
Rollup merge of #53412 - eddyb:stage-who, r=alexcrichton
syntax_ext: remove leftover span_err_if_not_stage0 macro. I believe this is the right fix for #53380, although I'm not sure what happened. My guess is this copy of the macro was accidentally missed when others were removed? cc @matthewjasper @varkor (please do not put this in a rollup, in case it fails)
2 parents ae3ebf0 + e7b65bd commit 1cb13b2

File tree

16 files changed

+24
-48
lines changed

16 files changed

+24
-48
lines changed

src/libsyntax_ext/deriving/default.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ fn default_substructure(cx: &mut ExtCtxt, trait_span: Span, substr: &Substructur
7676
}
7777
}
7878
StaticEnum(..) => {
79-
span_err_if_not_stage0!(cx, trait_span, E0665,
80-
"`Default` cannot be derived for enums, only structs");
79+
span_err!(cx, trait_span, E0665,
80+
"`Default` cannot be derived for enums, only structs");
8181
// let compilation continue
8282
cx.expr_usize(trait_span, 0)
8383
}

src/libsyntax_ext/deriving/mod.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ use syntax::ptr::P;
1919
use syntax::symbol::Symbol;
2020
use syntax_pos::Span;
2121

22-
macro_rules! span_err_if_not_stage0 {
23-
($cx:expr, $sp:expr, $code:ident, $text:tt) => {
24-
#[cfg(not(stage0))] {
25-
span_err!($cx, $sp, $code, $text)
26-
}
27-
#[cfg(stage0)] {
28-
$cx.span_err($sp, $text)
29-
}
30-
}
31-
}
32-
3322
macro path_local($x:ident) {
3423
generic::ty::Path::new_local(stringify!($x))
3524
}

src/test/ui/E0660.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-stage1
12-
1311
#![feature(asm)]
1412

1513
fn main() {

src/test/ui/E0660.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0660]: malformed inline assembly
2-
--> $DIR/E0660.rs:17:5
2+
--> $DIR/E0660.rs:15:5
33
|
44
LL | asm!("nop" "nop");
55
| ^^^^^^^^^^^^^^^^^^
66

77
error[E0660]: malformed inline assembly
8-
--> $DIR/E0660.rs:19:5
8+
--> $DIR/E0660.rs:17:5
99
|
1010
LL | asm!("nop" "nop" : "=r"(a));
1111
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/test/ui/E0661.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-stage1
12-
1311
#![feature(asm)]
1412

1513
fn main() {

src/test/ui/E0661.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0661]: output operand constraint lacks '=' or '+'
2-
--> $DIR/E0661.rs:17:18
2+
--> $DIR/E0661.rs:15:18
33
|
44
LL | asm!("nop" : "r"(a));
55
| ^^^

src/test/ui/E0662.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-stage1
12-
1311
#![feature(asm)]
1412

1513
fn main() {

src/test/ui/E0662.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0662]: input operand constraint contains '='
2-
--> $DIR/E0662.rs:18:12
2+
--> $DIR/E0662.rs:16:12
33
|
44
LL | : "=test"("a") //~ ERROR E0662
55
| ^^^^^^^

src/test/ui/E0663.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-stage1
12-
1311
#![feature(asm)]
1412

1513
fn main() {

src/test/ui/E0663.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0663]: input operand constraint contains '+'
2-
--> $DIR/E0663.rs:18:12
2+
--> $DIR/E0663.rs:16:12
33
|
44
LL | : "+test"("a") //~ ERROR E0663
55
| ^^^^^^^

0 commit comments

Comments
 (0)