Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
46b8495
Implement `unsigned_signed_diff`
davidzeng0 Jun 23, 2024
e13eb37
Fix malformed suggestion for repeated maybe unsized bounds
gurry Jul 14, 2024
b74f426
Fix some `#[cfg_attr(not(doc), repr(..))]`
GrigorenkoPV Jul 21, 2024
a4dd0d6
std: use duplicate thread local state in tests
joboet Jul 24, 2024
dfb3fb3
Improved clarity of documentation for std::fs::create_dir_all
rik86189 Jul 24, 2024
4d5ac84
Remove Unnecessary `.as_str()` Conversions
veera-sivarajan Jul 24, 2024
fdff100
Add regression test
oli-obk Mar 8, 2024
acba644
Do not try to reveal hidden types when trying to prove Freeze in the …
oli-obk Mar 8, 2024
548c447
Add regression tests
oli-obk Jun 4, 2024
8ea461d
Do not assemble candidates for auto traits of opaque types in their d…
oli-obk Jun 4, 2024
c9886a1
Mark `missing_fragment_specifier` as `FutureReleaseErrorReportInDeps`
tgross35 Jul 23, 2024
6bf5fd5
Rollup merge of #122192 - oli-obk:type_of_opaque_for_const_checks, r=…
matthiaskrgr Jul 24, 2024
7fac549
Rollup merge of #126042 - davidzeng0:master, r=Amanieu
matthiaskrgr Jul 24, 2024
ed5dfed
Rollup merge of #126548 - rik86189:issue-88264-fix, r=tgross35
matthiaskrgr Jul 24, 2024
2ff33bb
Rollup merge of #127717 - gurry:127441-stray-impl-sugg, r=compiler-er…
matthiaskrgr Jul 24, 2024
07947f3
Rollup merge of #128046 - GrigorenkoPV:90435, r=tgross35
matthiaskrgr Jul 24, 2024
dec0c48
Rollup merge of #128122 - tgross35:missing-fragment-specifier-uncondi…
matthiaskrgr Jul 24, 2024
d146ecd
Rollup merge of #128135 - joboet:reduplicate_tls, r=tgross35
matthiaskrgr Jul 24, 2024
104a421
Rollup merge of #128140 - veera-sivarajan:remove-ident-to-str-convers…
matthiaskrgr Jul 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mark missing_fragment_specifier as FutureReleaseErrorReportInDeps
We are moving toward forbidding `missing_fragment_specifier` either in
edition 2024 or unconditionally. Make a first step toward this by
ensuring crates that rely on the old behavior are reported when used as
dependencies.

Tracking issue: <#128143>
  • Loading branch information
tgross35 committed Jul 24, 2024
commit c9886a1ddf6b19e35b0361062825666d34f8dfee
2 changes: 1 addition & 1 deletion compiler/rustc_lint_defs/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1424,7 +1424,7 @@ declare_lint! {
Deny,
"detects missing fragment specifiers in unused `macro_rules!` patterns",
@future_incompatible = FutureIncompatibleInfo {
reason: FutureIncompatibilityReason::FutureReleaseErrorDontReportInDeps,
reason: FutureIncompatibilityReason::FutureReleaseErrorReportInDeps,
reference: "issue #40107 <https://github.com/rust-lang/rust/issues/40107>",
};
}
Expand Down
15 changes: 15 additions & 0 deletions tests/ui/lint/expansion-time.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,21 @@ LL | #[warn(incomplete_include)]
warning: 4 warnings emitted

Future incompatibility report: Future breakage diagnostic:
warning: missing fragment specifier
--> $DIR/expansion-time.rs:9:19
|
LL | macro_rules! m { ($i) => {} }
| ^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #40107 <https://github.com/rust-lang/rust/issues/40107>
note: the lint level is defined here
--> $DIR/expansion-time.rs:8:8
|
LL | #[warn(missing_fragment_specifier)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

Future breakage diagnostic:
warning: use of unstable library feature 'test': `bench` is a part of custom test frameworks which are unstable
--> $DIR/expansion-time.rs:14:7
|
Expand Down
11 changes: 11 additions & 0 deletions tests/ui/macros/issue-39404.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,14 @@ LL | macro_rules! m { ($i) => {} }

error: aborting due to 1 previous error

Future incompatibility report: Future breakage diagnostic:
error: missing fragment specifier
--> $DIR/issue-39404.rs:3:19
|
LL | macro_rules! m { ($i) => {} }
| ^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #40107 <https://github.com/rust-lang/rust/issues/40107>
= note: `#[deny(missing_fragment_specifier)]` on by default

22 changes: 22 additions & 0 deletions tests/ui/macros/macro-match-nonterminal.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,25 @@ LL | ($a, $b) => {

error: aborting due to 3 previous errors

Future incompatibility report: Future breakage diagnostic:
error: missing fragment specifier
--> $DIR/macro-match-nonterminal.rs:2:8
|
LL | ($a, $b) => {
| ^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #40107 <https://github.com/rust-lang/rust/issues/40107>
= note: `#[deny(missing_fragment_specifier)]` on by default

Future breakage diagnostic:
error: missing fragment specifier
--> $DIR/macro-match-nonterminal.rs:2:10
|
LL | ($a, $b) => {
| ^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #40107 <https://github.com/rust-lang/rust/issues/40107>
= note: `#[deny(missing_fragment_specifier)]` on by default

11 changes: 11 additions & 0 deletions tests/ui/macros/macro-missing-fragment-deduplication.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,14 @@ LL | ($name) => {}

error: aborting due to 2 previous errors

Future incompatibility report: Future breakage diagnostic:
error: missing fragment specifier
--> $DIR/macro-missing-fragment-deduplication.rs:4:6
|
LL | ($name) => {}
| ^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #40107 <https://github.com/rust-lang/rust/issues/40107>
= note: `#[deny(missing_fragment_specifier)]` on by default

45 changes: 45 additions & 0 deletions tests/ui/macros/macro-missing-fragment.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,48 @@ LL | ( $name ) => {};

error: aborting due to 1 previous error; 3 warnings emitted

Future incompatibility report: Future breakage diagnostic:
warning: missing fragment specifier
--> $DIR/macro-missing-fragment.rs:4:20
|
LL | ( $( any_token $field_rust_type )* ) => {};
| ^^^^^^^^^^^^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #40107 <https://github.com/rust-lang/rust/issues/40107>
note: the lint level is defined here
--> $DIR/macro-missing-fragment.rs:1:9
|
LL | #![warn(missing_fragment_specifier)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

Future breakage diagnostic:
warning: missing fragment specifier
--> $DIR/macro-missing-fragment.rs:12:7
|
LL | ( $name ) => {};
| ^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #40107 <https://github.com/rust-lang/rust/issues/40107>
note: the lint level is defined here
--> $DIR/macro-missing-fragment.rs:1:9
|
LL | #![warn(missing_fragment_specifier)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

Future breakage diagnostic:
warning: missing fragment specifier
--> $DIR/macro-missing-fragment.rs:18:7
|
LL | ( $name ) => {};
| ^^^^^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #40107 <https://github.com/rust-lang/rust/issues/40107>
note: the lint level is defined here
--> $DIR/macro-missing-fragment.rs:1:9
|
LL | #![warn(missing_fragment_specifier)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^

11 changes: 11 additions & 0 deletions tests/ui/parser/macro/issue-33569.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,14 @@ LL | { $+ } => {

error: aborting due to 4 previous errors

Future incompatibility report: Future breakage diagnostic:
error: missing fragment specifier
--> $DIR/issue-33569.rs:2:8
|
LL | { $+ } => {
| ^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #40107 <https://github.com/rust-lang/rust/issues/40107>
= note: `#[deny(missing_fragment_specifier)]` on by default