about summary refs log tree commit diff
path: root/src/librustc/hir/map
AgeCommit message (Collapse)AuthorLines
2016-11-29Remove unused importFlorian Diebold-1/+0
2016-11-29Fix some commentsFlorian Diebold-6/+3
2016-11-29Give function bodies their own dep graph nodeFlorian Diebold-2/+50
2016-11-29Save bodies of functions for inlining into other cratesFlorian Diebold-10/+37
This is quite hacky and I hope to refactor it a bit, but at least it seems to work.
2016-11-29rustc: replace body exprs by their idsFlorian Diebold-17/+32
2016-11-28rustc: track fields in the HIR map.Eduard Burtescu-0/+25
2016-11-28rustc: embed path resolutions into the HIR instead of keeping DefMap.Eduard-Mihai Burtescu-2/+2
2016-11-28rustc: desugar `use a::{b,c};` into `use a::b; use a::c;` in HIR.Eduard-Mihai Burtescu-21/+16
2016-11-28rustc: track hir::{TraitRef, Visibility} in the HIR map.Eduard Burtescu-10/+49
2016-11-21Auto merge of #37824 - jseyfried:symbols, r=eddybbors-44/+24
Clean up `ast::Attribute`, `ast::CrateConfig`, and string interning This PR - removes `ast::Attribute_` (changing `Attribute` from `Spanned<Attribute_>` to a struct), - moves a `MetaItem`'s name from the `MetaItemKind` variants to a field of `MetaItem`, - avoids needlessly wrapping `ast::MetaItem` with `P`, - moves string interning into `syntax::symbol` (`ast::Name` is a reexport of `symbol::Symbol` for now), - replaces `InternedString` with `Symbol` in the AST, HIR, and various other places, and - refactors `ast::CrateConfig` from a `Vec` to a `HashSet`. r? @eddyb
2016-11-21Stabilize RFC 1560.Jeffrey Seyfried-3/+1
2016-11-21Cleanup `InternedString`.Jeffrey Seyfried-35/+15
2016-11-21Use `Symbol` instead of `InternedString` in the AST, HIR, and various other ↵Jeffrey Seyfried-4/+4
places.
2016-11-20Move `syntax::util::interner` -> `syntax::symbol`, cleanup.Jeffrey Seyfried-5/+5
2016-11-16include a Name and Span for each item in the HIR of the implNiko Matsakis-2/+2
2016-11-16add a `nested_visit_map` methodNiko Matsakis-0/+5
This allows you to enable *all* nested visits in a future-compatible sort of way. Moreover, if you choose to override the `visit_nested` methods yourself, you can "future-proof" against omissions by overriding `nested_visit_map` to panic.
2016-11-16make distinct Hir() nodes in the graph for impl itemsNiko Matsakis-2/+6
2016-11-16fallout from separating impl-items from implsNiko Matsakis-0/+4
Basically adding `visit_impl_item` in various places and so forth.
2016-11-16separate impl-items from the impl in the HIRNiko Matsakis-0/+9
This commit does not change how the incremental accounting is done, so changes (or accessses) to an impl-item are still tagged to the enclosing impl. This commits adds the "main guts" of this change. It does not build on its own.
2016-11-10Improve macro reexports.Jeffrey Seyfried-0/+4
2016-11-10rustc: use an Expr instead of a Block for function bodies.Eduard Burtescu-22/+23
2016-11-08Replace FnvHasher use with FxHasher.Nicholas Nethercote-3/+3
This speeds up compilation by 3--6% across most of rustc-benchmarks.
2016-10-03Auto merge of #36815 - alexcrichton:stabilize-1.13, r=aturonbors-2/+3
std: Stabilize and deprecate APIs for 1.13 This commit is intended to be backported to the 1.13 branch, and works with the following APIs: Stabilized * `i32::checked_abs` * `i32::wrapping_abs` * `i32::overflowing_abs` * `RefCell::try_borrow` * `RefCell::try_borrow_mut` Deprecated * `BinaryHeap::push_pop` * `BinaryHeap::replace` * `SipHash13` * `SipHash24` * `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map` module Closes #28147 Closes #34767 Closes #35057 Closes #35070
2016-10-03std: Stabilize and deprecate APIs for 1.13Alex Crichton-2/+3
This commit is intended to be backported to the 1.13 branch, and works with the following APIs: Stabilized * `i32::checked_abs` * `i32::wrapping_abs` * `i32::overflowing_abs` * `RefCell::try_borrow` * `RefCell::try_borrow_mut` * `DefaultHasher` * `DefaultHasher::new` * `DefaultHasher::default` Deprecated * `BinaryHeap::push_pop` * `BinaryHeap::replace` * `SipHash13` * `SipHash24` * `SipHasher` - use `DefaultHasher` instead in the `std::collections::hash_map` module Closes #28147 Closes #34767 Closes #35057 Closes #35070
2016-10-03Auto merge of #36767 - jseyfried:enforce_rfc_1560_shadowing, r=nrcbors-2/+3
Enforce the shadowing restrictions from RFC 1560 for today's macros This PR enforces a weakened version of the shadowing restrictions from RFC 1560. More specifically, - If a macro expansion contains a `macro_rules!` macro definition that is used outside of the expansion, the defined macro may not shadow an existing macro. - If a macro expansion contains a `#[macro_use] extern crate` macro import that is used outside of the expansion, the imported macro may not shadow an existing macro. This is a [breaking-change]. For example, ```rust macro_rules! m { () => {} } macro_rules! n { () => { macro_rules! m { () => {} } //< This shadows an existing macro. m!(); //< This is inside the expansion that generated `m`'s definition, so it is OK. } } n!(); m!(); //< This use of `m` is outside the expansion, so it causes the shadowing to be an error. ``` r? @nrc
2016-10-02Refactor field `expansion_data` of `Resolver` to use a `Mark` instead of a ↵Jeffrey Seyfried-2/+3
`u32`.
2016-10-01Rollup merge of #36599 - ↵Manish Goregaokar-2/+2
jonas-schievink:whats-a-pirates-favorite-data-structure, r=pnkfelix Contains a syntax-[breaking-change] as a separate commit (cc #31645).nnAlso renames slice patterns from `PatKind::Vec` to `PatKind::Slice`.
2016-09-28libsyntax: clearer names for some AST partsJonas Schievink-1/+1
This applies the HIR changes from the previous commits to the AST, and is thus a syntax-[breaking-change] Renames `PatKind::Vec` to `PatKind::Slice`, since these are called slice patterns, not vec patterns. Renames `TyKind::Vec`, which represents the type `[T]`, to `TyKind::Slice`. Renames `TyKind::FixedLengthVec` to `TyKind::Array`.
2016-09-28Call arrays "arrays" instead of "vecs" internallyJonas Schievink-1/+1
2016-09-28Rollup merge of #36376 - GuillaumeGomez:e0050, r=jonathandturnerJonathan Turner-1/+1
Update E0050 to new error format Part of #35233. Fixes #35211. r? @jonathandturner
2016-09-28Update E0050 to new error formatGuillaume Gomez-1/+1
2016-09-27Fix def id collection for `const_integer`s in the AST.Jeffrey Seyfried-21/+30
2016-09-27Peform def id assignment during expansion.Jeffrey Seyfried-39/+58
2016-09-22Split up `DefCollector::root()`.Jeffrey Seyfried-21/+15
2016-09-20rustc: don't hash the --extern crate name, but the original one, in DefPath.Eduard Burtescu-6/+2
2016-09-20rustc: don't recurse through nested items in decoded HIR fragments.Eduard Burtescu-10/+9
2016-09-20rustc_metadata: move opt_item_name to TyCtxt::item_name.Eduard Burtescu-1/+25
2016-09-20rustc_metadata: move more RBML tags to auto-serialization.Eduard Burtescu-10/+12
2016-09-20rustc_metadata: go only through rustc_serialize in astencode.Eduard Burtescu-97/+22
2016-09-06ignore dep-graph when loading inlined HIRNiko Matsakis-0/+2
We touch the krate to adjust the maps, but we don't expose that data widely.
2016-09-04Replace `_, _` with `..`Vadim Petrochenkov-1/+1
2016-09-03Some better support for unions through the compilerVadim Petrochenkov-1/+2
2016-09-03Add unions to HIRVadim Petrochenkov-3/+4
2016-08-29Future proof the AST for `union`.Jeffrey Seyfried-2/+2
2016-08-28Rollup merge of #35480 - KiChjang:e0379-bonus, r=nikomatsakisJeffrey Seyfried-3/+3
Move E0379 check from typeck to ast validation Part of #35233. Extension of #35338, #35364. Fixes #35404.
2016-08-28Rollup merge of #35618 - jseyfried:ast_view_path_refactor, r=eddybJeffrey Seyfried-1/+1
Refactor `PathListItem`s This refactors away variant `Mod` of `ast::PathListItemKind` and refactors the remaining variant `Ident` to a struct `ast::PathListItem_`.
2016-08-27Change Constness to Spanned<Constness>Keith Yeung-3/+3
2016-08-24Remove AST from metadata except for consts and const fns.Eduard Burtescu-4/+1
2016-08-21Refactor away variant `hir::PathListItem_::Mod`Jeffrey Seyfried-1/+1
and refacotor `hir::PathListItem_::Ident` -> `hir::PathListItem_`.
2016-08-17Display secondary span for E0053 for Sort TypeErrorsKeith Yeung-0/+7