]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_trait_selection/src/traits/util.rs
Rollup merge of #93441 - notriddle:notriddle/collect-crate-doc-links-very-early,...
[rust.git] / compiler / rustc_trait_selection / src / traits / util.rs
index 3090e8a04285db41acf83444e6712af0d50f3e01..b6e653c0eea4600e50afe4242f643d5d689d68d8 100644 (file)
@@ -232,7 +232,7 @@ pub fn predicates_for_generics<'tcx>(
     debug!("predicates_for_generics(generic_bounds={:?})", generic_bounds);
 
     iter::zip(generic_bounds.predicates, generic_bounds.spans).map(move |(predicate, span)| {
-        let cause = match cause.code {
+        let cause = match *cause.code() {
             traits::ItemObligation(def_id) if !span.is_dummy() => traits::ObligationCause::new(
                 cause.span,
                 cause.body_id,