use self::CombineMapType::*;
use self::UndoLog::*;
-use super::unify_key;
use super::{
InferCtxtUndoLogs, MiscVariable, RegionVariableOrigin, Rollback, Snapshot, SubregionOrigin,
};
if *any_unifications {
*any_unifications = false;
self.unification_table()
- .reset_unifications(|vid| unify_key::RegionVidKey { min_vid: vid });
+ .reset_unifications(|_| ());
}
data
) -> RegionVid {
let vid = self.var_infos.push(RegionVariableInfo { origin, universe });
- let u_vid = self.unification_table().new_key(unify_key::RegionVidKey { min_vid: vid });
+ let u_vid = self.unification_table().new_key(());
assert_eq!(vid, u_vid);
self.undo_log.push(AddVar(vid));
debug!("created new region variable {:?} in {:?} with origin {:?}", vid, universe, origin);
}
pub fn opportunistic_resolve_var(&mut self, rid: RegionVid) -> ty::RegionVid {
- self.unification_table().probe_value(rid).min_vid
+ self.unification_table().find(rid)
}
fn combine_map(&mut self, t: CombineMapType) -> &mut CombineMap<'tcx> {
LL | is_send::<X<C<'static>>>();
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
-note: required because of the requirements on the impl of `NotAuto` for `X<C<'static>>`
+note: required because of the requirements on the impl of `NotAuto` for `X<C<'_>>`
--> $DIR/lifetime.rs:19:12
|
LL | impl<T: Y> NotAuto for X<T> where T::P: NotAuto {}
| ^^^^^^^ ^^^^
+ = note: 2 redundant requirements hidden
+ = note: required because of the requirements on the impl of `NotAuto` for `X<C<'static>>`
error: aborting due to previous error