rust/compiler/rustc_mir
Yuki Okushi c062f3dddd
Rollup merge of #86340 - Smittyvb:ctfe-hard-error-message, r=RalfJung
Use better error message for hard errors in CTFE

I noticed this while working on #86255: currently the same message is used for hard errors and soft errors in CTFE. This changes the error messages to make hard errors use a message that indicates the reality of the situation correctly, since usage of the constant is never allowed when there was a hard error evaluating it. This doesn't affect the behaviour of these error messages, only the content.

This changes the error logic to check if the error should be hard or soft where it is generated, instead of where it is emitted, to allow this distinction in error messages.
2021-06-17 21:56:43 +09:00
..
src Rollup merge of #86340 - Smittyvb:ctfe-hard-error-message, r=RalfJung 2021-06-17 21:56:43 +09:00
Cargo.toml bumped smallvec deps 2021-02-14 18:03:11 +03:00