Skip to content

Commit 3204790

Browse files
authored
Update RELEASES.md
1 parent 6364b4d commit 3204790

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

RELEASES.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,22 @@ Language
88

99
**Syntax only changes**
1010
- [Allow `type Foo: Ord` syntactically.][69361]
11-
- [Unify item parsing & filter illegal item kinds.][69366]
1211
- [Fuse associated and extern items up to defaultness.][69194]
1312
- [Permit attributes on `if` expressions.][69201]
1413
- [Syntactically allow `self` in all `fn` contexts.][68764]
1514
- [Merge `fn` syntax + cleanup item parsing.][68728]
15+
- [`item` macro fragments can be interpolated into `trait`s, `impl`s, and `extern` blocks.][69366]
16+
For example, you may now write:
17+
```rust
18+
macro_rules! mac_trait {
19+
($i:item) => {
20+
trait T { $i }
21+
}
22+
}
23+
mac_trait! {
24+
fn foo() {}
25+
}
26+
```
1627

1728
These are still rejected *semantically*, so you will likely receive an error but
1829
these changes can be seen and parsed by macros and
@@ -79,7 +90,6 @@ Compatibility Notes
7990
has been a warning since 1.36.0.
8091
- [Fixed `Self` not having the correctly inferred type.][69340] This incorrectly
8192
led to some instances being accepted, and now correctly emits a hard error.
82-
- [][]
8393

8494
[69340]: https://github.com/rust-lang/rust/pull/69340
8595

0 commit comments

Comments
 (0)