diff options
| author | Ralf Jung <post@ralfj.de> | 2024-03-10 12:39:53 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-03-10 14:39:26 +0100 |
| commit | fe7be63daed8ddce4fc1cf7ba65cb5fb3b27ca75 (patch) | |
| tree | 31f5b1ca1915edc91f3e00b4a53ae725205df659 /src | |
| parent | ef862a707b696a4a57f6126ebad7b0cc42af98f0 (diff) | |
| download | rust-fe7be63daed8ddce4fc1cf7ba65cb5fb3b27ca75.tar.gz rust-fe7be63daed8ddce4fc1cf7ba65cb5fb3b27ca75.zip | |
add comments explaining where post-mono const eval errors abort compilation
Diffstat (limited to 'src')
| -rw-r--r-- | src/constant.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constant.rs b/src/constant.rs index 18c5960ffc6..cec479218b7 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -71,7 +71,7 @@ pub(crate) fn eval_mir_constant<'tcx>( // This cannot fail because we checked all required_consts in advance. let val = cv .eval(fx.tcx, ty::ParamEnv::reveal_all(), Some(constant.span)) - .expect("erroneous constant not captured by required_consts"); + .expect("erroneous constant missed by mono item collection"); (val, cv.ty()) } |
