We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
middle::def::Def
1 parent 5ed8e98 commit 026bcbfCopy full SHA for 026bcbf
src/librustc/middle/def.rs
@@ -120,7 +120,7 @@ impl Def {
120
Def::TyParam(..) | Def::Struct(..) | Def::Trait(..) |
121
Def::Method(..) | Def::Const(..) | Def::AssociatedConst(..) |
122
Def::PrimTy(..) | Def::Label(..) | Def::SelfTy(..) | Def::Err => {
123
- panic!("attempted .def_id() on invalid {:?}", self)
+ panic!("attempted .var_id() on invalid {:?}", self)
124
}
125
126
0 commit comments