about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/graph.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-09 16:26:00 +0200
committerGitHub <noreply@github.com>2023-10-09 16:26:00 +0200
commit389747c41dc81a23088d8aa27425923d7d81f70c (patch)
tree5cd916b05f0536c88edb3d778bfe91519ae9e8bf /compiler/rustc_mir_transform/src/coverage/graph.rs
parent7ed044c075fc0e7ad2574d3144ca00ba14608d8f (diff)
parenta8830631b9446c8b48cd4eba1ef448eb5a258cdc (diff)
downloadrust-389747c41dc81a23088d8aa27425923d7d81f70c.tar.gz
rust-389747c41dc81a23088d8aa27425923d7d81f70c.zip
Rollup merge of #115882 - aliemjay:diag-name-region-1, r=compiler-errors
improve the suggestion of `generic_bound_failure`

- Fixes #115375
- suggest the bound in the correct scope: trait or impl header vs assoc item. See `tests/ui/suggestions/lifetimes/type-param-bound-scope.rs`
- don't suggest a lifetime name that conflicts with the other late-bound regions of the function:
```rust
type Inv<'a> = *mut &'a ();
fn check_bound<'a, T: 'a>(_: T, _: Inv<'a>) {}
fn test<'a, T>(_: &'a str, t: T, lt: Inv<'_>) { // suggests a new name `'a`
    check_bound(t, lt); //~ ERROR
}
```
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions