about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-12 20:44:19 +0000
committerbors <bors@rust-lang.org>2020-08-12 20:44:19 +0000
commit576d27c5a6c80cd39ef57d7398831d8e177573cc (patch)
tree1f0e3dcc72af97506603e0f7af42cff55b2e42e0 /src/test/rustdoc-ui/coverage/json.rs
parentef1d58e7c90aa9885c906a6eb7398a2b6256d075 (diff)
parentfd32fe9bb9cc97a5a3d97ab0f6ab673d8c81fa88 (diff)
downloadrust-576d27c5a6c80cd39ef57d7398831d8e177573cc.tar.gz
rust-576d27c5a6c80cd39ef57d7398831d8e177573cc.zip
Auto merge of #75396 - RalfJung:miri-spans, r=oli-obk
Miri: improve spans of required_const failures

In https://github.com/rust-lang/rust/pull/75339 I added a loop evaluating all consts required by a function body. Unfortunately, if one of their evaluations fails, then the span used for that was that of the first statement in the function body, which happened to work form some existing test but is not sensible in general.

This PR changes it to point to the whole function instead, which is at least not wrong.

r? @oli-obk
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions