about summary refs log tree commit diff
path: root/src/librustc/middle/expr_use_visitor.rs
AgeCommit message (Collapse)AuthorLines
2019-11-27Move ExprUseVisitor and mem_categorization to rustc_typeckMatthew Jasper-632/+0
`MemCategorizationContext` is now private, the remaining types and traits remain public for Clippy.
2019-11-27Remove remaining uses of "cmt"Matthew Jasper-38/+40
2019-11-27Simplify `mem_categorization`Matthew Jasper-30/+24
* `Place` is no longer recursive. * The `cmt` type alias is removed * `Upvar` places no longer include the dereferences of the environment closure or of by reference captures. * All non-dereference projections are combined to a single variant. * Various unnecessary types and methods have been removed.
2019-11-27Simplify fields of `MemCategorizationContext`Matthew Jasper-41/+11
2019-11-27Rename `cmt_` to `Place`Matthew Jasper-7/+7
2019-11-24Add raw address of expressions to the AST and HIRMatthew Jasper-1/+1
2019-11-21reduce size of hir::ExprKindMazdak Farrokhzad-3/+3
2019-09-30Remove unused parts of ExprUseVisitorMatthew Jasper-380/+78
2019-09-30Remove HIR based const qualificationMatthew Jasper-14/+1
2019-09-26Rename `Stmt.node` to `Stmt.kind`varkor-1/+1
2019-09-26Rename `Pat.node` to `Pat.kind`varkor-3/+3
2019-09-26Rename `Expr.node` to `Expr.kind`varkor-1/+1
For both `ast::Expr` and `hir::Expr`.
2019-09-26Auto merge of #64513 - varkor:sty-begone, r=eddybbors-4/+4
Rename `TyS.sty` to `TyS.kind` Fixes https://github.com/rust-lang/rust/issues/64353. r? @eddyb
2019-09-25Rename `sty` to `kind`varkor-4/+4
2019-09-16or-patterns: euv/`walk_arm`: remove `top_pats_hack`.Mazdak Farrokhzad-3/+1
2019-09-16or-patterns: euv/`arm_move_mode`: remove `top_pats_hack`.Mazdak Farrokhzad-3/+1
2019-09-15or-patterns: use `top_pats_hack` to make things compile.Mazdak Farrokhzad-2/+2
2019-09-07Aggregation of cosmetic changes made during work on REPL PRs: librustcAlexander Regueiro-1/+1
2019-08-27Cleanup: Consistently use `Param` instead of `Arg` #62426Kevin Per-9/+9
2019-08-05Fiddle param env through to `try_eval_bits` in most placesOliver Scherer-0/+2
2019-07-06Remove ExprKind::While from HIR.Mazdak Farrokhzad-5/+0
2019-07-04rename hir::map::local_def_id_from_hir_id to local_def_idljedrz-1/+1
2019-07-01rustc: use a separate copy of P for HIR than for AST.Eduard-Mihai Burtescu-1/+1
2019-06-19Rollup merge of #61941 - cramertj:no-more-yield-errors, r=centrilMazdak Farrokhzad-1/+1
Preserve generator and yield source for error messages Previously, error messages after HIR lowering all referred to generators and yield, regardless of whether the original source was a generator or an async/await body. This change tracks the kind of each generator and yield source in order to provide appropriately tailored error messages. Fixes #60615.
2019-06-18Preserve generator and yield source for error messagesTaylor Cramer-1/+1
Previously, error messages after HIR lowering all referred to generators and yield, regardless of whether the original source was a generator or an async/await body. This change tracks the kind of each generator and yield source in order to provide appropriately tailored error messages.
2019-06-18rustc: remove 'x: 'y bounds (except from comments/strings).Eduard-Mihai Burtescu-1/+1
2019-06-14Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-14/+14
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-10/+10
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-9/+9
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-4/+4
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-2/+2
2019-06-01rustc: remove Res::Upvar.Eduard-Mihai Burtescu-7/+2
2019-06-01rustc: remove `has_parent` from `hir::Upvar`.Eduard-Mihai Burtescu-5/+3
2019-06-01rustc: remove closure ID from Res::Upvar.Eduard-Mihai Burtescu-8/+6
2019-06-01rustc: track the body owner DefId in MC and EUV.Eduard-Mihai Burtescu-4/+11
2019-06-01rustc: use indexmap instead of a plain vector for upvars.Eduard-Mihai Burtescu-5/+7
2019-06-01rustc: remove the closure ID from hir::Upvar's parent field.Eduard-Mihai Burtescu-6/+10
2019-06-01rustc: remove the index field from Res::Upvar.Eduard-Mihai Burtescu-1/+1
2019-06-01rustc: replace Res in hir::Upvar with only Local/Upvar data.Eduard-Mihai Burtescu-5/+7
2019-05-26Rename "Associated*" to "Assoc*"Andrew Xu-1/+1
We are going to uniform the terminology of all associated items. Methods that may or may not have `self` are called "associated functions". Because `AssociatedFn` is a bit long, we rename `Associated` to `Assoc`.
2019-05-10Remove hir::ExprKind::If and replace it with lowering to hir::ExprKind::Match.Mazdak Farrokhzad-8/+0
2019-05-05rustc: rename all occurences of "freevar" to "upvar".Eduard-Mihai Burtescu-7/+7
2019-05-05rustc: replace uses of with_freevars with the freevars query.Eduard-Mihai Burtescu-3/+3
2019-05-03rustc: rename hir::def::Def to Res (short for "resolution").Eduard-Mihai Burtescu-14/+14
2019-05-03rustc: factor most DefId-containing variants out of Def and into DefKind.Eduard-Mihai Burtescu-5/+9
2019-05-01Auto merge of #60435 - Centril:rollup-aa5lmuw, r=Centrilbors-1/+1
Rollup of 7 pull requests Successful merges: - #60287 (Use references for variances_of) - #60327 (Search for incompatible universes in borrow errors) - #60330 (Suggest using an inclusive range instead of an exclusive range when the endpoint overflows by 1) - #60366 (build-gcc: Create missing cc symlink) - #60369 (Support ZSTs in DispatchFromDyn) - #60404 (Implement `BorrowMut<str>` for `String`) - #60417 (Rename hir::ExprKind::Use to ::DropTemps and improve docs.) Failed merges: r? @ghost
2019-05-01Auto merge of #60195 - varkor:commontypes-to-common, r=eddybbors-1/+1
Split `CommonTypes` into `CommonTypes` and `CommonLifetimes` The so-called "`CommonTypes`" contains more than just types. r? @eddyb
2019-04-30Rename hir::ExprKind::Use to ::DropTemps and improve docs.Mazdak Farrokhzad-1/+1
2019-04-27Auto merge of #59540 - Zoxc:the-arena-2, r=michaelwoeristerbors-2/+1
Use arenas to avoid Lrc in queries #1 Based on https://github.com/rust-lang/rust/pull/59536.
2019-04-25Update existing usagesvarkor-1/+1