File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -749,7 +749,8 @@ impl<'a> TyLoweringContext<'a> {
749
749
had_explicit_args = true ;
750
750
substs. push ( x) ;
751
751
} else {
752
- never ! ( ) ;
752
+ // we just filtered them out
753
+ never ! ( "Unexpected lifetime argument" ) ;
753
754
}
754
755
}
755
756
}
@@ -1673,6 +1674,10 @@ pub(crate) fn lower_to_chalk_mutability(m: hir_def::type_ref::Mutability) -> Mut
1673
1674
}
1674
1675
}
1675
1676
1677
+ /// Checks if the provided generic arg matches its expected kind, then lower them via
1678
+ /// provided closures. Use unknown if there was kind mismatch.
1679
+ ///
1680
+ /// Returns `Some` of the lowered generic arg. `None` if the provided arg is a lifetime.
1676
1681
pub ( crate ) fn generic_arg_to_chalk < ' a , T > (
1677
1682
db : & dyn HirDatabase ,
1678
1683
kind_id : Either < TypeParamId , ConstParamId > ,
You can’t perform that action at this time.
0 commit comments