diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-05 18:42:34 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-05 18:42:34 -0800 |
| commit | cf8a11e98bf3871cf3475913fd68187784b542a3 (patch) | |
| tree | 656a2f3aacc54d4e645695a3f22df1e8d1249d13 /src/libsyntax | |
| parent | f3ad232022eeb0f0399ce433de677133d9df3ade (diff) | |
| parent | 6e68fd09edc7ed37fd76f703247b5410cd338bfe (diff) | |
| download | rust-cf8a11e98bf3871cf3475913fd68187784b542a3.tar.gz rust-cf8a11e98bf3871cf3475913fd68187784b542a3.zip | |
rollup merge of #20594: nikomatsakis/orphan-ordered
Conflicts: src/libsyntax/feature_gate.rs
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 2802ad3c3e3..4dc4e69aa55 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -305,6 +305,26 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> { many unsafe patterns and may be \ removed in the future"); } + + if attr::contains_name(i.attrs[], + "old_orphan_check") { + self.gate_feature( + "old_orphan_check", + i.span, + "the new orphan check rules will eventually be strictly enforced"); + } + + for item in items.iter() { + match *item { + ast::MethodImplItem(_) => {} + ast::TypeImplItem(ref typedef) => { + self.gate_feature("associated_types", + typedef.span, + "associated types are \ + experimental") + } + } + } } _ => {} |
