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>(
3131 let tcx = infcx. tcx ;
3232 let uv = match ct. kind ( ) {
3333 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
3435 ty:: ConstKind :: Expr ( _) => bug ! ( "unexpected expr in `is_const_evaluatable: {ct:?}" ) ,
3536 ty:: ConstKind :: Param ( _)
3637 | ty:: ConstKind :: Bound ( _, _)
Original file line number Diff line number Diff line change @@ -476,9 +476,10 @@ impl<'tcx> WfPredicates<'tcx> {
476476 ty:: Binder :: dummy ( ty:: PredicateKind :: WellFormed ( ct. into ( ) ) ) ,
477477 ) ) ;
478478 }
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+ }
482483
483484 ty:: ConstKind :: Error ( _)
484485 | ty:: ConstKind :: Param ( _)
You can’t perform that action at this time.
0 commit comments