about summary refs log tree commit diff
path: root/src/librustc/hir/map
AgeCommit message (Collapse)AuthorLines
2016-08-12typeck: record `impl Trait` concrete resolutions.Eduard Burtescu-0/+20
2016-08-12rustc: add TyAnon (impl Trait) to the typesystem.Eduard Burtescu-0/+12
2016-08-09pacify the mercilous tidyNiko Matsakis-2/+4
2016-08-09add a `deterministic_hash` method to `DefPath`Niko Matsakis-0/+13
Produces a deterministic hash, at least for a single platform / compiler-version.
2016-08-09replace Name with InternedString in DefPathDataNiko Matsakis-52/+52
Fixes #35292.
2016-08-02replace graph rewriting with detecting inlined idsNiko Matsakis-49/+90
We now detect inlined id's earlier (in the HIR map) and rewrite a read of them to be a read of the metadata for the associated item.
2016-08-02make metadata hashes determinsticNiko Matsakis-0/+24
When we hash the inputs to a MetaData node, we have to hash them in a consistent order. We achieve this by sorting the stringfied `DefPath` entries. Also, micro-optimie by cache more results across the saving process.
2016-08-02remap Hir(InlinedDefId) to MetaData(OriginalDefId)Niko Matsakis-5/+15
The way we do HIR inlining introduces reads of the "Hir" into the graph, but this Hir in fact belongs to other crates, so when we try to load later, we ICE because the Hir nodes in question don't belond to the crate (and we haven't done inlining yet). This pass rewrites those HIR nodes to the metadata from which the inlined HIR was loaded.
2016-08-01Move caching of HIR-inlining into CStore in order to avoid duplicating ↵Michael Woerister-5/+57
inlined HIR.
2016-07-29intravisit: Fold functionality of IdVisitor into the regular Visitor.Michael Woerister-1/+1
2016-06-28groundwork: create the `Resolver` earlier in phase 2Jeffrey Seyfried-14/+12
2016-06-26Rollup merge of #34339 - jseyfried:thin_vec, r=petrochenkov,ManishearthJeffrey Seyfried-8/+2
Generalize and abstract `ThinAttributes` to `ThinVec<Attribute>`.
2016-06-26Rollup merge of #33943 - jseyfried:libsyntax_cleanup, r=nrcJeffrey Seyfried-12/+12
Miscellaneous low priority cleanup in `libsyntax`.
2016-06-25Rollup merge of #34403 - jonathandturner:move_liberror, r=alexcrichtonJeffrey Seyfried-3/+4
This PR refactors the 'errors' part of libsyntax into its own crate (librustc_errors). This is the first part of a few refactorings to simplify error reporting and potentially support more output formats (like a standardized JSON output and possibly an --explain mode that can work with the user's code), though this PR stands on its own and doesn't assume further changes. As part of separating out the errors crate, I have also refactored the code position portion of codemap into its own crate (libsyntax_pos). While it's helpful to have the common code positions in a separate crate for the new errors crate, this may also enable further simplifications in the future.
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-3/+4
2016-06-19Generalize and abstract `ThinAttributes`Jeffrey Seyfried-8/+2
2016-06-14Remove the type parameter from `syntax::visit::Visitor`Jeffrey Seyfried-12/+12
2016-06-13Add support for macro expansion inside trait itemsJoseph Dunne-0/+1
2016-05-28Separate bindings from other patterns in HIRVadim Petrochenkov-3/+3
2016-05-21Improve internal documentation and code styleTicki-7/+35
Fix some code layout, remove some unnecessary returns, fix typos, punctuation, and comment consistency.
2016-05-18allow retracing paths across cratesNiko Matsakis-35/+9
For external crates, we must build up a map that goes from the DefKey to the DefIndex. We do this by iterating over each index that is found in the metadata and loading the associated DefKey.
2016-05-18thread the DepGraph to session/crate-storeNiko Matsakis-2/+2
This is a [breaking-change] for plugin authors. You must now create a dep-graph earlier.
2016-05-16Remove hir::IdentVadim Petrochenkov-5/+3
2016-05-11Hand ownership of the Definitions to map_crate.Ms2ger-3/+3
2016-05-09Move resolution to before loweringJeffrey Seyfried-0/+4
2016-05-07mir: build MIR for constants and static initializers.Eduard Burtescu-14/+68
2016-04-24thread tighter span for closures aroundNiko Matsakis-1/+1
Track the span corresponding to the `|...|` part of the closure.
2016-04-20rebasingNick Cameron-2/+2
2016-04-20debugging, misc fixesNick Cameron-30/+31
2016-04-20HIR visitor for DefCollectorNick Cameron-14/+175
So that we can work with inlined HIR from metadata.
2016-04-20refactoringNick Cameron-141/+111
2016-04-20def_collector and crate reader operate on AST instead of HIRNick Cameron-60/+60
And move extern crate reading earlier in the driver
2016-04-20Separate def collection and hir map making even furtherNick Cameron-32/+21
2016-04-20Move DefCollector to its own module.Nick Cameron-247/+266
2016-04-20Split up NodeCollector so that defs are collected separately from nodes for ↵Nick Cameron-119/+242
the HIR map.
2016-04-15Add initial version of codegen unit partitioning for incremental compilation.Michael Woerister-2/+5
2016-04-07Auto merge of #32016 - nikomatsakis:incr-comp-save, r=mwbors-1/+50
Save/load incremental compilation dep graph Contains the code to serialize/deserialize the dep graph to disk between executions. We also hash the item contents and compare to the new hashes. Also includes a unit test harness. There are definitely some known limitations, such as https://github.com/rust-lang/rust/issues/32014 and https://github.com/rust-lang/rust/issues/32015, but I am leaving those for follow-up work. Note that this PR builds on https://github.com/rust-lang/rust/pull/32007, so the overlapping commits can be excluded from review. r? @michaelwoerister
2016-04-07Use the node id from the `Restricted` variant when checking accessibilityJeffrey Seyfried-12/+0
in `typeck` and in `privacy::PrivacyVisitor`.
2016-04-07Make `hir::Visibility` non-copyable and add `ty::Visibility`Jeffrey Seyfried-5/+5
2016-04-06add function to retrace a DefPath to a DefIdNiko Matsakis-0/+49
used after loading state from previous compilation
2016-04-06break dep-graph into modules, parameterize DepNodeNiko Matsakis-1/+1
it is useful later to customize how change the type we use for reference items away from DefId
2016-04-06rustc: retire hir::map's paths.Eduard Burtescu-190/+52
2016-04-06rustc: move middle::{def,def_id,pat_util} to hir.Eduard Burtescu-3/+3
2016-04-06rustc: dismantle hir::util, mostly moving functions to methods.Eduard Burtescu-1/+1
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-0/+2024