instantiate -> construct
This commit is contained in:
parent
7eb2d4e7d0
commit
35f1570732
10 changed files with 16 additions and 18 deletions
|
@ -102,10 +102,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
|
||||
let msg = match def_id_or_name {
|
||||
DefIdOrName::DefId(def_id) => match self.tcx.def_kind(def_id) {
|
||||
DefKind::Ctor(CtorOf::Struct, _) => "instantiate this tuple struct".to_string(),
|
||||
DefKind::Ctor(CtorOf::Variant, _) => {
|
||||
"instantiate this tuple variant".to_string()
|
||||
}
|
||||
DefKind::Ctor(CtorOf::Struct, _) => "construct this tuple struct".to_string(),
|
||||
DefKind::Ctor(CtorOf::Variant, _) => "construct this tuple variant".to_string(),
|
||||
kind => format!("call this {}", kind.descr(def_id)),
|
||||
},
|
||||
DefIdOrName::Name(name) => format!("call this {name}"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue