]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/check/wfcheck.rs
wf
[rust.git] / src / librustc_typeck / check / wfcheck.rs
index dabae6cbc41377a3fdf75e55101086b8c8da6dd8..aa40d7de6e0051c45f5d88946d22eda15782ba22 100644 (file)
@@ -829,7 +829,7 @@ fn visit_const(&mut self, c: &'tcx ty::Const<'tcx>) -> bool {
     assert_eq!(predicates.predicates.len(), predicates.spans.len());
     let wf_obligations =
         predicates.predicates.iter().zip(predicates.spans.iter()).flat_map(|(&p, &sp)| {
-            traits::wf::predicate_obligations(fcx, fcx.param_env, fcx.body_id, p, sp)
+            traits::wf::predicate_obligations(fcx, fcx.param_env, fcx.body_id, p.kint(tcx), sp)
         });
 
     for obligation in wf_obligations.chain(default_obligations) {