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