about summary refs log tree commit diff
path: root/src/librustc_front/util.rs
AgeCommit message (Collapse)AuthorLines
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-362/+0
2016-03-21Expose attached attributes to `FnKind` abstraction so that I can look at ↵Felix S. Klock II-3/+3
them in borrowck.
2016-03-02Move span into `StructField`Vadim Petrochenkov-1/+1
+ some cleanup in rustdoc
2016-02-16Split PatKind::Enum into PatKind::TupleStruct and PatKind::PathVadim Petrochenkov-2/+3
2016-02-14Rename hir::Pat_ and its variantsVadim Petrochenkov-11/+11
2016-02-12Make more use of autoderef in librustc_frontJonas Schievink-8/+8
2015-12-19Improve OwnedSlice and use it in HIRVadim Petrochenkov-3/+3
2015-12-18Abstract away differences between Vec and ptr::P in HIRVadim Petrochenkov-5/+5
2015-12-18Deprecate name `OwnedSlice` and don't use itVadim Petrochenkov-4/+3
2015-12-05Do MTWT resolution during lowering to HIRVadim Petrochenkov-1/+1
2015-11-18Refactor the HIR so that items are stored in a map in the `Crate`,Niko Matsakis-50/+44
rather being stored inline. Refactor (and rename) the visitor so that (by default) it only visits the interior content of an item not nested items. This is a [breaking-change] for anyone who uses the HIR visitor. Besides changing `visit::` to `intravisit::`, you need to refactor your visitor in one of two ways, depending on what it requires: 1. If you just want to visit all items (most common), you should call `krate.visit_all_items(&mut visitor)`. 2. If you need to visit nested items in the middle of the parent items, you should override `visit_nested_item` with something like: `self.visit_item(self.tcx.map.expect_item(item.id))`, presuming you have access to a tcx (or at least a HIR map).
2015-11-09Rustfmting librustc_front (again).Jose Narvaez-6/+6
2015-10-31Remove PatWildMultiVadim Petrochenkov-1/+1
2015-10-13Merge VariantData and VariantData_Vadim Petrochenkov-1/+1
2015-10-13Dict -> Struct, StructDef -> VariantData, def -> dataVadim Petrochenkov-2/+2
2015-10-13Provide span for visit_struct_def + remove some dead codeVadim Petrochenkov-1/+2
2015-10-13Remove now redundant NodeId from VariantVadim Petrochenkov-7/+1
2015-10-13Decouple structure kinds from NodeIdsVadim Petrochenkov-7/+1
2015-10-06rustfmt librustc_frontNick Cameron-46/+53
2015-09-29Fill in some missing parts in the default HIR visitorVadim Petrochenkov-2/+2
2015-09-26Auto merge of #28642 - petrochenkov:name3, r=nrcbors-2/+2
This PR removes random remaining `Ident`s outside of libsyntax and performs general cleanup In particular, interfaces of `Name` and `Ident` are tidied up, `Name`s and `Ident`s being small `Copy` aggregates are always passed to functions by value, and `Ident`s are never used as keys in maps, because `Ident` comparisons are tricky. Although this PR closes https://github.com/rust-lang/rust/issues/6993 there's still work related to it: - `Name` can be made `NonZero` to compress numerous `Option<Name>`s and `Option<Ident>`s but it requires const unsafe functions. - Implementation of `PartialEq` on `Ident` should be eliminated and replaced with explicit hygienic, non-hygienic or member-wise comparisons. - Finally, large parts of AST can potentially be converted to `Name`s in the same way as HIR to clearly separate identifiers used in hygienic and non-hygienic contexts. r? @nrc
2015-09-24Remove the deprecated box(PLACE) syntax.Eduard Burtescu-4/+3
2015-09-23Remove random Idents outside of libsyntaxVadim Petrochenkov-2/+2
2015-09-22Use Names in HIR visitors and foldersVadim Petrochenkov-2/+2
2015-09-16Use ast attributes every where (remove HIR attributes).Nick Cameron-54/+0
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/+427