about summary refs log tree commit diff
path: root/src/librustc_borrowck/borrowck/move_data.rs
AgeCommit message (Collapse)AuthorLines
2019-07-11Move rustc_borrowck -> rustc_ast_borrowckMatthew Jasper-730/+0
2019-07-11Remove rustc_mir dependency from rustc_borrowckMatthew Jasper-27/+6
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-5/+5
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-33/+49
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-5/+5
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-18/+18
2019-02-10rustc: doc commentsAlexander Regueiro-4/+4
2019-02-08librustc_borrowck => 2018Taiki Endo-7/+8
2019-01-15Remove an unused function argumentOliver Scherer-4/+0
2018-12-25Remove licensesMark Rousskov-10/+0
2018-10-26Remove redundant cloneShotaro Yamada-3/+3
2018-08-22Remove Ty prefix from ↵varkor-2/+2
Ty{Adt|Array|Slice|RawPtr|Ref|FnDef|FnPtr|Dynamic|Closure|Generator|GeneratorWitness|Never|Tuple|Projection|Anon|Infer|Error}
2018-07-31Remove dead codeMark Rousskov-27/+6
2018-07-31Move dataflow to borrowckMark Rousskov-4/+2
No one else uses it.
2018-05-26Use `Ident`s for fields in HIRVadim Petrochenkov-2/+4
2018-04-12Avoid comparing fields by name when possibleVadim Petrochenkov-4/+4
Resolve them into field indices once and then use those resolutions + Fix rebase
2018-04-12AST/HIR: Merge field access expressions for named and numeric fieldsVadim Petrochenkov-3/+2
2018-01-29rustc: replace "lvalue" terminology with "place" in the code.Eduard-Mihai Burtescu-1/+1
2018-01-08rustc::ty: Rename `struct_variant` to `non_enum_variant`Robin Kruppe-2/+2
It is also intended for use with unions.
2017-09-01rustc: use hir::ItemLocalId instead of ast::NodeId in CodeExtent.Eduard-Mihai Burtescu-4/+2
2017-09-01rustc: use hir::ItemLocalId instead of ast::NodeId in CFG.Eduard-Mihai Burtescu-32/+23
2017-08-19rustc: Remove some dead codeVadim Petrochenkov-45/+0
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-10/+10
Like #43008 (f668999), but _much more aggressive_.
2017-07-31borrowck: skip CFG construction when there is nothing to propagateAriel Ben-Yehuda-0/+9
CFG construction takes a large amount of time and memory, especially for large constants. If such a constant contains no actions on lvalues, it can't have borrowck problems and can be ignored by it. This removes the 4.9GB borrowck peak from #36799. It seems that HIR had grown by 300MB and MIR had grown by 500MB from the last massif collection and that remains to be investigated, but this at least shaves the borrowck peak.
2017-06-01rustc: avoid using MethodCallee's signature where possible.Eduard-Mihai Burtescu-1/+1
2017-05-24Remove all instances of fragment_infos and fragment setsPaul Faria-19/+0
2017-04-30introduce per-fn RegionMapsTaylor Cramer-5/+8
Instead of requesting the region maps for the entire crate, request for a given item etc. Several bits of code were modified to take `&RegionMaps` as input (e.g., the `resolve_regions_and_report_errors()` function). I am not totally happy with this setup -- I *think* I'd rather have the region maps be part of typeck tables -- but at least the `RegionMaps` works in a "parallel" way to `FreeRegionMap`, so it's not too bad. Given that I expect a lot of this code to go away with NLL, I didn't want to invest *too* much energy tweaking it.
2017-04-30intern CodeExtentsNiko Matsakis-2/+2
Make a `CodeExtent<'tcx>` be something allocated in an arena instead of an index into the `RegionMaps`.
2017-04-30On-demandify region mappingTaylor Cramer-2/+2
2017-04-08Fix move checking for nested union fieldsVadim Petrochenkov-15/+15
2017-01-26rustc: don't call the HIR AST.Eduard-Mihai Burtescu-1/+1
2016-12-28rustc: move function arguments into hir::Body.Eduard-Mihai Burtescu-3/+2
2016-12-28rustc: separate bodies for static/(associated)const and embedded constants.Eduard-Mihai Burtescu-1/+1
2016-11-10rustc: use an Expr instead of a Block for function bodies.Eduard Burtescu-1/+1
2016-11-08Replace FnvHasher use with FxHasher.Nicholas Nethercote-3/+3
This speeds up compilation by 3--6% across most of rustc-benchmarks.
2016-10-31Changed most vec! invocations to use square bracesiirelu-1/+1
Most of the Rust community agrees that the vec! macro is clearer when called using square brackets [] instead of regular brackets (). Most of these ocurrences are from before macros allowed using different types of brackets. There is one left unchanged in a pretty-print test, as the pretty printer still wants it to have regular brackets.
2016-09-08Refactor `TyStruct`/`TyEnum`/`TyUnion` into `TyAdt`Vadim Petrochenkov-26/+31
2016-09-04Replace `_, _` with `..`Vadim Petrochenkov-4/+4
2016-09-03Address comments and add requested testsVadim Petrochenkov-6/+6
2016-09-03Support unions in borrow checkerVadim Petrochenkov-1/+56
Add some more tests
2016-07-03prefer `if let` to match with `None => {}` arm in some placesZack M. Davis-5/+2
This is a spiritual succesor to #34268/8531d581, in which we replaced a number of matches of None to the unit value with `if let` conditionals where it was judged that this made for clearer/simpler code (as would be recommended by Manishearth/rust-clippy's `single_match` lint). The same rationale applies to matches of None to the empty block.
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-1/+1
2016-05-11rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users.Eduard Burtescu-7/+7
2016-05-11rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.Eduard Burtescu-13/+8
2016-04-06syntax: dismantle ast_util.Eduard Burtescu-2/+2
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-1/+1
2016-03-31librustc_borrowck: use bug!(), span_bug!()Benjamin Herr-1/+1
2016-03-27rustc: move cfg, infer, traits and ty from middle to top-level.Eduard Burtescu-2/+2
2016-03-03Rename middle::ty::ctxt to TyCtxtJeffrey Seyfried-8/+8
2016-02-12Autoderef in librustc_borrowckJonas Schievink-4/+4