about summary refs log tree commit diff
path: root/src/librustc/front/map/mod.rs
AgeCommit message (Collapse)AuthorLines
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-1128/+0
2016-03-31librustc: replace panic!() with bug!()Benjamin Herr-20/+20
2016-03-30Clean up the privacy visitorJeffrey Seyfried-8/+0
2016-03-25add krate_attrs accessorNiko Matsakis-1/+10
makes better edges in dep graph
2016-03-25track def-id for inlined itemsNiko Matsakis-2/+6
2016-03-17hir_map: Provide expression and statement attributes.Eduard Burtescu-0/+3
2016-02-26Lay the groundwork for privacy checking in typeckJeffrey Seyfried-0/+24
2016-02-18Fix a weird case in the HIR map, where fields are not present in theNiko Matsakis-1/+11
map. Perhaps I ought to just add them instead, but this seems harmless enough.
2016-02-14Rename hir::Pat_ and its variantsVadim Petrochenkov-1/+1
2016-02-12Autoderef in librustcJonas Schievink-15/+15
2016-02-11[breaking-change] don't glob import/export syntax::abi enum variantsOliver Schneider-3/+3
2016-02-05Address nits.Niko Matsakis-5/+5
2016-02-05Instrument the AST map so that it registers reads when data isNiko Matsakis-11/+89
acccessed.
2015-12-22Fix def paths creation for items inlined from external crates.Michael Woerister-6/+5
Avoid duplicating the last element of the def path which led to paths like "std::slice::into_vec::into_vec".
2015-12-07Remove some unnecessary indirection from HIR structuresVadim Petrochenkov-3/+3
2015-11-26split the metadata code into rustc_metadataAriel Ben-Yehuda-2/+2
tests & rustdoc still broken
2015-11-18Port the `map` construction code to use the new visitor.Niko Matsakis-5/+8
2015-11-16ImplItem_ -> ImplItemKind renameOliver Schneider-3/+3
2015-11-16rename ImplItem_::*ImplItem to ImplItem_::*Oliver Schneider-3/+3
[breaking change]
2015-11-13simplify HIR folder so that it only maps 1 item to 1 item,Niko Matsakis-3/+3
removing a bunch of asserts
2015-10-27Remove NodeArgSeo Sanghyeon-10/+1
2015-10-27Distinguish argument from local variableSeo Sanghyeon-0/+21
2015-10-14Rollup merge of #29006 - arielb1:callee-outlives-call, r=pnkfelixManish Goregaokar-1/+4
This rather crucial requirement was not checked. In most cases, that didn't cause any trouble because the argument types are required to outlive the call and are subtypes of a subformula of the callee type. However, binary ops are taken by ref only indirectly, without it being marked in the argument types, which led to the argument types not being constrained anywhere causing spurious errors (as these are basically unconstrainable, I don't think this change can break code). Of course, the old way was also incorrent with contravariance, but that is still unsound for other reasons. This also improves rustc::front to get RUST_LOG to *somewhat* work. Fixes #28999. That issue is one of the several regression introduced by #28669. r? @pnkfelix
2015-10-13Merge struct fields and struct kindVadim Petrochenkov-3/+4
2015-10-13Dict -> Struct, StructDef -> VariantData, def -> dataVadim Petrochenkov-5/+5
2015-10-13Decouple structure kinds from NodeIdsVadim Petrochenkov-2/+2
2015-10-13Unify structures and enum variants in HIRVadim Petrochenkov-3/+3
2015-10-12require a method callee's type to outlive the callAriel Ben-Yehuda-1/+4
This rather crucial requirement was not checked. In most cases, that didn't cause any trouble because the argument types are required to outlive the call and are subtypes of a subformula of the callee type. However, binary ops are taken by ref only indirectly, without it being marked in the argument types, which led to the argument types not being constrained anywhere causing spurious errors (as these are basically unconstrainable, I don't think this change can break code). Of course, the old way was also incorrent with contravariance, but that is still unsound for other reasons. This also improves rustc::front to get RUST_LOG to *somewhat* work. Fixes #28999
2015-10-08typos: fix a grabbag of typos all over the placeCristi Cobzarenco-1/+1
2015-10-01remove support method for synthetic default method idsNiko Matsakis-16/+0
2015-10-01Convert DefId to use DefIndex, which is an index into a list ofNiko Matsakis-25/+43
paths, and construct paths for all definitions. Also, stop rewriting DefIds for closures, and instead just load the closure data from the original def-id, which may be in another crate.
2015-10-01build up a set of node-ids that we can construct def-ids fromNiko Matsakis-214/+44
2015-10-01move direct accesses of `node` to go through `as_local_node_id`, unlessNiko Matsakis-3/+11
they are being used as an opaque "position identifier"
2015-10-01move job of creating local-def-ids to ast-map (with a few stragglers)Niko Matsakis-1/+15
2015-09-29Fill in some missing parts in the default HIR visitorVadim Petrochenkov-2/+2
2015-09-22Use Names in the remaining HIR structures with exception of...Vadim Petrochenkov-2/+2
PathSegment, PatIdent, ExprWhile, ExprLoop, ExprBreak and ExprAgain - they need Idents for resolve
2015-09-22Use Names in HIR ItemsVadim Petrochenkov-19/+19
2015-09-16Use ast attributes every where (remove HIR attributes).Nick Cameron-2/+2
This could be a [breaking-change] if your lint or syntax extension (is that even possible?) uses HIR attributes or literals.
2015-09-03Add an intital HIR and lowering stepNick Cameron-0/+1136