File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
compiler/rustc_trait_selection/src/traits Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ pub fn is_const_evaluatable<'tcx>(
31
31
let tcx = infcx. tcx ;
32
32
let uv = match ct. kind ( ) {
33
33
ty:: ConstKind :: Unevaluated ( uv) => uv,
34
+ // FIXME(generic_const_exprs): this seems wrong but I couldn't find a way to get this to trigger
34
35
ty:: ConstKind :: Expr ( _) => bug ! ( "unexpected expr in `is_const_evaluatable: {ct:?}" ) ,
35
36
ty:: ConstKind :: Param ( _)
36
37
| ty:: ConstKind :: Bound ( _, _)
Original file line number Diff line number Diff line change @@ -476,9 +476,10 @@ impl<'tcx> WfPredicates<'tcx> {
476
476
ty:: Binder :: dummy ( ty:: PredicateKind :: WellFormed ( ct. into ( ) ) ) ,
477
477
) ) ;
478
478
}
479
- // FIXME(julianknodt): need to infer any nested consts here
480
- // so walk and search recursively?
481
- ty:: ConstKind :: Expr ( _) => unimplemented ! ( ) ,
479
+ // FIXME(generic_const_exprs): This seems wrong but I could not find a way to get this to trigger
480
+ ty:: ConstKind :: Expr ( _) => {
481
+ bug ! ( "checking wfness of `ConstKind::Expr` is unsupported" )
482
+ }
482
483
483
484
ty:: ConstKind :: Error ( _)
484
485
| ty:: ConstKind :: Param ( _)
You can’t perform that action at this time.
0 commit comments