Remove duplicate notes from error on inter-crate ambiguous impl of traits (fix #99092)
This commit is contained in:
parent
6c20ab744b
commit
d5aed20f47
7 changed files with 45 additions and 13 deletions
|
@ -13,7 +13,7 @@ use crate::traits::{
|
|||
self, FulfillmentContext, Normalized, Obligation, ObligationCause, PredicateObligation,
|
||||
PredicateObligations, SelectionContext,
|
||||
};
|
||||
//use rustc_data_structures::fx::FxHashMap;
|
||||
use rustc_data_structures::fx::FxIndexSet;
|
||||
use rustc_errors::Diagnostic;
|
||||
use rustc_hir::def_id::{DefId, LOCAL_CRATE};
|
||||
use rustc_infer::infer::{InferCtxt, TyCtxtInferExt};
|
||||
|
@ -44,7 +44,7 @@ pub enum Conflict {
|
|||
|
||||
pub struct OverlapResult<'tcx> {
|
||||
pub impl_header: ty::ImplHeader<'tcx>,
|
||||
pub intercrate_ambiguity_causes: Vec<IntercrateAmbiguityCause>,
|
||||
pub intercrate_ambiguity_causes: FxIndexSet<IntercrateAmbiguityCause>,
|
||||
|
||||
/// `true` if the overlap might've been permitted before the shift
|
||||
/// to universes.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue