Skip to content

Commit 5ba9610

Browse files
committed
Remove missing_fragment_specifier lint
1 parent 02eae43 commit 5ba9610

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/doc/rustc/src/lints/listing/deny-by-default.md

-9
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ error: defaults for type parameters are only allowed in `struct`, `enum`, `type`
4545
= note: for more information, see issue #36887 <https://github.com/rust-lang/rust/issues/36887>
4646
```
4747

48-
## missing-fragment-specifier
49-
50-
The missing_fragment_specifier warning is issued when an unused pattern in a
51-
`macro_rules!` macro definition has a meta-variable (e.g. `$e`) that is not
52-
followed by a fragment specifier (e.g. `:expr`).
53-
54-
This warning can always be fixed by removing the unused pattern in the
55-
`macro_rules!` macro definition.
56-
5748
## mutable-transmutes
5849

5950
This lint catches transmuting from `&T` to `&mut T` because it is undefined

src/librustc_session/lint/builtin.rs

-11
Original file line numberDiff line numberDiff line change
@@ -252,16 +252,6 @@ declare_lint! {
252252
};
253253
}
254254

255-
declare_lint! {
256-
pub MISSING_FRAGMENT_SPECIFIER,
257-
Deny,
258-
"detects missing fragment specifiers in unused `macro_rules!` patterns",
259-
@future_incompatible = FutureIncompatibleInfo {
260-
reference: "issue #40107 <https://github.com/rust-lang/rust/issues/40107>",
261-
edition: None,
262-
};
263-
}
264-
265255
declare_lint! {
266256
pub LATE_BOUND_LIFETIME_ARGUMENTS,
267257
Warn,
@@ -584,7 +574,6 @@ declare_lint_pass! {
584574
UNALIGNED_REFERENCES,
585575
SAFE_PACKED_BORROWS,
586576
PATTERNS_IN_FNS_WITHOUT_BODY,
587-
MISSING_FRAGMENT_SPECIFIER,
588577
LATE_BOUND_LIFETIME_ARGUMENTS,
589578
ORDER_DEPENDENT_TRAIT_OBJECTS,
590579
COHERENCE_LEAK_CHECK,

0 commit comments

Comments
 (0)