diff options
| author | bors <bors@rust-lang.org> | 2018-05-16 09:03:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-05-16 09:03:38 +0000 |
| commit | 448cc578a903730d422f6e638641787d0dbd7bc7 (patch) | |
| tree | a33e1b1cee698283eaf2431c9b909d7ddd39e192 /src/libsyntax | |
| parent | 3ec2058bfee1e6c57d4c84d873737f84d4636bea (diff) | |
| parent | be2900c33b043ca2002bdb11870e8d26c3e410f3 (diff) | |
Auto merge of #48557 - matthewjasper:allow-trvial-bounds, r=nikomatsakis
Implement RFC 2056 trivial constraints in where clauses This is an implementation of the new behaviour for #48214. Tests are mostly updated to show the effects of this. Feature gate hasn't been added yet. Some things that are worth noting and are maybe not want we want * `&mut T: Copy` doesn't allow as much as someone might expect because there is often an implicit reborrow. * ~There isn't a check that a where clause is well-formed any more, so `where Vec<str>: Debug` is now allowed (without a `str: Sized` bound).~ r? @nikomatsakis
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/feature_gate.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index cb5125fe9ef..bf78723e413 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -463,6 +463,9 @@ declare_features! ( // Allows use of the :literal macro fragment specifier (RFC 1576) (active, macro_literal_matcher, "1.27.0", Some(35625), None), + + // inconsistent bounds in where clauses + (active, trivial_bounds, "1.28.0", Some(48214), None), ); declare_features! ( |
