Skip to content

Commit 83268ff

Browse files
committed
syntax_ext: remove leftover span_err_if_not_stage0 macro.
1 parent d767ee1 commit 83268ff

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/libsyntax_ext/deriving/default.rs

+2-2
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

-11
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
}

0 commit comments

Comments
 (0)