We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e91ced commit 9368b9fCopy full SHA for 9368b9f
compiler/rustc_middle/src/ty/consts.rs
@@ -109,6 +109,7 @@ impl<'tcx> Const<'tcx> {
109
110
#[inline]
111
pub fn new_unevaluated(tcx: TyCtxt<'tcx>, uv: ty::UnevaluatedConst<'tcx>) -> Const<'tcx> {
112
+ tcx.debug_assert_args_compatible(uv.def, uv.args);
113
Const::new(tcx, ty::ConstKind::Unevaluated(uv))
114
}
115
0 commit comments