rust/compiler/rustc_borrowck
Matthias Krüger 87540879f4
Rollup merge of #117835 - Nilstrieb:note-object-lifetime-defaults, r=compiler-errors
Note about object lifetime defaults in does not live long enough error

This is a aspect of Rust that frequently trips up people who are not aware of it yet. This diagnostic attempts to explain what's happening and why the lifetime constraint, that was never mentioned in the source, arose.

The implementation feels a bit questionable, I'm not sure whether there are better ways to do this. There probably are.

fixes #117835

r? types
2023-11-20 20:56:40 +01:00
..
src Rollup merge of #117835 - Nilstrieb:note-object-lifetime-defaults, r=compiler-errors 2023-11-20 20:56:40 +01:00
Cargo.toml Clean up rustc_*/Cargo.toml. 2023-10-30 08:46:02 +11:00
messages.ftl s/generator/coroutine/ 2023-10-20 21:14:01 +00:00