about summary refs log tree commit diff
path: root/src/librustc/hir/map
AgeCommit message (Collapse)AuthorLines
2019-06-20rename hir::map::expect_expr_by_hir_id to expect_exprljedrz-1/+1
2019-06-20remove uses of the NodeId hir::map::exprljedrz-6/+0
2019-06-20remove definitions::def_index_to_node_id (unused)ljedrz-5/+0
2019-06-20make hir::def_kind work with HirIdljedrz-5/+5
2019-06-20rename hir::map::name_by_hir_id to ::nameljedrz-2/+2
2019-06-20remove hir::map::nameljedrz-7/+0
2019-06-19rustc: disallow cloning HIR nodes.Eduard-Mihai Burtescu-5/+5
2019-06-18rustc: remove 'x: 'y bounds (except from comments/strings).Eduard-Mihai Burtescu-6/+6
2019-06-17change NodeId to HirId in some HIR docsljedrz-5/+5
2019-06-17simplify ICE handling in HirIdValidatorljedrz-12/+0
2019-06-17fix a HIR doc, simplify one HIR-related function callljedrz-1/+1
2019-06-17renamve hir_to_string to node_to_stringljedrz-18/+18
2019-06-17remove _by_hir_id if there is no NodeId counterpartljedrz-14/+14
2019-06-17replace some uses of NodeId with HirIdljedrz-93/+8
2019-06-11Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-1/+2
2019-06-11rustc: deny(unused_lifetimes).Eduard-Mihai Burtescu-1/+1
2019-06-10Rollup merge of #59600 - tobia:master, r=pnkfelixMazdak Farrokhzad-2/+10
Replaced linear token counting macros with optimized implementation There are currently two distinct token-counting macros in the source. Both implement the trivial algorithm, with linear complexity. They may or may not be adequate for their use case, but considering that other people are probably going to copy and paste them whenever they need a token-counting macro, I replaced them with an optimized implementation with logarithmic complexity.
2019-06-06syntax: Use `Token` in visitors and fix a mut visitor testVadim Petrochenkov-3/+3
2019-06-06syntax: Rename `Token` into `TokenKind`Vadim Petrochenkov-2/+2
2019-06-06Always use token kinds through `token` module rather than `Token` typeVadim Petrochenkov-1/+1
2019-06-05Addressed points raised in review.Alexander Regueiro-9/+9
2019-06-05Implemented for function bounds, type bounds, and named existential types.Alexander Regueiro-19/+69
2019-06-05Aggregation of drive-by cosmetic changes.Alexander Regueiro-43/+44
2019-06-03rustc: remove `HirId` from `ArgSource::AsyncFn`David Wood-13/+0
This commit removes the `HirId` from `ArgSource::AsyncFn`, relying on the fact that only `simple_ident` is used in each of the locations that previously took the original pattern from the `ArgSource::AsyncFn`.
2019-06-03rustc: async fn drop order lowering in HIRDavid Wood-0/+13
This commit re-implements the async fn drop order lowering changes so that it all takes place in HIR lowering, building atop the work done by `@eddyb` to refactor `Res::Upvar`. Previously, this types involved in the lowering were constructed in libsyntax as they had to be used during name resolution and HIR lowering. This was awful because none of that logic should have existed in libsyntax. This commit also changes `ArgSource` to keep a `HirId` to the original argument pattern rather than a cloned copy of the pattern.
2019-06-03syntax: revert `ast::AsyncArgument` and associated changes.Eduard-Mihai Burtescu-32/+9
Here follows the main reverts applied in order to make this commit: Revert "Rollup merge of #60676 - davidtwco:issue-60674, r=cramertj" This reverts commit 45b09453dbf120cc23d889435aac3ed7d2ec8eb7, reversing changes made to f6df1f6c30b469cb9e65c5453a0efa03cbb6005e. Revert "Rollup merge of #60437 - davidtwco:issue-60236, r=nikomatsakis" This reverts commit 16939a50ea440e72cb6ecefdaabb988addb1ec0e, reversing changes made to 12bf98155249783583a91863c5dccf9e346f1226. Revert "Rollup merge of #59823 - davidtwco:issue-54716, r=cramertj" This reverts commit 62d1574876f5531bce1b267e62dff520d7adcbbb, reversing changes made to 4eff8526a789e0dfa8b97f7dec91b7b5c18e8544.
2019-06-02Auto merge of #61460 - Centril:rollup-8txhjx4, r=Centrilbors-4/+0
Rollup of 6 pull requests Successful merges: - #61380 (Fix some issues with `unwrap_usize` instead of `assert_usize`) - #61423 (codegen: change `$6d$` to `$u6d$`) - #61438 (Point at individual type args on arg count mismatch) - #61441 (Tweak wording when encountering `fn` call in pattern) - #61451 (Fix missing semicolon in doc) - #61458 (Fix typo in AsRef doc) Failed merges: r? @ghost
2019-06-01rustc: collect upvars from HIR, instead of during name resolution.Eduard-Mihai Burtescu-8/+10
2019-05-31Make generics always have a valid spanEsteban Küber-4/+0
2019-05-28Auto merge of #60955 - agnxy:rename-assoc, r=oli-obk,Centrilbors-5/+5
Rename "Associated*" to "Assoc*" This change is for #60163. r? @oli-obk
2019-05-27Pre-intern "0", "1", ..., "9", and use where appropriate.Nicholas Nethercote-3/+2
2019-05-26Rename "Associated*" to "Assoc*"Andrew Xu-5/+5
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-25Auto-derive Encode and Decode implementationsFabian Drinck-25/+1
2019-05-23Auto merge of #60174 - matthewjasper:add-match-arm-scopes, r=pnkfelixbors-0/+17
Add match arm scopes and other scope fixes * Add drop and lint scopes for match arms. * Lint attributes are now respected on match arms. * Make sure we emit a StorageDead if we diverge when initializing a temporary. * Adjust MIR pretty printing of scopes for locals. * Don't generate duplicate lint scopes for `let statements`. * Add some previously missing fake borrows for matches. closes #46525 cc @rust-lang/compiler
2019-05-22Eliminate unnecessary `Ident::with_empty_ctxt`sVadim Petrochenkov-1/+1
2019-05-22Simplify use of keyword symbolsVadim Petrochenkov-3/+3
2019-05-21Give match arms an HirId and a SpanMatthew Jasper-0/+17
2019-05-20Ban multi-trait objects via trait aliases.Alexander Regueiro-1/+1
2019-05-18Declare DefIndex with the newtype_index macroFabian Drinck-12/+12
2019-05-17Avoid unnecessary interning in `DefPathData::as_interned_str()`.Nicholas Nethercote-9/+9
2019-05-13Remove the equality operation between `Symbol` and strings.Nicholas Nethercote-2/+2
And also the equality between `Path` and strings, because `Path` is made up of `Symbol`s.
2019-05-09Rollup merge of #60647 - petrochenkov:nospace, r=michaelwoeristerMazdak Farrokhzad-170/+86
cleanup: Remove `DefIndexAddressSpace` The scheme with two address spaces for `DefIndex` was needed in the past, but apparently not needed anymore (after removing `DefId`s from locals and `HirId`-ification).
2019-05-09Fix typoJohn Kåre Alsaker-2/+2
2019-05-09cleanup: Remove `DefIndexAddressSpace`Vadim Petrochenkov-170/+86
2019-05-08Rename HirMap to HirEntryMap and add some commentsJohn Kåre Alsaker-8/+23
2019-05-08Optimize HIR mapJohn Kåre Alsaker-52/+80
2019-05-06Auto merge of #60337 - fabric-and-ink:hiridification, r=Zoxcbors-57/+33
A bit of HirIdification A small contribution to #50928.
2019-05-05Auto merge of #60525 - eddyb:namespaces-not-kinds, r=petrochenkovbors-63/+21
rustc: collapse relevant DefPathData variants into {Type,Value,Macro,Lifetime}Ns. `DefPathData` was meant to disambiguate within each namespace, but over the years, that purpose was overlooked, and it started to serve a double-role as a sort of `DefKind` (which #60462 properly adds). Now, we can go back to *only* categorizing namespaces (at least for the variants with names in them). r? @petrochenkov or @nikomatsakis cc @michaelwoerister
2019-05-04Remove `def_path_from_id`, `node_id_to_string`Fabian Drinck-31/+20
2019-05-04Replace `NodeId` variant of `read`Fabian Drinck-17/+13