Commit 8cacc4a
committed
tests: ui: compile-fail: pin_data: no_pin_on_phantompinned: fix warning
The `#[pin_data]` macro checks for fields with the type `PhantomPinned`
and then emits an error if it's not marked with `#[pin]`. This check
replaces the originally typed path with `::core::marker::PhantomPinned`
and thus any imports of the `PhantomPinned` stuff are not used. Opened
an issue: #51
Signed-off-by: Benno Lossin <benno.lossin@proton.me>1 parent 2813729 commit 8cacc4a
File tree
2 files changed
+1
-9
lines changed- tests/ui/compile-fail/pin_data
2 files changed
+1
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
0 commit comments