Skip to content

Commit 7495137

Browse files
committed
run cfail test on stable rather on MSRV
1 parent 1301e43 commit 7495137

File tree

3 files changed

+42
-32
lines changed

3 files changed

+42
-32
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ jobs:
294294
- name: Install Rust
295295
uses: actions-rs/toolchain@v1
296296
with:
297-
toolchain: 1.51.0
297+
toolchain: stable
298298
target: x86_64-unknown-linux-gnu
299299
override: true
300300

cfail/ui/freeze.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
error[E0499]: cannot borrow `q` as mutable more than once at a time
2-
--> $DIR/freeze.rs:7:5
2+
--> ui/freeze.rs:7:5
33
|
44
6 | let (_p, mut _c) = q.split();
5-
| - first mutable borrow occurs here
5+
| --------- first mutable borrow occurs here
66
7 | q.enqueue(0).unwrap();
7-
| ^ second mutable borrow occurs here
7+
| ^^^^^^^^^^^^ second mutable borrow occurs here
88
8 | _c.dequeue();
9-
| -- first borrow later used here
9+
| ------------ first borrow later used here

cfail/ui/not-send.stderr

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,42 @@
11
error[E0277]: `*const ()` cannot be sent between threads safely
2-
--> $DIR/not-send.rs:19:5
2+
--> ui/not-send.rs:19:5
33
|
4-
12 | fn is_send<T>()
5-
| ------- required by a bound in this
6-
13 | where
7-
14 | T: Send,
8-
| ---- required by this bound in `is_send`
9-
...
104
19 | is_send::<Consumer<NotSend, 4>>();
115
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
126
|
137
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
148
= note: required because it appears within the type `PhantomData<*const ()>`
159
= note: required because of the requirements on the impl of `Send` for `Consumer<'_, PhantomData<*const ()>, 4_usize>`
16-
17-
error[E0277]: `*const ()` cannot be sent between threads safely
18-
--> $DIR/not-send.rs:20:5
10+
note: required by a bound in `is_send`
11+
--> ui/not-send.rs:14:8
1912
|
2013
12 | fn is_send<T>()
2114
| ------- required by a bound in this
2215
13 | where
2316
14 | T: Send,
24-
| ---- required by this bound in `is_send`
25-
...
17+
| ^^^^ required by this bound in `is_send`
18+
19+
error[E0277]: `*const ()` cannot be sent between threads safely
20+
--> ui/not-send.rs:20:5
21+
|
2622
20 | is_send::<Producer<NotSend, 4>>();
2723
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
2824
|
2925
= help: within `PhantomData<*const ()>`, the trait `Send` is not implemented for `*const ()`
3026
= note: required because it appears within the type `PhantomData<*const ()>`
3127
= note: required because of the requirements on the impl of `Send` for `Producer<'_, PhantomData<*const ()>, 4_usize>`
32-
33-
error[E0277]: `*const ()` cannot be sent between threads safely
34-
--> $DIR/not-send.rs:21:5
28+
note: required by a bound in `is_send`
29+
--> ui/not-send.rs:14:8
3530
|
3631
12 | fn is_send<T>()
3732
| ------- required by a bound in this
3833
13 | where
3934
14 | T: Send,
40-
| ---- required by this bound in `is_send`
41-
...
35+
| ^^^^ required by this bound in `is_send`
36+
37+
error[E0277]: `*const ()` cannot be sent between threads safely
38+
--> ui/not-send.rs:21:5
39+
|
4240
21 | is_send::<Queue<NotSend, 4>>();
4341
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
4442
|
@@ -49,16 +47,18 @@ error[E0277]: `*const ()` cannot be sent between threads safely
4947
= note: required because it appears within the type `UnsafeCell<MaybeUninit<PhantomData<*const ()>>>`
5048
= note: required because it appears within the type `[UnsafeCell<MaybeUninit<PhantomData<*const ()>>>; 4]`
5149
= note: required because it appears within the type `Queue<PhantomData<*const ()>, 4_usize>`
52-
53-
error[E0277]: `*const ()` cannot be sent between threads safely
54-
--> $DIR/not-send.rs:22:5
50+
note: required by a bound in `is_send`
51+
--> ui/not-send.rs:14:8
5552
|
5653
12 | fn is_send<T>()
5754
| ------- required by a bound in this
5855
13 | where
5956
14 | T: Send,
60-
| ---- required by this bound in `is_send`
61-
...
57+
| ^^^^ required by this bound in `is_send`
58+
59+
error[E0277]: `*const ()` cannot be sent between threads safely
60+
--> ui/not-send.rs:22:5
61+
|
6262
22 | is_send::<Vec<NotSend, 4>>();
6363
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
6464
|
@@ -68,16 +68,18 @@ error[E0277]: `*const ()` cannot be sent between threads safely
6868
= note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
6969
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
7070
= note: required because it appears within the type `heapless::Vec<PhantomData<*const ()>, 4_usize>`
71-
72-
error[E0277]: `*const ()` cannot be sent between threads safely
73-
--> $DIR/not-send.rs:23:5
71+
note: required by a bound in `is_send`
72+
--> ui/not-send.rs:14:8
7473
|
7574
12 | fn is_send<T>()
7675
| ------- required by a bound in this
7776
13 | where
7877
14 | T: Send,
79-
| ---- required by this bound in `is_send`
80-
...
78+
| ^^^^ required by this bound in `is_send`
79+
80+
error[E0277]: `*const ()` cannot be sent between threads safely
81+
--> ui/not-send.rs:23:5
82+
|
8183
23 | is_send::<HistoryBuffer<NotSend, 4>>();
8284
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `*const ()` cannot be sent between threads safely
8385
|
@@ -87,3 +89,11 @@ error[E0277]: `*const ()` cannot be sent between threads safely
8789
= note: required because it appears within the type `MaybeUninit<PhantomData<*const ()>>`
8890
= note: required because it appears within the type `[MaybeUninit<PhantomData<*const ()>>; 4]`
8991
= note: required because it appears within the type `HistoryBuffer<PhantomData<*const ()>, 4_usize>`
92+
note: required by a bound in `is_send`
93+
--> ui/not-send.rs:14:8
94+
|
95+
12 | fn is_send<T>()
96+
| ------- required by a bound in this
97+
13 | where
98+
14 | T: Send,
99+
| ^^^^ required by this bound in `is_send`

0 commit comments

Comments
 (0)