rust/compiler/rustc_infer
Matthias Krüger d7b86880d2
Rollup merge of #90667 - rukai:improve_static_lifetime_diagnostics, r=estebank
Improve diagnostics when a static lifetime is expected

Makes progress towards https://github.com/rust-lang/rust/issues/90600

The diagnostics here were previously entirely removed due to giving a misleading suggestion but if we instead provide an informative label in that same location it should better help the user understand the situation.

I included the example from the issue as it demonstrates an area where the diagnostics are still lacking.
Happy to remove that if its just adding noise atm.
2021-11-17 15:57:57 +01:00
..
src Rollup merge of #90667 - rukai:improve_static_lifetime_diagnostics, r=estebank 2021-11-17 15:57:57 +01:00
Cargo.toml Migrate to 2021 2021-09-20 22:21:42 -04:00