about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-06-17 21:56:43 +0900
committerGitHub <noreply@github.com>2021-06-17 21:56:43 +0900
commitc062f3dddda6c6d334ae3753c6afdf04f2472877 (patch)
tree691e4f9684384800a5564948d831aad22a6382cb /library/std/src/sys/unix/stack_overflow.rs
parent9521da71793805a87c4b8525c34b19f58eed498f (diff)
parent044b3620e7f3d495e859113ecc6aa55e37ddc228 (diff)
downloadrust-c062f3dddda6c6d334ae3753c6afdf04f2472877.tar.gz
rust-c062f3dddda6c6d334ae3753c6afdf04f2472877.zip
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.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions