rust/compiler/rustc_middle/src
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
..
dep_graph Remove projection_ty_from_predicates 2021-06-16 16:33:03 +09:00
hir Revert "Merge CrateDisambiguator into StableCrateId" 2021-06-07 10:37:45 +02:00
ich Hash DefId in rustc_span. 2021-06-11 12:25:02 +02:00
infer Miscellaneous inlining improvements 2021-06-02 08:49:58 +02:00
middle Auto merge of #85910 - cjgillot:no-meta-version, r=Aaron1011 2021-06-10 00:39:25 +00:00
mir Rollup merge of #86340 - Smittyvb:ctfe-hard-error-message, r=RalfJung 2021-06-17 21:56:43 +09:00
query Rollup merge of #86353 - JohnTitor:remove-projection_ty_from_predicates, r=oli-obk 2021-06-17 05:54:59 +09:00
traits Make traits with GATs not object safe 2021-04-27 14:34:23 -04:00
ty Auto merge of #85834 - cjgillot:save-sbi, r=michaelwoerister 2021-06-17 09:03:58 +00:00
util Make panic/assert calls in rustc compatible with Rust 2021. 2021-02-03 22:42:53 +01:00
arena.rs Make THIR building a stealable query 2021-05-22 14:36:22 +02:00
lib.rs Remove unused feature gates 2021-05-31 13:55:43 +02:00
lint.rs Add a page on force-warns in unstable book 2021-06-02 18:07:39 +02:00
macros.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Box ExprKind::Adt 2021-06-13 17:03:11 +02:00