about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-08-03 17:29:08 +0200
committerGitHub <noreply@github.com>2023-08-03 17:29:08 +0200
commit00dcc7b97c6bd97743e8399e107b2f46d8425343 (patch)
tree0d17ace20a40b8e2e6fca3e094a58e83659945b8 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent51d1dacdc20d83cc4573d4f6226f422a3e725672 (diff)
parent7767cbb3b0b332fd0a46e347ea7f68f20109d768 (diff)
downloadrust-00dcc7b97c6bd97743e8399e107b2f46d8425343.tar.gz
rust-00dcc7b97c6bd97743e8399e107b2f46d8425343.zip
Rollup merge of #114372 - RalfJung:const-pointer-as-int, r=oli-obk
const validation: point at where we found a pointer but expected an integer

Instead of validation just printing "unable to turn pointer into bytes", make this a regular validation error that says where in the value the bad pointer was found. Also distinguish "expected integer, got pointer" from "expected pointer, got partial pointer or mix of pointers".

To avoid duplicating things too much I refactored the diagnostics for validity a bit, so that "got uninit, expected X" and "got pointer, expected X" can share the "X" part. Also all the errors emitted for validation are now grouped under `const_eval_validation` so that they are in a single group in the ftl file.

r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions