Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9aaf26e

Browse files
committedNov 28, 2016
rustc: rework stability to be on-demand for type-directed lookup.
1 parent f97c132 commit 9aaf26e

File tree

97 files changed

+1774
-858
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+1774
-858
lines changed
 

‎src/etc/generate-deriving-span-tests.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
3838
// This file was auto-generated using 'src/etc/generate-deriving-span-tests.py'
3939
40-
extern crate rand;
41-
4240
{error_deriving}
4341
struct Error;
4442
{code}
@@ -106,7 +104,6 @@ def write_file(name, string):
106104
ALL = STRUCT | ENUM
107105

108106
traits = {
109-
'Zero': (STRUCT, [], 1),
110107
'Default': (STRUCT, [], 1),
111108
'FromPrimitive': (0, [], 0), # only works for C-like enums
112109

@@ -116,7 +113,7 @@ def write_file(name, string):
116113

117114
for (trait, supers, errs) in [('Clone', [], 1),
118115
('PartialEq', [], 2),
119-
('PartialOrd', ['PartialEq'], 8),
116+
('PartialOrd', ['PartialEq'], 9),
120117
('Eq', ['PartialEq'], 1),
121118
('Ord', ['Eq', 'PartialOrd', 'PartialEq'], 1),
122119
('Debug', [], 1),

‎src/librustc/dep_graph/dep_node.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ pub enum DepNode<D: Clone + Debug> {
9090
RvalueCheck(D),
9191
Reachability,
9292
DeadCheck,
93-
StabilityCheck,
93+
StabilityCheck(D),
9494
LateLintCheck,
9595
TransCrate,
9696
TransCrateItem(D),
@@ -189,7 +189,6 @@ impl<D: Clone + Debug> DepNode<D> {
189189
Privacy => Some(Privacy),
190190
Reachability => Some(Reachability),
191191
DeadCheck => Some(DeadCheck),
192-
StabilityCheck => Some(StabilityCheck),
193192
LateLintCheck => Some(LateLintCheck),
194193
TransCrate => Some(TransCrate),
195194
TransWriteMetadata => Some(TransWriteMetadata),
@@ -217,6 +216,7 @@ impl<D: Clone + Debug> DepNode<D> {
217216
Mir(ref d) => op(d).map(Mir),
218217
BorrowCheck(ref d) => op(d).map(BorrowCheck),
219218
RvalueCheck(ref d) => op(d).map(RvalueCheck),
219+
StabilityCheck(ref d) => op(d).map(StabilityCheck),
220220
TransCrateItem(ref d) => op(d).map(TransCrateItem),
221221
TransInlinedItem(ref d) => op(d).map(TransInlinedItem),
222222
AssociatedItems(ref d) => op(d).map(AssociatedItems),

0 commit comments

Comments
 (0)
Please sign in to comment.