Stop using PolyTraitRef for closure/coroutine predicates already instantiated w placeholders
This commit is contained in:
@@ -620,11 +620,10 @@ pub enum SelectionError<'tcx> {
|
||||
OpaqueTypeAutoTraitLeakageUnknown(DefId),
|
||||
}
|
||||
|
||||
// FIXME(@lcnr): The `Binder` here should be unnecessary. Just use `TraitRef` instead.
|
||||
#[derive(Clone, Debug, TypeVisitable)]
|
||||
pub struct SignatureMismatchData<'tcx> {
|
||||
pub found_trait_ref: ty::PolyTraitRef<'tcx>,
|
||||
pub expected_trait_ref: ty::PolyTraitRef<'tcx>,
|
||||
pub found_trait_ref: ty::TraitRef<'tcx>,
|
||||
pub expected_trait_ref: ty::TraitRef<'tcx>,
|
||||
pub terr: ty::error::TypeError<'tcx>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user