Dylan MacKenzie
0d2521aaf7
Add const_fn_floating_point_arithmetic
2020-09-25 10:37:52 -07:00
Jonas Schievink
b8d158b0f8
Rollup merge of #77160 - ecstatic-morse:const-fn-transmute-suggestion, r=oli-obk
...
Suggest `const_fn_transmute`, not `const_fn`
More fallout from #76850 in the vein of #77134 . The fix is the same. I looked through the structured errors file and didn't see any more of this kind of diagnostics bug.
r? @oli-obk
2020-09-25 02:29:49 +02:00
Dylan MacKenzie
ebf024bba8
Suggest const_fn_transmute
instead of const_fn
2020-09-24 12:07:41 -07:00
Dylan MacKenzie
a320ef751b
Suggest const_mut_refs
for mutable references in const fn
2020-09-23 21:04:07 -07:00
Dylan MacKenzie
186d148b4c
Use correct feature gate for unsizing casts
2020-09-22 10:22:50 -07:00
Dylan MacKenzie
5ee5429e00
Add structured errors for qualify_min_const_fn
checks
2020-09-22 10:05:58 -07:00
Dylan MacKenzie
bfc10a89c3
Allow errors to abort const checking when emitted
...
This is a hack for parity with `qualify_min_const_fn`, which only
emitted a single error.
2020-09-22 10:05:58 -07:00
Dylan MacKenzie
7fb9587a3c
Return true
if check_const
emits an error
2020-09-22 10:05:58 -07:00
Dylan MacKenzie
a173c5c1b3
Add const-stability helpers
2020-09-22 10:05:58 -07:00
Dylan MacKenzie
3dd28c78c3
Useful derives on ops::Status
2020-09-22 10:05:58 -07:00
Dylan MacKenzie
81b3b66487
Error if an unstable const eval feature is used in a stable const fn
2020-09-16 14:17:51 -07:00
Dylan MacKenzie
e4edc161f2
Give name to extra Span
in LiveDrop
error
2020-09-16 14:17:51 -07:00
Dylan MacKenzie
ed6c7efd87
Use enum for status of non-const ops
2020-09-16 14:17:51 -07:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00