Skip to content

Commit 8def0c6

Browse files
committed
Remove links to the missing_fragment_specifier lint
This lint is planned to be removed in [1], but CI is failing due to linkcheck failures from the edition guide. Remove links for now to unblock this; this page should likely be updated with more details once they are confirmed. [1]: rust-lang/rust#128425
1 parent 467f456 commit 8def0c6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/rust-2024/missing-macro-fragment-specifiers.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,11 @@
22

33
## Summary
44

5-
- The [`missing_fragment_specifier`] lint is now a hard error.
6-
7-
[`missing_fragment_specifier`]: ../../rustc/lints/listing/deny-by-default.html#missing-fragment-specifier
5+
- The `missing_fragment_specifier` lint is now a hard error.
86

97
## Details
108

11-
The [`missing_fragment_specifier`] lint detects a situation when an **unused** pattern in a `macro_rules!` macro definition has a meta-variable (e.g. `$e`) that is not followed by a fragment specifier (e.g. `:expr`). This is now a hard error in the 2024 Edition.
9+
The `missing_fragment_specifier` lint detects a situation when an **unused** pattern in a `macro_rules!` macro definition has a meta-variable (e.g. `$e`) that is not followed by a fragment specifier (e.g. `:expr`). This is now a hard error in the 2024 Edition.
1210

1311
```rust,compile_fail
1412
macro_rules! foo {
@@ -31,6 +29,6 @@ We'd like to make this a hard error in all editions, but there would be too much
3129

3230
## Migration
3331

34-
To migrate your code to the 2024 Edition, remove the unused matcher rule from the macro. The [`missing_fragment_specifier`] lint is on by default in all editions, and should alert you to macros with this issue.
32+
To migrate your code to the 2024 Edition, remove the unused matcher rule from the macro. The `missing_fragment_specifier` lint is on by default in all editions, and should alert you to macros with this issue.
3533

3634
There is no automatic migration for this change. We expect that this style of macro is extremely rare. The lint has been a future-incompatibility lint since Rust 1.17, a deny-by-default lint since Rust 1.20, and since Rust 1.82, it has warned about dependencies that are using this pattern.

0 commit comments

Comments
 (0)