move PinBox into pin module and export through std
This commit is contained in:
parent
13da951868
commit
971d7ed249
8 changed files with 233 additions and 207 deletions
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
#![feature(arbitrary_self_types, async_await, await_macro, futures_api, pin)]
|
||||
|
||||
use std::boxed::PinBox;
|
||||
use std::pin::PinBox;
|
||||
use std::pin::PinMut;
|
||||
use std::future::Future;
|
||||
use std::sync::{
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#![feature(arbitrary_self_types, futures_api, pin)]
|
||||
#![allow(unused)]
|
||||
|
||||
use std::boxed::PinBox;
|
||||
use std::pin::PinBox;
|
||||
use std::future::Future;
|
||||
use std::pin::PinMut;
|
||||
use std::rc::Rc;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const QUERY = 'pinbox::new';
|
|||
|
||||
const EXPECTED = {
|
||||
'others': [
|
||||
{ 'path': 'std::boxed::PinBox', 'name': 'new' },
|
||||
{ 'path': 'alloc::boxed::PinBox', 'name': 'new' },
|
||||
{ 'path': 'std::pin::PinBox', 'name': 'new' },
|
||||
{ 'path': 'alloc::pin::PinBox', 'name': 'new' },
|
||||
],
|
||||
};
|
||||
|
|
|
|||
|
|
@ -14,6 +14,6 @@ const EXPECTED = {
|
|||
'others': [
|
||||
{ 'path': 'std::vec::Vec', 'name': 'new' },
|
||||
{ 'path': 'std::vec::Vec', 'name': 'ne' },
|
||||
{ 'path': 'std::boxed::PinBox', 'name': 'new' },
|
||||
{ 'path': 'std::pin::PinBox', 'name': 'new' },
|
||||
],
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue