Skip to content

Commit e58b932

Browse files
BoxyUwUJulianKnodt
authored andcommitted
add FIXME for things that I couldn't find ways to trigger
1 parent 4833ce8 commit e58b932

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

compiler/rustc_trait_selection/src/traits/const_evaluatable.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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(_, _)

compiler/rustc_trait_selection/src/traits/wf.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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(_)

0 commit comments

Comments
 (0)