rust/compiler/rustc_mir/src
Mara Bos b263981fd7
Rollup merge of #81779 - geogriff:const-ptr-to-int-error, r=lcnr
improve error message for disallowed ptr-to-int casts in const eval

Improves an error message as [suggested](https://github.com/rust-lang/rust/issues/80875#issuecomment-762754580) in #80875.

Does the wording make enough sense? I tried to follow precedent for error message style while maintaining brevity.

It seems like the rest of the `ConstEvalErrKind::NeedsRfc` error messages could be improved as well. I could give that a go if this approach works.

Closes #80875
2021-02-08 19:28:17 +01:00
..
borrow_check Fix panic when emitting diagnostic for closure mutable binding error 2021-02-03 12:36:24 -05:00
const_eval improve error message for disallowed ptr-to-int casts in const eval 2021-02-05 00:52:19 -08:00
dataflow Use PlaceRef more consistently in rustc_mir 2021-01-16 10:44:23 -06:00
interpret Auto merge of #81327 - RalfJung:codegen-no-const-fail, r=oli-obk 2021-01-31 07:03:09 +00:00
monomorphize Rollup merge of #80944 - LingMan:map_or, r=nagisa 2021-01-15 18:26:14 +09:00
transform Never MIR inline functions with a different instruction set 2021-02-05 00:00:00 +00:00
util Visit only statements in always live locals 2021-01-27 00:00:00 +00:00
lib.rs Prevent query cycles during inlining 2021-01-23 16:51:22 +00:00
shim.rs Replace let Some(..) = with .is_some() 2021-01-17 19:06:12 -05:00