1
Fork 0

instantiate -> construct

This commit is contained in:
Michael Goulet 2022-10-19 02:53:47 +00:00
parent 7eb2d4e7d0
commit 35f1570732
10 changed files with 16 additions and 18 deletions

View file

@ -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)),
},