Use ast::Name
in report_ambiguous_associated_type()
.
This commit is contained in:
parent
482d63673c
commit
fe08ac6da4
1 changed files with 3 additions and 3 deletions
|
@ -1461,7 +1461,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
||||||
span: Span,
|
span: Span,
|
||||||
type_str: &str,
|
type_str: &str,
|
||||||
trait_str: &str,
|
trait_str: &str,
|
||||||
name: &str,
|
name: ast::Name,
|
||||||
) {
|
) {
|
||||||
let mut err = struct_span_err!(self.tcx().sess, span, E0223, "ambiguous associated type");
|
let mut err = struct_span_err!(self.tcx().sess, span, E0223, "ambiguous associated type");
|
||||||
if let (Some(_), Ok(snippet)) = (
|
if let (Some(_), Ok(snippet)) = (
|
||||||
|
@ -1688,7 +1688,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
||||||
span,
|
span,
|
||||||
&qself_ty.to_string(),
|
&qself_ty.to_string(),
|
||||||
"Trait",
|
"Trait",
|
||||||
&assoc_ident.as_str(),
|
assoc_ident.name,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return Err(ErrorReported);
|
return Err(ErrorReported);
|
||||||
|
@ -1761,7 +1761,7 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
||||||
span,
|
span,
|
||||||
"Type",
|
"Type",
|
||||||
&path_str,
|
&path_str,
|
||||||
&item_segment.ident.as_str(),
|
item_segment.ident.name,
|
||||||
);
|
);
|
||||||
return tcx.types.err;
|
return tcx.types.err;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue