Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: cannot find attribute derive in this scope #315

Closed
taiki-e opened this issue Feb 8, 2021 · 3 comments · Fixed by #317
Closed

error: cannot find attribute derive in this scope #315

taiki-e opened this issue Feb 8, 2021 · 3 comments · Fixed by #317
Labels
C-upstream-bug Category: This is a bug of compiler or dependencies (the fix may require action in the upstream)

Comments

@taiki-e
Copy link
Owner

taiki-e commented Feb 8, 2021

Since nightly-2021-02-08, our test suite failed to compile.

related: rust-lang/rust#79078, rust-lang/rust#79202

rustc: rustc 1.52.0-nightly (9778068cb 2021-02-07)

https://github.com/taiki-e/pin-project/runs/1851328341?check_suite_focus=true

log
error: cannot find attribute `derive` in this scope
 --> tests/no-core/../include/basic-safe-part.rs:4:3
  |
4 | #[derive(Debug)]
  |   ^^^^^^

error: cannot find attribute `derive` in this scope
 --> tests/no-core/../include/basic-safe-part.rs:3:1
  |
3 | #[::pin_project::pin_project]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
 --> tests/no-core/../include/basic-safe-part.rs:6:7
  |
6 |     #[pin]
  |       ^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:15:3
   |
15 | #[derive(Debug)]
   |   ^^^^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:11:1
   |
11 | / #[::pin_project::pin_project(
12 | |     project = DefaultStructNamedProj,
13 | |     project_ref = DefaultStructNamedProjRef,
14 | | )]
   | |__^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:17:7
   |
17 |     #[pin]
   |       ^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:23:3
   |
23 | #[derive(Debug)]
   |   ^^^^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:22:1
   |
22 | #[::pin_project::pin_project]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:24:39
   |
24 | pub struct DefaultTupleStruct<T, U>(#[pin] pub T, pub U);
   |                                       ^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:30:3
   |
30 | #[derive(Debug)]
   |   ^^^^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:26:1
   |
26 | / #[::pin_project::pin_project(
27 | |     project = DefaultTupleStructNamedProj,
28 | |     project_ref = DefaultTupleStructNamedProjRef,
29 | | )]
   | |__^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:31:44
   |
31 | pub struct DefaultTupleStructNamed<T, U>(#[pin] pub T, pub U);
   |                                            ^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:37:3
   |
37 | #[derive(Debug)]
   |   ^^^^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:33:1
   |
33 | / #[::pin_project::pin_project(
34 | |     project = DefaultEnumProj,
35 | |     project_ref = DefaultEnumProjRef,
36 | | )]
   | |__^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:40:11
   |
40 |         #[pin]
   |           ^^^

error: cannot find attribute `pin` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:44:13
   |
44 |     Tuple(#[pin] T, U),
   |             ^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:49:3
   |
49 | #[derive(Debug)]
   |   ^^^^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:48:1
   |
48 | #[::pin_project::pin_project(PinnedDrop)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:51:7
   |
51 |     #[pin]
   |       ^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:62:3
   |
62 | #[derive(Debug)]
   |   ^^^^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:61:1
   |
61 | #[::pin_project::pin_project(PinnedDrop)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:63:42
   |
63 | pub struct PinnedDropTupleStruct<T, U>(#[pin] pub T, pub U);
   |                                          ^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:75:3
   |
75 | #[derive(Debug)]
   |   ^^^^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:70:1
   |
70 | / #[::pin_project::pin_project(
71 | |     PinnedDrop,
72 | |     project = PinnedDropEnumProj,
73 | |     project_ref = PinnedDropEnumProjRef,
74 | | )]
   | |__^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:78:11
   |
78 |         #[pin]
   |           ^^^

error: cannot find attribute `pin` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:82:13
   |
82 |     Tuple(#[pin] T, U),
   |             ^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:92:3
   |
92 | #[derive(Debug)]
   |   ^^^^^^

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:91:1
   |
91 | #[::pin_project::pin_project(project_replace)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:94:7
   |
94 |     #[pin]
   |       ^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:104:3
    |
104 | #[derive(Debug)]
    |   ^^^^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:99:1
    |
99  | / #[::pin_project::pin_project(
100 | |     project = ReplaceStructNamedProj,
101 | |     project_ref = ReplaceStructNamedProjRef,
102 | |     project_replace = ReplaceStructNamedProjOwn,
103 | | )]
    | |__^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:106:7
    |
106 |     #[pin]
    |       ^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:112:3
    |
112 | #[derive(Debug)]
    |   ^^^^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:111:1
    |
111 | #[::pin_project::pin_project(project_replace)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:113:39
    |
113 | pub struct ReplaceTupleStruct<T, U>(#[pin] pub T, pub U);
    |                                       ^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:120:3
    |
120 | #[derive(Debug)]
    |   ^^^^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:115:1
    |
115 | / #[::pin_project::pin_project(
116 | |     project = ReplaceTupleStructNamedProj,
117 | |     project_ref = ReplaceTupleStructNamedProjRef,
118 | |     project_replace = ReplaceTupleStructNamedProjOwn,
119 | | )]
    | |__^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:121:44
    |
121 | pub struct ReplaceTupleStructNamed<T, U>(#[pin] pub T, pub U);
    |                                            ^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:128:3
    |
128 | #[derive(Debug)]
    |   ^^^^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:123:1
    |
123 | / #[::pin_project::pin_project(
124 | |     project = ReplaceEnumProj,
125 | |     project_ref = ReplaceEnumProjRef,
126 | |     project_replace = ReplaceEnumProjOwn,
127 | | )]
    | |__^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:131:11
    |
131 |         #[pin]
    |           ^^^

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:135:13
    |
135 |     Tuple(#[pin] T, U),
    |             ^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:140:3
    |
140 | #[derive(Debug)]
    |   ^^^^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:139:1
    |
139 | #[::pin_project::pin_project(UnsafeUnpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:142:7
    |
142 |     #[pin]
    |       ^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:148:3
    |
148 | #[derive(Debug)]
    |   ^^^^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:147:1
    |
147 | #[::pin_project::pin_project(UnsafeUnpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:149:43
    |
149 | pub struct UnsafeUnpinTupleStruct<T, U>(#[pin] pub T, pub U);
    |                                           ^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:156:3
    |
156 | #[derive(Debug)]
    |   ^^^^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:151:1
    |
151 | / #[::pin_project::pin_project(
152 | |     UnsafeUnpin,
153 | |     project = UnsafeUnpinEnumProj,
154 | |     project_ref = UnsafeUnpinEnumProjRef,
155 | | )]
    | |__^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:159:11
    |
159 |         #[pin]
    |           ^^^

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:163:13
    |
163 |     Tuple(#[pin] T, U),
    |             ^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:168:3
    |
168 | #[derive(Debug)]
    |   ^^^^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:167:1
    |
167 | #[::pin_project::pin_project(!Unpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:170:7
    |
170 |     #[pin]
    |       ^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:176:3
    |
176 | #[derive(Debug)]
    |   ^^^^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:175:1
    |
175 | #[::pin_project::pin_project(!Unpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:177:40
    |
177 | pub struct NotUnpinTupleStruct<T, U>(#[pin] pub T, pub U);
    |                                        ^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:184:3
    |
184 | #[derive(Debug)]
    |   ^^^^^^

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:179:1
    |
179 | / #[::pin_project::pin_project(
180 | |     !Unpin,
181 | |     project = NotUnpinEnumProj,
182 | |     project_ref = NotUnpinEnumProjRef,
183 | | )]
    | |__^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:187:11
    |
187 |         #[pin]
    |           ^^^

error: cannot find attribute `pin` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:191:13
    |
191 |     Tuple(#[pin] T, U),
    |             ^^^

error: cannot find attribute `derive` in this scope
 --> tests/no-core/../include/basic-safe-part.rs:3:1
  |
3 | #[::pin_project::pin_project]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:11:1
   |
11 | / #[::pin_project::pin_project(
12 | |     project = DefaultStructNamedProj,
13 | |     project_ref = DefaultStructNamedProjRef,
14 | | )]
   | |__^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:22:1
   |
22 | #[::pin_project::pin_project]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:26:1
   |
26 | / #[::pin_project::pin_project(
27 | |     project = DefaultTupleStructNamedProj,
28 | |     project_ref = DefaultTupleStructNamedProjRef,
29 | | )]
   | |__^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:33:1
   |
33 | / #[::pin_project::pin_project(
34 | |     project = DefaultEnumProj,
35 | |     project_ref = DefaultEnumProjRef,
36 | | )]
   | |__^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:48:1
   |
48 | #[::pin_project::pin_project(PinnedDrop)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:61:1
   |
61 | #[::pin_project::pin_project(PinnedDrop)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:70:1
   |
70 | / #[::pin_project::pin_project(
71 | |     PinnedDrop,
72 | |     project = PinnedDropEnumProj,
73 | |     project_ref = PinnedDropEnumProjRef,
74 | | )]
   | |__^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
  --> tests/no-core/../include/basic-safe-part.rs:91:1
   |
91 | #[::pin_project::pin_project(project_replace)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:99:1
    |
99  | / #[::pin_project::pin_project(
100 | |     project = ReplaceStructNamedProj,
101 | |     project_ref = ReplaceStructNamedProjRef,
102 | |     project_replace = ReplaceStructNamedProjOwn,
103 | | )]
    | |__^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:111:1
    |
111 | #[::pin_project::pin_project(project_replace)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:115:1
    |
115 | / #[::pin_project::pin_project(
116 | |     project = ReplaceTupleStructNamedProj,
117 | |     project_ref = ReplaceTupleStructNamedProjRef,
118 | |     project_replace = ReplaceTupleStructNamedProjOwn,
119 | | )]
    | |__^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:123:1
    |
123 | / #[::pin_project::pin_project(
124 | |     project = ReplaceEnumProj,
125 | |     project_ref = ReplaceEnumProjRef,
126 | |     project_replace = ReplaceEnumProjOwn,
127 | | )]
    | |__^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:139:1
    |
139 | #[::pin_project::pin_project(UnsafeUnpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:147:1
    |
147 | #[::pin_project::pin_project(UnsafeUnpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:151:1
    |
151 | / #[::pin_project::pin_project(
152 | |     UnsafeUnpin,
153 | |     project = UnsafeUnpinEnumProj,
154 | |     project_ref = UnsafeUnpinEnumProjRef,
155 | | )]
    | |__^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:167:1
    |
167 | #[::pin_project::pin_project(!Unpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:175:1
    |
175 | #[::pin_project::pin_project(!Unpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: cannot find attribute `derive` in this scope
   --> tests/no-core/../include/basic-safe-part.rs:179:1
    |
179 | / #[::pin_project::pin_project(
180 | |     !Unpin,
181 | |     project = NotUnpinEnumProj,
182 | |     project_ref = NotUnpinEnumProjRef,
183 | | )]
    | |__^
    |
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
 --> tests/no-core/../include/basic-safe-part.rs:3:1
  |
3 | #[::pin_project::pin_project]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
  |
  = note: `-D legacy-derive-helpers` implied by `-D warnings`
  = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
  = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:11:1
   |
11 | / #[::pin_project::pin_project(
12 | |     project = DefaultStructNamedProj,
13 | |     project_ref = DefaultStructNamedProjRef,
14 | | )]
   | |__^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:22:1
   |
22 | #[::pin_project::pin_project]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:26:1
   |
26 | / #[::pin_project::pin_project(
27 | |     project = DefaultTupleStructNamedProj,
28 | |     project_ref = DefaultTupleStructNamedProjRef,
29 | | )]
   | |__^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:33:1
   |
33 | / #[::pin_project::pin_project(
34 | |     project = DefaultEnumProj,
35 | |     project_ref = DefaultEnumProjRef,
36 | | )]
   | |__^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:48:1
   |
48 | #[::pin_project::pin_project(PinnedDrop)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:61:1
   |
61 | #[::pin_project::pin_project(PinnedDrop)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:70:1
   |
70 | / #[::pin_project::pin_project(
71 | |     PinnedDrop,
72 | |     project = PinnedDropEnumProj,
73 | |     project_ref = PinnedDropEnumProjRef,
74 | | )]
   | |__^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:91:1
   |
91 | #[::pin_project::pin_project(project_replace)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:99:1
    |
99  | / #[::pin_project::pin_project(
100 | |     project = ReplaceStructNamedProj,
101 | |     project_ref = ReplaceStructNamedProjRef,
102 | |     project_replace = ReplaceStructNamedProjOwn,
103 | | )]
    | |__^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:111:1
    |
111 | #[::pin_project::pin_project(project_replace)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:115:1
    |
115 | / #[::pin_project::pin_project(
116 | |     project = ReplaceTupleStructNamedProj,
117 | |     project_ref = ReplaceTupleStructNamedProjRef,
118 | |     project_replace = ReplaceTupleStructNamedProjOwn,
119 | | )]
    | |__^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:123:1
    |
123 | / #[::pin_project::pin_project(
124 | |     project = ReplaceEnumProj,
125 | |     project_ref = ReplaceEnumProjRef,
126 | |     project_replace = ReplaceEnumProjOwn,
127 | | )]
    | |__^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:139:1
    |
139 | #[::pin_project::pin_project(UnsafeUnpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:147:1
    |
147 | #[::pin_project::pin_project(UnsafeUnpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:151:1
    |
151 | / #[::pin_project::pin_project(
152 | |     UnsafeUnpin,
153 | |     project = UnsafeUnpinEnumProj,
154 | |     project_ref = UnsafeUnpinEnumProjRef,
155 | | )]
    | |__^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:167:1
    |
167 | #[::pin_project::pin_project(!Unpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:175:1
    |
175 | #[::pin_project::pin_project(!Unpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:179:1
    |
179 | / #[::pin_project::pin_project(
180 | |     !Unpin,
181 | |     project = NotUnpinEnumProj,
182 | |     project_ref = NotUnpinEnumProjRef,
183 | | )]
    | |__^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
 --> tests/no-core/../include/basic-safe-part.rs:3:1
  |
3 | #[::pin_project::pin_project]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
  |
  = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
  = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:11:1
   |
11 | / #[::pin_project::pin_project(
12 | |     project = DefaultStructNamedProj,
13 | |     project_ref = DefaultStructNamedProjRef,
14 | | )]
   | |__^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:22:1
   |
22 | #[::pin_project::pin_project]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:26:1
   |
26 | / #[::pin_project::pin_project(
27 | |     project = DefaultTupleStructNamedProj,
28 | |     project_ref = DefaultTupleStructNamedProjRef,
29 | | )]
   | |__^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:33:1
   |
33 | / #[::pin_project::pin_project(
34 | |     project = DefaultEnumProj,
35 | |     project_ref = DefaultEnumProjRef,
36 | | )]
   | |__^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:48:1
   |
48 | #[::pin_project::pin_project(PinnedDrop)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:61:1
   |
61 | #[::pin_project::pin_project(PinnedDrop)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:70:1
   |
70 | / #[::pin_project::pin_project(
71 | |     PinnedDrop,
72 | |     project = PinnedDropEnumProj,
73 | |     project_ref = PinnedDropEnumProjRef,
74 | | )]
   | |__^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
  --> tests/no-core/../include/basic-safe-part.rs:91:1
   |
91 | #[::pin_project::pin_project(project_replace)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
   |
   = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
   = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:99:1
    |
99  | / #[::pin_project::pin_project(
100 | |     project = ReplaceStructNamedProj,
101 | |     project_ref = ReplaceStructNamedProjRef,
102 | |     project_replace = ReplaceStructNamedProjOwn,
103 | | )]
    | |__^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:111:1
    |
111 | #[::pin_project::pin_project(project_replace)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:115:1
    |
115 | / #[::pin_project::pin_project(
116 | |     project = ReplaceTupleStructNamedProj,
117 | |     project_ref = ReplaceTupleStructNamedProjRef,
118 | |     project_replace = ReplaceTupleStructNamedProjOwn,
119 | | )]
    | |__^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:123:1
    |
123 | / #[::pin_project::pin_project(
124 | |     project = ReplaceEnumProj,
125 | |     project_ref = ReplaceEnumProjRef,
126 | |     project_replace = ReplaceEnumProjOwn,
127 | | )]
    | |__^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:139:1
    |
139 | #[::pin_project::pin_project(UnsafeUnpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:147:1
    |
147 | #[::pin_project::pin_project(UnsafeUnpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:151:1
    |
151 | / #[::pin_project::pin_project(
152 | |     UnsafeUnpin,
153 | |     project = UnsafeUnpinEnumProj,
154 | |     project_ref = UnsafeUnpinEnumProjRef,
155 | | )]
    | |__^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:167:1
    |
167 | #[::pin_project::pin_project(!Unpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:175:1
    |
175 | #[::pin_project::pin_project(!Unpin)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: derive helper attribute is used before it is introduced
   --> tests/no-core/../include/basic-safe-part.rs:179:1
    |
179 | / #[::pin_project::pin_project(
180 | |     !Unpin,
181 | |     project = NotUnpinEnumProj,
182 | |     project_ref = NotUnpinEnumProjRef,
183 | | )]
    | |__^ the attribute is introduced here
    |
    = 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 #79202 <https://github.com/rust-lang/rust/issues/79202>
    = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 119 previous errors

error: could not compile `no-core`
@taiki-e taiki-e added the C-upstream-bug Category: This is a bug of compiler or dependencies (the fix may require action in the upstream) label Feb 8, 2021
@Aaron1011
Copy link
Collaborator

All of these errors appear to be caused by the fact that #[derive] is now a normal attribute, and will therefore not be imported by default with #![no_core]. Adding use _core::prelude::v1::derive; to tests/no-core/lib.rs fixed all of the errors for me locally.

The "derive helper attribute is used before it is introduced" lint appears to be spurious. I suspect it's caused by the recovery code in rustc (which is based on checking for a literal 'derive' ident, ignoring resolution) running when #[derive] is not actually in scope.

@Aaron1011
Copy link
Collaborator

Opened rust-lang/rust#81871 to track the spurious legacy_derive_helpers lint

@taiki-e
Copy link
Owner Author

taiki-e commented Feb 8, 2021

@Aaron1011 Thanks! I've confirmed that we can fix the problem by the way you mentioned.

@taiki-e taiki-e mentioned this issue Feb 8, 2021
@bors bors bot closed this as completed in 4f5068b Feb 8, 2021
@bors bors bot closed this as completed in #317 Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-upstream-bug Category: This is a bug of compiler or dependencies (the fix may require action in the upstream)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants