about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2021-02-08 19:28:17 +0100
committerGitHub <noreply@github.com>2021-02-08 19:28:17 +0100
commitb263981fd7c1285cddf2f207554749a425d42978 (patch)
treebac0457a99719672fd1e91d7328299bb3c3dee0f /compiler/rustc_llvm/llvm-wrapper
parent2c8d1c8cef3c7ec45f7f8729e38899dfa0e09058 (diff)
parentaf28c2e64df82744cd627b0c305eb2e4d4d260ca (diff)
downloadrust-b263981fd7c1285cddf2f207554749a425d42978.tar.gz
rust-b263981fd7c1285cddf2f207554749a425d42978.zip
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions