diff options
| author | bors <bors@rust-lang.org> | 2017-09-29 15:54:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-09-29 15:54:44 +0000 |
| commit | 51cd06170eccf91a2d93018e939473a8db18da92 (patch) | |
| tree | 327859d8d72c0ccee89da206fa782f9a1826bb8e /src/libsyntax | |
| parent | 09ee9b723a6e8bdfbbd43ab452b1a4317b38e1e1 (diff) | |
| parent | 838105f09b407aa6e5239ac1aa68e53846b5b712 (diff) | |
| download | rust-51cd06170eccf91a2d93018e939473a8db18da92.tar.gz rust-51cd06170eccf91a2d93018e939473a8db18da92.zip | |
Auto merge of #44866 - mdevlamynck:impl-trait, r=eddyb
First step toward implementing impl Trait in argument position First step implementing #44721. Add a flag to hir and ty TypeParameterDef and raise an error when using explicit type parameters when calling a function using impl Trait in argument position. I don't know if there is a procedure to add an error code so I just took an available code. Is that ok ? r? @nikomatsakis
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 4da0df5b0de..e92a7484f33 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -727,6 +727,12 @@ pub const BUILTIN_ATTRIBUTES: &'static [(&'static str, AttributeType, AttributeG is just used for rustc unit tests \ and will never be stable", cfg_fn!(rustc_attrs))), + ("rustc_synthetic", Whitelisted, Gated(Stability::Unstable, + "rustc_attrs", + "this attribute \ + is just used for rustc unit tests \ + and will never be stable", + cfg_fn!(rustc_attrs))), ("rustc_symbol_name", Whitelisted, Gated(Stability::Unstable, "rustc_attrs", "internal rustc attributes will never be stable", |
