Spelling fix in middle::def::Def

This commit is contained in:
Dirk Gadsden 2016-01-31 20:44:10 -08:00
parent 5ed8e98ea2
commit 026bcbf91e

View File

@ -120,7 +120,7 @@ impl Def {
Def::TyParam(..) | Def::Struct(..) | Def::Trait(..) |
Def::Method(..) | Def::Const(..) | Def::AssociatedConst(..) |
Def::PrimTy(..) | Def::Label(..) | Def::SelfTy(..) | Def::Err => {
panic!("attempted .def_id() on invalid {:?}", self)
panic!("attempted .var_id() on invalid {:?}", self)
}
}
}