mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
add FIXME for things that I couldn't find ways to trigger
This commit is contained in:
parent
4833ce8673
commit
e58b932daf
@ -31,6 +31,7 @@ pub fn is_const_evaluatable<'tcx>(
|
|||||||
let tcx = infcx.tcx;
|
let tcx = infcx.tcx;
|
||||||
let uv = match ct.kind() {
|
let uv = match ct.kind() {
|
||||||
ty::ConstKind::Unevaluated(uv) => uv,
|
ty::ConstKind::Unevaluated(uv) => uv,
|
||||||
|
// FIXME(generic_const_exprs): this seems wrong but I couldn't find a way to get this to trigger
|
||||||
ty::ConstKind::Expr(_) => bug!("unexpected expr in `is_const_evaluatable: {ct:?}"),
|
ty::ConstKind::Expr(_) => bug!("unexpected expr in `is_const_evaluatable: {ct:?}"),
|
||||||
ty::ConstKind::Param(_)
|
ty::ConstKind::Param(_)
|
||||||
| ty::ConstKind::Bound(_, _)
|
| ty::ConstKind::Bound(_, _)
|
||||||
|
@ -476,9 +476,10 @@ impl<'tcx> WfPredicates<'tcx> {
|
|||||||
ty::Binder::dummy(ty::PredicateKind::WellFormed(ct.into())),
|
ty::Binder::dummy(ty::PredicateKind::WellFormed(ct.into())),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
// FIXME(julianknodt): need to infer any nested consts here
|
// FIXME(generic_const_exprs): This seems wrong but I could not find a way to get this to trigger
|
||||||
// so walk and search recursively?
|
ty::ConstKind::Expr(_) => {
|
||||||
ty::ConstKind::Expr(_) => unimplemented!(),
|
bug!("checking wfness of `ConstKind::Expr` is unsupported")
|
||||||
|
}
|
||||||
|
|
||||||
ty::ConstKind::Error(_)
|
ty::ConstKind::Error(_)
|
||||||
| ty::ConstKind::Param(_)
|
| ty::ConstKind::Param(_)
|
||||||
|
Loading…
Reference in New Issue
Block a user