use the type name as the pass name
This commit is contained in:
parent
065a264976
commit
f5b1ba6e90
13 changed files with 12 additions and 27 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#![feature(box_syntax)]
|
||||
#![feature(collections)]
|
||||
#![feature(const_fn)]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(enumset)]
|
||||
#![feature(iter_arith)]
|
||||
#![feature(libc)]
|
||||
|
|
|
|||
|
|
@ -76,7 +76,9 @@ pub trait Pass {
|
|||
fn dep_node(&self, def_id: DefId) -> DepNode<DefId> {
|
||||
DepNode::MirPass(def_id)
|
||||
}
|
||||
fn name(&self) -> &str;
|
||||
fn name(&self) -> &str {
|
||||
unsafe { ::std::intrinsics::type_name::<Self>() }
|
||||
}
|
||||
fn disambiguator<'a>(&'a self) -> Option<Box<fmt::Display+'a>> { None }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue