]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/lib.rs
move projection mode into parameter environment
[rust.git] / src / librustc_typeck / lib.rs
index baef48fe7d2cde82b6f5ef8919af54712c1ec5e3..91dec958a161c02f3ba6a79245650b2b78c6a830 100644 (file)
@@ -155,7 +155,7 @@ fn require_same_types<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
                                 expected: Ty<'tcx>,
                                 actual: Ty<'tcx>)
                                 -> bool {
-    tcx.infer_ctxt((), Reveal::UserFacing).enter(|ref infcx| {
+    tcx.infer_ctxt(Reveal::UserFacing).enter(|ref infcx| {
         let mut fulfill_cx = FulfillmentContext::new();
         match infcx.eq_types(false, &cause, expected, actual) {
             Ok(InferOk { obligations, .. }) => {