fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
2.6 KiB39 linesraw
1warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
2  --> $DIR/issue-33140-traitobject-crate.rs:85:1
3   |
4LL | unsafe impl Trait for dyn (::std::marker::Send) + Sync { }
5   | ------------------------------------------------------ first implementation here
6LL | unsafe impl Trait for dyn (::std::marker::Send) + Send + Sync { }
7   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
8   |
9note: lint level defined here
10  --> $DIR/issue-33140-traitobject-crate.rs:3:9
11   |
12LL | #![warn(order_dependent_trait_objects)]
13   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
15   = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
16
17warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
18  --> $DIR/issue-33140-traitobject-crate.rs:86:1
19   |
20LL | unsafe impl Trait for dyn (::std::marker::Send) + Send + Sync { }
21   | ------------------------------------------------------------- first implementation here
22LL | unsafe impl Trait for dyn (::std::marker::Sync) + Send { }
23   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
24   |
25   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
26   = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
27
28warning: conflicting implementations of trait `Trait` for type `(dyn std::marker::Send + std::marker::Sync + 'static)`: (E0119)
29  --> $DIR/issue-33140-traitobject-crate.rs:88:1
30   |
31LL | unsafe impl Trait for dyn (::std::marker::Sync) + Send { }
32   | ------------------------------------------------------ first implementation here
33LL | unsafe impl Trait for dyn (::std::marker::Sync) + Sync { }
34LL | unsafe impl Trait for dyn (::std::marker::Sync) + Send + Sync { }
35   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
36   |
37   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
38   = note: for more information, see issue #56484 <https://github.com/rust-lang/rust/issues/56484>
39