Skip to content

Commit 026bcbf

Browse files
committed
Spelling fix in middle::def::Def
1 parent 5ed8e98 commit 026bcbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/def.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl Def {
120120
Def::TyParam(..) | Def::Struct(..) | Def::Trait(..) |
121121
Def::Method(..) | Def::Const(..) | Def::AssociatedConst(..) |
122122
Def::PrimTy(..) | Def::Label(..) | Def::SelfTy(..) | Def::Err => {
123-
panic!("attempted .def_id() on invalid {:?}", self)
123+
panic!("attempted .var_id() on invalid {:?}", self)
124124
}
125125
}
126126
}

0 commit comments

Comments
 (0)