Eduard-Mihai Burtescu
864928297d
rustc: separate TraitItem from their parent Item, just like ImplItem.
2016-12-28 11:21:45 +02:00
Jeffrey Seyfried
a2626410d7
Refactor MetaItemKind
to use Name
s instead of InternedString
s.
2016-11-20 11:46:06 +00:00
Niko Matsakis
7918299bf0
fix dep-graph checking to account for implitems
2016-11-16 13:57:45 -05:00
Niko Matsakis
3fd67eba87
fallout from separating impl-items from impls
...
Basically adding `visit_impl_item` in various places and so forth.
2016-11-16 13:57:43 -05:00
Niko Matsakis
36fbf8c53c
refactor Visitor into ItemLikeVisitor and intravisit::Visitor
...
There are now three patterns (shallow, deep, and nested visit). These
are described in detail on the docs in `itemlikevisit::ItemLikeVisitor`.
2016-11-16 13:51:36 -05:00
Nicholas Nethercote
00e48affde
Replace FnvHasher use with FxHasher.
...
This speeds up compilation by 3--6% across most of rustc-benchmarks.
2016-11-08 15:14:59 +11:00
Michael Woerister
6a2666d5b0
ICH: Add ability to test the ICH of exported metadata items.
2016-09-23 17:23:23 -04:00
Niko Matsakis
2a84449169
allow testing DepNode::Krate edges directly
2016-09-06 11:18:09 -04:00
Vadim Petrochenkov
e05e74ac83
Replace _, _
with ..
2016-09-04 12:30:33 +03:00
Jeffrey Seyfried
bfb01bbb26
Refactor away AttrMetaMethods
.
2016-08-25 20:41:40 +00:00
Jeffrey Seyfried
4eb08bb2ab
Refactor away AttrNestedMetaItemMethods
.
2016-08-25 20:41:32 +00:00
Sergio Benitez
8250a26b5b
Implement RFC#1559: allow all literals in attributes.
2016-08-25 13:25:22 -07:00
Niko Matsakis
bfbfe639b1
skip assert-dep-graph unless unit testing
...
this can actually be expensive!
2016-08-03 19:33:51 -04:00
cgswords
5553901146
Adressed PR comments.
2016-07-25 14:27:10 -07:00
cgswords
a5e5ea1646
General MetaItem encapsulation rewrites.
2016-07-25 14:27:10 -07:00
Jonathan Turner
6ae3502134
Move errors from libsyntax to its own crate
2016-06-23 08:07:35 -04:00
Niko Matsakis
63bb0847bd
expand DepNode::TraitSelect
to include type ids
...
To handle the general case, we include a vector of def-ids, so that we
can account for things like `(Foo, Bar)` which references both `Foo` and
`Bar`. This means it is not Copy, so re-jigger some APIs to use
borrowing more intelligently.
2016-05-31 19:59:57 -04:00
Niko Matsakis
303fdc17f6
cleanup dep-graph debugging code
...
Create some re-usable filtering subroutines.
2016-05-18 10:11:36 -04:00
Niko Matsakis
f89041bbe3
identify inputs of MetaData(X)
nodes
...
Generate a second hash file that contains the metadata for an X node.
2016-05-18 10:11:35 -04:00
Eduard Burtescu
76affa5d6f
rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users.
2016-05-11 04:14:58 +03:00
Eduard Burtescu
513d392f7e
rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.
2016-05-11 04:14:58 +03:00
Niko Matsakis
b1e68b9e2d
make an incremental crate
...
for now, this houses `svh` and the code to check `assert_dep_graph` is
sane
2016-04-06 12:42:02 -04:00