Skip to content

Commit 7c6942a

Browse files
authored
Rollup merge of rust-lang#114182 - Ddystopia:cleanup-after-113312, r=lcnr
clean up after 113312 Minor edits for rust-lang#113312 cc ``@RalfJung`` r? ``@lcnr``
2 parents 35ba616 + 63845e7 commit 7c6942a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Diff for: tests/ui/auto-traits/issue-83857-ub.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#![allow(suspicious_auto_trait_impls)]
2+
// Tests that we don't incorrectly allow overlap between a builtin auto trait
3+
// impl and a user written one. See #83857 for more details
24

35
struct Always<T, U>(T, U);
46
unsafe impl<T, U> Send for Always<T, U> {}

Diff for: tests/ui/auto-traits/issue-83857-ub.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
error[E0277]: `Foo<T, U>` cannot be sent between threads safely
2-
--> $DIR/issue-83857-ub.rs:20:38
2+
--> $DIR/issue-83857-ub.rs:22:38
33
|
44
LL | fn generic<T, U>(v: Foo<T, U>, f: fn(<Foo<T, U> as WithAssoc>::Output) -> i32) {
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Foo<T, U>` cannot be sent between threads safely
66
|
77
= help: the trait `Send` is not implemented for `Foo<T, U>`
88
note: required for `Foo<T, U>` to implement `WithAssoc`
9-
--> $DIR/issue-83857-ub.rs:13:15
9+
--> $DIR/issue-83857-ub.rs:15:15
1010
|
1111
LL | impl<T: Send> WithAssoc for T {
1212
| ---- ^^^^^^^^^ ^

Diff for: tests/ui/impl-trait/auto-trait-leak

Whitespace-only changes.

0 commit comments

Comments
 (0)