Matthias Krüger
389747c41d
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
}
```
2023-10-09 16:26:00 +02:00
..
2023-05-01 16:15:13 +08:00
2023-10-05 01:04:41 +00:00
2023-04-12 22:50:10 +00:00
2023-10-06 13:18:35 +02:00
2023-05-15 00:00:00 +00:00
2023-08-02 18:51:50 +02:00
2023-04-16 11:38:52 +00:00
2023-10-05 01:04:41 +00:00
2023-08-24 14:10:18 +02:00
2023-02-12 02:15:41 +00:00
2023-02-12 02:15:41 +00:00
2023-08-20 15:52:40 +02:00
2023-06-12 20:24:48 +08:00
2023-08-20 00:21:47 +00:00
2023-08-20 00:21:47 +00:00
2023-01-16 14:59:27 +00:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2023-07-25 14:30:58 +02:00
2023-05-21 14:09:03 +02:00
2023-07-10 20:09:26 +00:00
2023-01-11 14:40:02 -08:00
2023-10-04 08:01:11 +08:00
2023-02-12 02:15:41 +00:00
2023-07-27 15:51:02 +00:00
2023-09-20 03:02:14 +00:00
2023-08-06 15:47:40 -07:00
2023-08-06 15:47:40 -07:00
2023-08-06 15:47:40 -07:00
2023-10-05 01:04:41 +00:00
2023-09-14 22:34:05 +02:00
2023-09-14 22:34:05 +02:00
2023-08-02 15:38:00 +00:00
2023-08-02 15:38:00 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-05-15 00:00:00 +00:00
2023-05-15 00:00:00 +00:00
2023-09-14 22:34:05 +02:00
2023-09-14 22:34:05 +02:00
2023-07-04 15:54:18 +02:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-07-21 22:35:57 -07:00
2023-04-16 11:38:52 +00:00
2023-08-06 13:34:53 +00:00
2023-05-15 00:00:00 +00:00
2023-05-15 00:00:00 +00:00
2023-08-02 15:38:00 +00:00
2023-01-11 20:01:24 +00:00
2023-02-21 05:21:07 +00:00
2023-09-07 18:31:17 +00:00
2023-10-05 01:04:41 +00:00
2023-09-05 20:20:55 +00:00
2023-09-05 20:20:55 +00:00
2023-04-16 11:38:52 +00:00
2023-10-05 01:04:41 +00:00
2023-01-31 17:26:06 +00:00
2023-01-31 17:26:06 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-10-05 01:04:41 +00:00
2023-10-05 01:04:41 +00:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:35:59 -03:00
2023-10-05 01:04:41 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-05-24 19:35:59 -03:00
2023-05-24 19:54:13 -03:00
2023-02-16 11:42:35 -03:00
2023-09-14 22:30:42 +02:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-07-21 22:35:57 -07:00
2023-05-04 11:22:40 +01:00
2023-05-04 11:22:40 +01:00
2023-02-16 11:42:35 -03:00
2023-05-15 00:00:00 +00:00
2023-05-15 00:00:00 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-03-21 11:09:27 +00:00
2023-06-01 14:45:18 +00:00
2023-05-15 00:00:00 +00:00
2023-10-08 12:09:06 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-09-14 22:34:05 +02:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-01-12 02:28:38 +00:00
2023-01-12 02:28:38 +00:00
2023-01-12 02:28:38 +00:00
2023-07-27 15:51:02 +00:00
2023-08-04 13:17:39 +02:00
2023-10-08 10:06:17 +00:00
2023-07-18 21:53:34 -04:00
2023-05-21 14:09:03 +02:00
2023-09-14 11:56:55 +02:00
2023-05-05 20:36:21 +02:00
2023-08-02 18:51:50 +02:00
2023-06-12 20:24:48 +08:00
2023-03-27 11:08:11 -04:00
2023-06-01 14:45:18 +00:00
2023-06-24 18:04:14 +00:00
2023-08-25 19:05:38 +00:00
2023-01-30 20:12:19 +00:00
2023-04-22 00:47:07 -04:00
2023-06-01 14:45:18 +00:00
2023-07-29 11:47:26 +02:00
2023-07-27 15:51:02 +00:00
2023-01-15 19:46:20 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-08-01 18:23:37 +02:00
2023-08-03 10:52:15 +02:00
2023-06-01 14:45:18 +00:00
2023-06-01 14:45:18 +00:00
2023-07-18 21:53:34 -04:00
2023-07-18 21:53:34 -04:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-08-06 13:34:53 +00:00
2023-08-07 17:16:10 +00:00
2023-06-22 14:11:10 +00:00
2023-06-22 14:11:10 +00:00
2023-01-18 04:07:39 +00:00
2023-06-27 23:31:06 +00:00
2023-04-16 11:38:52 +00:00
2023-04-16 11:38:52 +00:00
2023-10-05 01:04:41 +00:00
2023-09-20 03:02:14 +00:00
2023-09-20 03:02:14 +00:00
2023-07-18 21:53:34 -04:00