]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_traits/src/implied_outlives_bounds.rs
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / compiler / rustc_traits / src / implied_outlives_bounds.rs
index 79308b032eccd89e7b5bbf1521225e63adf9df46..c44fd1d58593f1060775914aa7e42d37a61445a5 100644 (file)
@@ -61,8 +61,8 @@ fn compute_implied_outlives_bounds<'tcx>(
         // than the ultimate set. (Note: normally there won't be
         // unresolved inference variables here anyway, but there might be
         // during typeck under some circumstances.)
-        let obligations =
-            wf::obligations(infcx, param_env, hir::CRATE_HIR_ID, arg, DUMMY_SP).unwrap_or(vec![]);
+        let obligations = wf::obligations(infcx, param_env, hir::CRATE_HIR_ID, 0, arg, DUMMY_SP)
+            .unwrap_or_default();
 
         // N.B., all of these predicates *ought* to be easily proven
         // true. In fact, their correctness is (mostly) implied by