about summary refs log tree commit diff
path: root/src/librustc/middle/region.rs
AgeCommit message (Collapse)AuthorLines
2019-04-27Auto merge of #59540 - Zoxc:the-arena-2, r=michaelwoeristerbors-3/+2
Use arenas to avoid Lrc in queries #1 Based on https://github.com/rust-lang/rust/pull/59536.
2019-04-25Update region_scope_treeJohn Kåre Alsaker-3/+2
2019-04-25Introduce hir::ExprKind::Use and employ in for loop desugaring.Mazdak Farrokhzad-0/+6
Here, ExprKind::Use(P<Expr>) tweaks the drop order to act the same way as '{ let _tmp = expr; _tmp }' does.
2019-03-15rustc: remove TyCtxt::parent_def_id in favor of TyCtxt::parent.Eduard-Mihai Burtescu-3/+3
2019-03-13Use derive macro for HashStableJohn Kåre Alsaker-2/+5
2019-03-08expand unused doc comment diagnosticAndy Russell-18/+17
Report the diagnostic on macro expansions, and add a label indicating why the comment is unused.
2019-03-07HirIdification: replace NodeId method callsljedrz-9/+9
2019-02-24hir: remove NodeId from Blockljedrz-1/+1
2019-02-10rustc: doc commentsAlexander Regueiro-23/+23
2019-02-05move librustc to 2018Mark Mansi-12/+12
2019-02-03cleanup: don't use node_to_hir_id where unneededljedrz-1/+1
2019-01-21Differentiate between closure and function bodiesOliver Scherer-2/+2
2019-01-17Remove `hir::StmtKind::Decl`.Nicholas Nethercote-14/+19
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-1/+1
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-25Remove licensesMark Rousskov-10/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-9/+9
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-19/+19
2018-12-05Rollup merge of #56119 - frewsxcv:frewsxcv-option-carrier, r=TimNNPietro Albini-4/+1
Utilize `?` instead of `return None`. None
2018-12-04Utilize `?` instead of `return None`.Corey Farwell-4/+1
2018-11-26rustc-guide has movedMark Mansi-1/+1
2018-10-19Prefer `Default::default` over `FxHash*::default` in struct constructorsOliver Scherer-1/+1
2018-10-19Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hackOliver Scherer-2/+2
2018-10-10add a macro for static assertionsRalf Jung-2/+1
2018-10-06rustc/middle: whitespace & formatting fixesljedrz-13/+9
2018-10-06rustc/middle: improve some patternsljedrz-8/+4
2018-09-29don't elide lifetimes in paths in librustc/Zack M. Davis-5/+5
This seemed like a good way to kick the tires on the elided-lifetimes-in-paths lint (#52069)—seems to work! This was also pretty tedious—it sure would be nice if `cargo fix` worked on this codebase (#53896)!
2018-09-27Bump to 1.31.0 and bootstrap from 1.30 betaJosh Stone-2/+0
2018-09-15Make rustc::middle::region::Scope's fields publicMarshall Bowers-59/+20
2018-09-11Change debug printing to print in the old concise styleOliver Schneider-3/+21
2018-09-11Use assertion-like static assertionsOliver Schneider-1/+1
2018-09-11Rebase falloutOliver Schneider-1/+1
2018-09-11Simplify Scope/ScopeData to have less chance of introducing UB or size increasesOliver Schneider-70/+36
2018-09-11Use the same way to specifiy the `SCOPE_DATA_*` constants as used for the MAXOliver Schneider-4/+4
2018-09-11Forbid the upper indices of `IndexVec` indices to allow for niche optimizationsOliver Schneider-4/+2
2018-09-07change from tuple struct to brace structNiko Matsakis-1/+1
2018-09-07make field always private, add `From` implsNiko Matsakis-1/+2
2018-09-07change syntax of `newtype_index` to look like a struct declNiko Matsakis-3/+4
2018-09-01Auto merge of #53815 - F001:if-let-guard, r=petrochenkovbors-2/+4
refactor match guard This is the first step to implement RFC 2294: if-let-guard. Tracking issue: https://github.com/rust-lang/rust/issues/51114 The second step should be introducing another variant `IfLet` in the Guard enum. I separated them into 2 PRs for the convenience of reviewers. r? @petrochenkov
2018-08-30introduce Guard enumF001-2/+4
2018-08-27Rename hir::map::NodeKind to hir::Nodevarkor-4/+4
2018-08-27Remove path prefixes from NodeKindvarkor-3/+4
2018-08-27Rename hir::map::Node to hir::map::NodeKindvarkor-3/+3
2018-08-19mv codemap() source_map()Donato Sciarra-1/+1
2018-08-19mv (mod) codemap source_mapDonato Sciarra-6/+10
2018-07-16ExprKindcsmoe-19/+19
2018-07-16StmtKindcsmoe-2/+2
2018-07-16BinOpKindcsmoe-2/+2
2018-07-01use HirId in middle::mem_categorization::cmt_, and consequences of thatZack M. Davis-5/+5
For the HirIdification initiative #50928.
2018-06-24Update broken rustc-guide linksAlex Kitchens-1/+1
Recently, there has been some rearrangement of the content in the Rustc Guide, and this commit changes the urls the match the updated guide.
2018-06-14rustc: rename ty::maps to ty::query.Eduard-Mihai Burtescu-1/+1