about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/graph.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-18 05:58:16 +0000
committerbors <bors@rust-lang.org>2021-07-18 05:58:16 +0000
commit3ab6b60337edeb49339d173853fee1f8569421e0 (patch)
tree56d696f33ba36371e0eda73e4c29172bf7a01fd4 /compiler/rustc_mir/src/transform/coverage/graph.rs
parent77d155973c6c22a0e1af49a4a9bac024f697851d (diff)
parentb56079ec5466af5bff7d7d174ed6ae248aaa92c4 (diff)
downloadrust-3ab6b60337edeb49339d173853fee1f8569421e0.tar.gz
rust-3ab6b60337edeb49339d173853fee1f8569421e0.zip
Auto merge of #87071 - inquisitivecrystal:inclusive-range, r=estebank
Add diagnostics for mistyped inclusive range

Inclusive ranges are correctly typed as `..=`. However, it's quite easy to think of it as being like `==`, and type `..==` instead. This PR adds helpful diagnostics for this case.

Resolves #86395 (there are some other cases there, but I think those should probably have separate issues).

r? `@estebank`
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions