about summary refs log tree commit diff
diff options
context:
space:
mode:
authorXAMPPRocky <4464295+XAMPPRocky@users.noreply.github.com>2020-04-11 16:35:19 +0200
committerGitHub <noreply@github.com>2020-04-11 16:35:19 +0200
commit32047903c78410d47ead0693ec15fc7c6f350229 (patch)
tree322b98f8328f363d355cda03084fc39bf87ccf2c
parent6364b4dbb4d2393a6bb51562b3f8d2fe2748f657 (diff)
downloadrust-32047903c78410d47ead0693ec15fc7c6f350229.tar.gz
rust-32047903c78410d47ead0693ec15fc7c6f350229.zip
Update RELEASES.md
-rw-r--r--RELEASES.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/RELEASES.md b/RELEASES.md
index d181b0ece25..c1e4fcc4394 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -8,11 +8,22 @@ Language
 
 **Syntax only changes**
 - [Allow `type Foo: Ord` syntactically.][69361]
-- [Unify item parsing & filter illegal item kinds.][69366]
 - [Fuse associated and extern items up to defaultness.][69194]
 - [Permit attributes on `if` expressions.][69201]
 - [Syntactically allow `self` in all `fn` contexts.][68764]
 - [Merge `fn` syntax + cleanup item parsing.][68728]
+- [`item` macro fragments can be interpolated into `trait`s, `impl`s, and `extern` blocks.][69366]
+  For example, you may now write:
+  ```rust 
+  macro_rules! mac_trait {
+      ($i:item) => {
+          trait T { $i }
+      }
+  }
+  mac_trait! {
+      fn foo() {}
+  }
+  ```
 
 These are still rejected *semantically*, so you will likely receive an error but
 these changes can be seen and parsed by macros and
@@ -79,7 +90,6 @@ Compatibility Notes
   has been a warning since 1.36.0.
 - [Fixed `Self` not having the correctly inferred type.][69340] This incorrectly
   led to some instances being accepted, and now correctly emits a hard error.
-- [][]
 
 [69340]: https://github.com/rust-lang/rust/pull/69340