1
Fork 0
rust/compiler/rustc_middle/src/ty
Jennifer Wills 52dba13e41 Replace closures_captures and upvar_capture with closure_min_captures
make changes to liveness to use closure_min_captures

use different span

borrow check uses new structures

rename to CapturedPlace

stop using upvar_capture in regionck

remove the bridge

cleanup from rebase + remove the upvar_capture reference from mutability_errors.rs

remove line from livenes test

make our unused var checking more consistent

update tests

adding more warnings to the tests

move is_ancestor_or_same_capture to rustc_middle/ty

update names to reflect the closures

add FIXME

check that all captures are immutable borrows before returning

add surrounding if statement like the original

move var out of the loop and rename

Co-authored-by: Logan Mosier <logmosier@gmail.com>
Co-authored-by: Roxane Fruytier <roxane.fruytier@hotmail.com>
2021-03-18 20:45:49 -04:00
..
consts Update compiler/rustc_middle/src/ty/consts/valtree.rs 2021-03-16 18:31:33 +01:00
inhabitedness Implement Debug for DefIdForest 2021-01-16 17:56:32 -05:00
print Split pretty printer logic for scalar int and scalar ptr 2021-03-12 12:24:29 +00:00
query Auto merge of #82936 - oli-obk:valtree, r=RalfJung,lcnr,matthewjasper 2021-03-16 22:42:56 +00:00
_match.rs More rebinds 2020-12-19 04:26:35 -05:00
adjustment.rs New pass to deduplicate blocks 2021-02-21 21:51:54 +01:00
adt.rs Moved all Adt* types to adt.rs 2021-03-10 14:32:14 -08:00
assoc.rs Moved all Assoc* types to assoc.rs. 2021-03-10 14:32:13 -08:00
binding.rs words 2020-11-16 22:42:09 +01:00
cast.rs Use rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the rustc_ast` ones in types 2021-01-18 21:09:23 +01:00
closure.rs Replace closures_captures and upvar_capture with closure_min_captures 2021-03-18 20:45:49 -04:00
codec.rs Intern valtree field vector 2021-03-12 12:19:17 +00:00
consts.rs Implement valtree 2021-03-12 12:16:14 +00:00
context.rs Replace closures_captures and upvar_capture with closure_min_captures 2021-03-18 20:45:49 -04:00
diagnostics.rs hir: Preserve used syntax in TyKind::TraitObject 2021-03-18 03:02:32 +03:00
erase_regions.rs compiler: fold by value 2020-11-16 22:34:57 +01:00
error.rs Fix tests 2021-03-03 11:22:44 +01:00
fast_reject.rs Use rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the rustc_ast` ones in types 2021-01-18 21:09:23 +01:00
flags.rs Review changes 2021-01-16 18:56:37 -05:00
fold.rs Make functions passed to BoundVarReplacer be optional 2021-03-15 19:00:37 -04:00
generics.rs Moved types starting with 'Generic' into generics.rs. 2021-03-10 14:32:13 -08:00
instance.rs Typo 2021-03-04 15:45:31 +00:00
layout.rs address pr review comments 2021-03-09 14:40:33 -05:00
list.rs Fix typo 2020-12-23 13:08:15 -08:00
mod.rs Implement valtree 2021-03-12 12:16:14 +00:00
normalize_erasing_regions.rs compiler: fold by value 2020-11-16 22:34:57 +01:00
outlives.rs Address comments 2020-10-14 00:17:42 -04:00
relate.rs Pull out ConstValue relating into its own function 2021-03-12 12:23:50 +00:00
structural_impls.rs Move a few more types to rustc_type_ir 2021-01-18 21:06:12 +01:00
sty.rs Change x64 size checks to not apply to x32. 2021-03-06 16:02:48 +00:00
subst.rs Auto merge of #78779 - LeSeulArtichaut:ty-visitor-return, r=oli-obk 2020-11-17 12:24:34 +00:00
trait_def.rs Trait impls are Items, therefore HIR owners. 2021-02-15 19:36:13 +01:00
util.rs Use rustc_type_ir::{IntTy,UintTy,FloatTy} instead of the rustc_ast` ones in types 2021-01-18 21:09:23 +01:00
walk.rs Small optimizations to obligation forest 2021-02-23 07:16:42 +00:00