From 026bcbf91ef77ee85295af87ec578e24d2f24f72 Mon Sep 17 00:00:00 2001 From: Dirk Gadsden Date: Sun, 31 Jan 2016 20:44:10 -0800 Subject: [PATCH] Spelling fix in `middle::def::Def` --- src/librustc/middle/def.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/middle/def.rs b/src/librustc/middle/def.rs index be967da2713..aee8fb10c2a 100644 --- a/src/librustc/middle/def.rs +++ b/src/librustc/middle/def.rs @@ -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) } } }