rust/compiler/rustc_borrowck/src
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
..
constraints Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
diagnostics Rollup merge of #117835 - Nilstrieb:note-object-lifetime-defaults, r=compiler-errors 2023-11-20 20:56:40 +01:00
region_infer Auto merge of #116097 - jackh726:higher-ranked-lifetime-error-backup, r=compiler-errors 2023-11-16 19:12:35 +00:00
type_check Rollup merge of #117835 - Nilstrieb:note-object-lifetime-defaults, r=compiler-errors 2023-11-20 20:56:40 +01:00
util Move some utils out of rustc_const_eval 2023-04-16 12:05:54 +02:00
borrow_set.rs rename BorrowKind::Shallow to Fake 2023-11-08 22:55:28 +01:00
borrowck_errors.rs Use targetted diagnostic for borrow across yield error 2023-10-27 13:05:49 +00:00
constraint_generation.rs refactor(rustc_middle): Substs -> GenericArg 2023-07-14 13:27:35 +01:00
consumers.rs Fix redundant explicit link in rustc_borrowck 2023-08-19 02:22:13 +08:00
dataflow.rs traverse region graph instead of SCCs to compute polonius loan scopes 2023-11-04 01:04:12 +00:00
def_use.rs rename BorrowKind::Shallow to Fake 2023-11-08 22:55:28 +01:00
facts.rs introduce Polonius enum for -Zpolonius 2023-10-04 16:16:12 +00:00
invalidation.rs rename BorrowKind::Shallow to Fake 2023-11-08 22:55:28 +01:00
lib.rs Bump cfg(bootstrap)s 2023-11-15 19:41:28 -05:00
location.rs Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
member_constraints.rs remove unused muts 2023-04-28 20:19:48 +02:00
nll.rs compute NLL loan scopes with liveness in -Zpolonius=next 2023-10-05 15:56:20 +00:00
path_utils.rs s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
place_ext.rs use PlaceRef abstractions more consistently 2023-06-25 20:38:01 -04:00
places_conflict.rs rename BorrowKind::Shallow to Fake 2023-11-08 22:55:28 +01:00
prefixes.rs Add docs, remove code, change subtyper code 2023-10-02 23:39:44 +03:00
renumber.rs add fixme to RegionCtxt 2023-11-13 14:13:54 +00:00
session_diagnostics.rs s/generator/coroutine/ 2023-10-20 21:14:01 +00:00
universal_regions.rs rename bound region instantiation 2023-11-17 09:29:48 +00:00
used_muts.rs Rollup merge of #108856 - Zeegomo:remove-drop-and-rep, r=tmiasko 2023-03-08 21:26:51 +01:00