1
Fork 0

skip pointing out ambuguous impls in alloc/std crates too

This commit is contained in:
Michael Goulet 2022-01-29 15:34:06 -08:00
parent 73a7423e77
commit 9072c8d274
5 changed files with 18 additions and 44 deletions

View file

@ -1973,7 +1973,7 @@ impl<'a, 'tcx> InferCtxtPrivExt<'a, 'tcx> for InferCtxt<'a, 'tcx> {
if self.is_tainted_by_errors()
&& crate_names.len() == 1
&& crate_names[0] == "`core`"
&& ["`core`", "`alloc`", "`std`"].contains(&crate_names[0].as_str())
&& spans.len() == 0
{
// Avoid complaining about other inference issues for expressions like