]> git.lizzy.rs Git - rust.git/blobdiff - RELEASES.md
add some whitespace
[rust.git] / RELEASES.md
index d181b0ece25199681a1668642fedc2056e3b0353..36597b1864f25097a54881389f3a1f8fc0db77cc 100644 (file)
@@ -5,14 +5,25 @@ Language
 --------
 - [Fixed using binary operations with `&{number}` (e.g. `&1.0`) not having
   the type inferred correctly.][68129]
+- [Attributes such as `#[cfg()]` can now be used on `if` expressions.][69201]
 
 **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