Matthias Krüger 706dc70916
Rollup merge of #139668 - matthewjasper:upper-bound-fix, r=compiler-errors
Handle regions equivalent to 'static in non_local_bounds

`non_local_bounds` would only find non local bounds that strictly bound a given region, but it's possible that a local region is equated to 'static when showing a type referencing a locally bound lifetime, such as `dyn Any + 'a` in the tests added, is well-formed. In this case we should return 'static.

closes #122704
closes #139004
2025-05-22 16:02:26 +02:00
..
2025-04-09 12:29:59 +01:00
2025-05-01 10:20:31 +02:00
2025-01-31 16:04:13 +11:00
2025-02-08 22:12:13 +00:00
2025-05-20 21:16:23 +00:00
2025-02-17 21:35:52 -05:00
2025-05-20 21:16:23 +00:00
2025-05-20 21:16:23 +00:00
2025-03-26 15:46:05 +01:00
2025-05-01 10:20:31 +02:00
2025-05-15 19:55:43 +02:00