You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike the other cases of this lint, there's no simple way to detect if
an old version of the relevant crate (`syn`) is in use. The `actix-web`
crate only depends on `pin-project` v1.0.0, so checking the version of
`actix-web` does not guarantee that a new enough version of
`pin-project` (and therefore `syn`) is in use.
Instead, we rely on the fact that virtually all of the regressed crates
are pinned to a pre-1.0 version of `pin-project`. When this is the case,
bumping the `actix-web` dependency will pull in the *latest* version of
`pin-project`, which has an explicit dependency on a newer v dependency
on a newer version of `syn`.
The lint message tells users to update `actix-web`, since that's what
they're most likely to have control over. We could potentially tell them
to run `cargo update -p syn`, but I think it's more straightforward to
suggest an explicit change to the `Cargo.toml`
The `actori-web` fork had its last commit over a year ago, and appears
to just be a renamed fork of `actix-web`. Therefore, I've removed the
`actori-web` check entirely - any crates that actually get broken can
simply update `syn` themselves.
Copy file name to clipboardExpand all lines: src/test/ui/proc-macro/group-compat-hack/group-compat-hack.stderr
+67-1
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,39 @@ LL | impl_macros!(Foo);
31
31
= note: the `time-macros-impl` crate will stop compiling in futures version of Rust. Please update to the latest version of the `time` crate to avoid breakage
32
32
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
33
33
34
-
warning: 2 warnings emitted
34
+
warning: using an old version of `actix-web`
35
+
--> $DIR/actix-web/src/extract.rs:5:34
36
+
|
37
+
LL | #[my_macro] struct Three($T);
38
+
| ^^
39
+
|
40
+
::: $DIR/group-compat-hack.rs:54:5
41
+
|
42
+
LL | tuple_from_req!(Foo);
43
+
| --------------------- in this macro invocation
44
+
|
45
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
46
+
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
47
+
= note: the version of `actix-web` you are using might stop compiling in future versions of Rust; please update to the latest version of the `actix-web` crate to avoid breakage
48
+
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
49
+
50
+
warning: using an old version of `actix-web`
51
+
--> $DIR/actix-web-2.0.0/src/extract.rs:5:34
52
+
|
53
+
LL | #[my_macro] struct Three($T);
54
+
| ^^
55
+
|
56
+
::: $DIR/group-compat-hack.rs:62:5
57
+
|
58
+
LL | tuple_from_req!(Foo);
59
+
| --------------------- in this macro invocation
60
+
|
61
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
62
+
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
63
+
= note: the version of `actix-web` you are using might stop compiling in future versions of Rust; please update to the latest version of the `actix-web` crate to avoid breakage
64
+
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: using an old version of `time-macros-impl`
@@ -68,3 +100,37 @@ LL | impl_macros!(Foo);
68
100
= note: the `time-macros-impl` crate will stop compiling in futures version of Rust. Please update to the latest version of the `time` crate to avoid breakage
69
101
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
70
102
103
+
Future breakage date: None, diagnostic:
104
+
warning: using an old version of `actix-web`
105
+
--> $DIR/actix-web/src/extract.rs:5:34
106
+
|
107
+
LL | #[my_macro] struct Three($T);
108
+
| ^^
109
+
|
110
+
::: $DIR/group-compat-hack.rs:54:5
111
+
|
112
+
LL | tuple_from_req!(Foo);
113
+
| --------------------- in this macro invocation
114
+
|
115
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
116
+
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
117
+
= note: the version of `actix-web` you are using might stop compiling in future versions of Rust; please update to the latest version of the `actix-web` crate to avoid breakage
118
+
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
119
+
120
+
Future breakage date: None, diagnostic:
121
+
warning: using an old version of `actix-web`
122
+
--> $DIR/actix-web-2.0.0/src/extract.rs:5:34
123
+
|
124
+
LL | #[my_macro] struct Three($T);
125
+
| ^^
126
+
|
127
+
::: $DIR/group-compat-hack.rs:62:5
128
+
|
129
+
LL | tuple_from_req!(Foo);
130
+
| --------------------- in this macro invocation
131
+
|
132
+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
133
+
= note: for more information, see issue #83125 <https://github.com/rust-lang/rust/issues/83125>
134
+
= note: the version of `actix-web` you are using might stop compiling in future versions of Rust; please update to the latest version of the `actix-web` crate to avoid breakage
135
+
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
0 commit comments