Revert "Highlight conflicting param-env candidates"

This reverts commit 08135254dc.
This commit is contained in:
Michael Goulet
2022-07-15 16:30:07 +00:00
parent 0fe5390a88
commit 1c8f87e907
8 changed files with 19 additions and 114 deletions

View File

@@ -541,17 +541,9 @@ pub enum SelectionError<'tcx> {
ErrorReporting,
/// Multiple applicable `impl`s where found. The `DefId`s correspond to
/// all the `impl`s' Items.
Ambiguous(Vec<AmbiguousSelection>),
Ambiguous(Vec<DefId>),
}
#[derive(Copy, Clone, Debug)]
pub enum AmbiguousSelection {
Impl(DefId),
ParamEnv(Span),
}
TrivialTypeTraversalAndLiftImpls! { AmbiguousSelection, }
/// When performing resolution, it is typically the case that there
/// can be one of three outcomes:
///