Skip to content

Commit 4bb7679

Browse files
committed
librustc_save_analysis: remove duplicate macro def
1 parent 37f8429 commit 4bb7679

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/librustc_save_analysis/data.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@ use rustc::ty;
2020
use syntax::ast::{CrateNum, NodeId};
2121
use syntax::codemap::Span;
2222

23-
#[macro_export]
24-
macro_rules! down_cast_data {
25-
($id:ident, $kind:ident, $sp:expr) => {
26-
let $id = if let super::Data::$kind(data) = $id {
27-
data
28-
} else {
29-
span_bug!($sp, "unexpected data kind: {:?}", $id);
30-
}
31-
};
32-
}
33-
3423
pub struct CrateData {
3524
pub name: String,
3625
pub number: u32,

src/librustc_save_analysis/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ use syntax::visit::{self, Visitor};
4747
use syntax::print::pprust::ty_to_string;
4848

4949
mod csv_dumper;
50-
#[macro_use]
5150
mod data;
5251
mod dump;
5352
mod dump_visitor;

0 commit comments

Comments
 (0)