@@ -462,7 +462,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
462
462
pub ( super ) fn fulfill_obligation ( & self , trait_ref : ty:: PolyTraitRef < ' tcx > ) -> traits:: Vtable < ' tcx , ( ) > {
463
463
// Do the initial selection for the obligation. This yields the shallow result we are
464
464
// looking for -- that is, what specific impl.
465
- self . tcx . infer_ctxt ( None , None , Reveal :: All ) . enter ( |infcx| {
465
+ self . tcx . infer_ctxt ( ( ) , Reveal :: All ) . enter ( |infcx| {
466
466
let mut selcx = traits:: SelectionContext :: new ( & infcx) ;
467
467
468
468
let obligation = traits:: Obligation :: new (
@@ -833,7 +833,7 @@ pub(super) fn get_impl_method<'a, 'tcx>(
833
833
834
834
match trait_def. ancestors ( impl_def_id) . defs ( tcx, name, ty:: AssociatedKind :: Method ) . next ( ) {
835
835
Some ( node_item) => {
836
- let substs = tcx. infer_ctxt ( None , None , Reveal :: All ) . enter ( |infcx| {
836
+ let substs = tcx. infer_ctxt ( ( ) , Reveal :: All ) . enter ( |infcx| {
837
837
let substs = substs. rebase_onto ( tcx, trait_def_id, impl_substs) ;
838
838
let substs = traits:: translate_substs ( & infcx, impl_def_id,
839
839
substs, node_item. node ) ;
@@ -870,7 +870,7 @@ pub fn find_method<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
870
870
871
871
match trait_def. ancestors ( impl_def_id) . defs ( tcx, name, ty:: AssociatedKind :: Method ) . next ( ) {
872
872
Some ( node_item) => {
873
- let substs = tcx. infer_ctxt ( None , None , Reveal :: All ) . enter ( |infcx| {
873
+ let substs = tcx. infer_ctxt ( ( ) , Reveal :: All ) . enter ( |infcx| {
874
874
let substs = substs. rebase_onto ( tcx, trait_def_id, impl_substs) ;
875
875
let substs = traits:: translate_substs ( & infcx, impl_def_id, substs, node_item. node ) ;
876
876
tcx. lift ( & substs) . unwrap_or_else ( || {
0 commit comments