about summary refs log tree commit diff
path: root/src/librustc_mir/dataflow/move_paths/mod.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-415/+0
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-2/+2
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-2/+2
2020-03-04PlaceRef<'a, 'tcx> -> PlaceRef<'tcx>Santiago Pastorino-1/+1
2020-02-13Use an `Iterator` for `MovePath` traversalDylan MacKenzie-10/+42
2020-02-10Implement a `find_descendant` method for `MovePath`Dylan MacKenzie-0/+47
2020-01-28Local field on PlaceRef and RootPlace is not a reference anymoreSantiago Pastorino-1/+1
2020-01-10Remove PlaceBase enum and make Place base field be local: LocalSantiago Pastorino-3/+1
2020-01-10Remove Static from PlaceBaseSantiago Pastorino-4/+0
2020-01-06Improve hygiene of `newtype_index`Matthew Jasper-1/+1
Also add unit tests
2020-01-04canonicalize FxHash{Map,Set} importsMazdak Farrokhzad-1/+1
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-1/+1
2019-12-22Format the worldMark Rousskov-1/+1
2019-12-09Make const index and subslice array projections more usefulMatthew Jasper-2/+3
* `min_length` is now exact for const index elements. * const index elements are always from the start. * make array `Subslice` `PlaceElems` count both `from` and `to` from the start.
2019-10-22Pattern match over PlaceRef rather than PlaceSantiago Pastorino-1/+1
This prepares the code base for when projection is interned. Place's projection field is going to be `&List<PlaceElem<'tcx>>` so we won't be able to pattern match against it.
2019-09-29remove indexed_vec re-export from rustc_data_structurescsmoe-4/+4
2019-09-09Convert Place's projection to a boxed sliceSantiago Pastorino-16/+14
2019-09-04Rustfmt the files I touchedAlbin Stjerna-17/+25
2019-09-04Polonius: emit initialization/move tracking factsAlbin Stjerna-1/+8
- var_starts_path - parent - initialized_at - moved_out_at This also switches to the intended emission of `var_drop_used` fact emission, where that fact is always emitted on a drop-use of a variable, regardless of its initialization status, as Polonius now handles that.
2019-08-24Allow lifetime parameters to be inferredSantiago Pastorino-1/+1
2019-07-20Avoid cloning Place in report_use_of_moved_or_uninitialized and friendsSantiago Pastorino-2/+2
2019-07-20Migrate from Place enum to Place structSantiago Pastorino-1/+4
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-3/+3
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-2/+4
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-1/+1
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-1/+1
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-1/+1
2019-06-09Changed usages of `mir` in librustc::mir and librustc_mir to `body`Jad Ghalayini-7/+7
2019-05-28Changes the type `mir::Mir` into `mir::Body`Claude-Alban RANÉLY-VERGÉ-DÉPRÉ-3/+3
The commit should have changed comments as well. At the time of writting, it passes the tidy and check tool. Revisions asked by eddyb : - Renamed of all the occurences of {visit/super}_mir - Renamed test structures `CachedMir` to `Cached` Fixing the missing import on `AggregateKind`
2019-05-24Make find iterate instead of recurseSantiago Pastorino-13/+14
2019-04-28Fix lint findings in librustc_mirflip1995-3/+3
2019-04-13Auto merge of #59612 - matthewjasper:dataflow-usual-newtype-index, r=estebankbors-57/+14
Use normal newtype_index macro for MIR dataflows * Makes the definition of these structs contain `struct IndexName` * Avoids having an offset by removing high values, rather than 0 * Implements some traits for us.
2019-04-02Replace adt_def with name in mir::ProjectionElem::DowncastTyler Mandry-4/+4
2019-04-01Use normal newtype_index macro for MIR dataflowMatthew Jasper-57/+14
2019-03-18promoted is still left in 2 placesSaleem Jaffer-1/+0
2019-03-08expand unused doc comment diagnosticAndy Russell-12/+24
Report the diagnostic on macro expansions, and add a label indicating why the comment is unused.
2019-03-01Put Local, Static and Promoted as one Base variant of PlaceSantiago Pastorino-4/+4
2019-02-08librustc_mir => 2018Taiki Endo-8/+11
2018-12-25Remove licensesMark Rousskov-11/+0
2018-11-01Use `SmallVec` within `MoveData`.Nicholas Nethercote-4/+5
This reduces allocation counts significantly in a few benchmarks, reducing instruction counts by up to 2%.
2018-09-17Inspect parents paths when checking for movesSantiago Pastorino-0/+14
2018-09-08Auto merge of #53909 - mikhail-m1:53643, r=nikomatsakisbors-0/+10
Skip a shared borrow of a immutable local variables issue #53643 r? @nikomatsakis
2018-09-06Skip a shared borrow of a immutable local variablesMikhail Modin-0/+10
issue #53643
2018-08-30Added InitLocation to encode Location or Local depending on source of InitDavid Wood-3/+21
2018-08-14Label definition of captured variables in errors.David Wood-1/+1
2018-07-23Promoteds are statics and statics have a place, not just a valueOliver Schneider-0/+1
2018-07-21Add specific message when moving from upvars in a non-FnOnce closureMatthew Jasper-3/+3
2018-06-27Group move errors before reporting, add suggestionsMatthew Jasper-4/+4
2018-06-06When NLL has illegal move due to borrowed content, provide feedback about ↵Felix S. Klock II-1/+15
why the move wasn't a copy. This should address #51190.
2018-05-24Use AllFacts from polonius-engineSantiago Pastorino-1/+1