Change std::kinds
to std::markers
; flatten std::kinds::marker
[breaking-change]
This commit is contained in:
parent
6539cb417f
commit
503709708c
154 changed files with 635 additions and 623 deletions
|
@ -8,17 +8,17 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use std::kinds::marker;
|
||||
use std::markers;
|
||||
|
||||
struct Foo {
|
||||
a: int,
|
||||
ns: marker::NoSend
|
||||
ns: markers::NoSend
|
||||
}
|
||||
|
||||
fn bar<T: Send>(_: T) {}
|
||||
|
||||
fn main() {
|
||||
let x = Foo { a: 5, ns: marker::NoSend };
|
||||
let x = Foo { a: 5, ns: markers::NoSend };
|
||||
bar(x);
|
||||
//~^ ERROR the trait `core::kinds::Send` is not implemented
|
||||
//~^ ERROR the trait `core::markers::Send` is not implemented
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue