1
Fork 0
rust/compiler/rustc_borrowck/src
marmeladema 7b0db3e7c8 Improve span for consider adding an explicit lifetime bound suggestions under NLL
Because NLL borrowck is run after typeck, `in_progress_typeck_results`
was always `None` which was preventing the retrieval of the span to which
the suggestion is suppose to add the lifetime bound.

We now manually pass the `LocalDefId` owner to `construct_generic_bound_failure`
so that under NLL, we give the owner id of the current body.
2022-04-24 09:34:50 +02:00
..
constraints Make the lifetime accurate which is used in the region constraints part 2022-04-22 20:05:39 +08:00
diagnostics Improve span for consider adding an explicit lifetime bound suggestions under NLL 2022-04-24 09:34:50 +02:00
region_infer Add an explicit Span field to OutlivesConstraint 2022-04-19 23:42:20 -04:00
type_check Add an explicit Span field to OutlivesConstraint 2022-04-19 23:42:20 -04:00
borrow_set.rs Remove in_band_lifetimes from borrowck 2021-12-15 08:39:21 +01:00
borrowck_errors.rs span: move MultiSpan 2022-04-05 07:01:00 +01:00
constraint_generation.rs Overhaul RegionKind and Region. 2022-02-15 16:08:52 +11:00
consumers.rs Add InferCtxt::with_opaque_type_inference to get_body_with_borrowck_facts 2021-10-06 19:07:56 -07:00
dataflow.rs Add new Deinit statement kind 2022-04-11 08:55:03 -04:00
def_use.rs Add new MutatatingUseContexts for deinit and SetDiscriminant 2022-04-11 09:26:26 -04:00
facts.rs
invalidation.rs Add new Deinit statement kind 2022-04-11 08:55:03 -04:00
lib.rs Add new Deinit statement kind 2022-04-11 08:55:03 -04:00
location.rs add #[rustc_pass_by_value] to more types 2022-03-08 15:39:52 +01:00
member_constraints.rs Remove in_band_lifetimes from borrowck 2021-12-15 08:39:21 +01:00
nll.rs Report opaque type mismatches directly during borrowck of the function instead of within the type_of query. 2022-04-07 13:39:52 +00:00
path_utils.rs Remove in_band_lifetimes from borrowck 2021-12-15 08:39:21 +01:00
place_ext.rs
places_conflict.rs 3 - Make more use of let_chains 2022-02-27 11:10:20 -03:00
prefixes.rs
renumber.rs Overhaul Const. 2022-02-15 16:19:59 +11:00
universal_regions.rs Store LocalDefId in is_late_bound_map. 2022-04-10 13:36:06 +02:00
used_muts.rs