about summary refs log tree commit diff
path: root/src/librustc/cfg
AgeCommit message (Collapse)AuthorLines
2019-09-06Move the HIR cfg to `rustc_ast_borrowck`Matthew Jasper-716/+0
No new code should be using it.
2019-08-17Initial implementation of or patternsvarkor-0/+5
2019-08-15Remove `Spanned` from `{ast,hir}::FieldPat`Vadim Petrochenkov-1/+1
2019-07-06Exit arm scopes correctly in the HIR CFGMatthew Jasper-6/+7
When a match evaluates to false we jump to the next arm, when we do so we need to make sure that we exit the scope for that arm.
2019-07-06Remove ExprKind::While from HIR.Mazdak Farrokhzad-42/+0
2019-07-04Rollup merge of #62039 - jeremystucki:needless_lifetimes, r=eddybMazdak Farrokhzad-2/+2
Remove needless lifetimes (rustc)
2019-07-03Remove needless lifetimesJeremy Stucki-2/+2
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-2/+2
2019-06-17fix a HIR doc, simplify one HIR-related function callljedrz-2/+1
2019-06-17renamve hir_to_string to node_to_stringljedrz-1/+1
2019-06-17remove _by_hir_id if there is no NodeId counterpartljedrz-1/+1
2019-06-17replace some uses of NodeId with HirIdljedrz-4/+5
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-4/+4
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-4/+2
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-4/+4
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-2/+2
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-4/+4
2019-05-21Give match arms a drop/region scopeMatthew Jasper-4/+6
Also give arms the correct lint scope in MIR.
2019-05-10Remove hir::ExprKind::If and replace it with lowering to hir::ExprKind::Match.Mazdak Farrokhzad-41/+0
2019-04-30Rename hir::ExprKind::Use to ::DropTemps and improve docs.Mazdak Farrokhzad-1/+1
2019-04-25Introduce hir::ExprKind::Use and employ in for loop desugaring.Mazdak Farrokhzad-0/+1
Here, ExprKind::Use(P<Expr>) tweaks the drop order to act the same way as '{ let _tmp = expr; _tmp }' does.
2019-03-07hir: replace NodeId with HirId in Destinationljedrz-4/+4
2019-02-24hir: remove NodeId from Exprljedrz-1/+1
2019-02-18Fix style nitsDan Robertson-3/+5
Fix style nits discovered in reading code.
2019-02-05move librustc to 2018Mark Mansi-11/+11
2019-02-03cleanup: don't use node_to_hir_id where unneededljedrz-2/+1
2019-01-17Remove `hir::StmtKind::Decl`.Nicholas Nethercote-19/+10
It's a level of indirection that hurts far more than it helps. The code is simpler without it. (This commit cuts more than 120 lines of code.) In particular, this commit removes some unnecessary `Span`s within `DeclKind` that were always identical to those in the enclosing `Stmt`, and some unnecessary allocations via `P`.
2019-01-17Make `hir::Stmt` a separate struct.Nicholas Nethercote-4/+4
Benefits: - It lets us move the `NodeId` field out of every `hir::StmtKind` variant `NodeId` to a more sensible spot. - It eliminates sadness in `Stmt::fmt`. - It makes `hir::Stmt` match `ast::Stmt`.
2018-12-27AST/HIR: Introduce `ExprKind::Err` for better error recovery in the front-endVadim Petrochenkov-1/+2
2018-12-25Remove licensesMark Rousskov-30/+0
2018-12-11Update testsvarkor-1/+1
2018-12-11Consider privacy in more locationsvarkor-1/+2
2018-12-11Make uninhabitedness checking more intelligentvarkor-1/+1
2018-12-11Check for uninhabitedness instead of nevervarkor-2/+1
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-9/+9
2018-11-13A few tweaks to iterations/collectingljedrz-2/+1
2018-10-05Remove graphviz::IntoCowljedrz-8/+7
2018-09-15Make rustc::middle::region::Scope's fields publicMarshall Bowers-5/+14
2018-08-30introduce Guard enumF001-2/+3
2018-07-29Replace push loops with collect() and extend() where possibleljedrz-5/+5
2018-07-16ExprKindcsmoe-34/+34
2018-07-16DeclKindcsmoe-2/+2
2018-07-16StmtKindcsmoe-3/+3
2018-07-12rename `control_flow_graph` to `graph`Niko Matsakis-2/+2
2018-07-12rename `graph` to `control_flow_graph::implementation`Niko Matsakis-3/+3
2018-06-23Rename ExprAgain to ExprContinuevarkor-1/+1