move PinBox into pin module and export through std

This commit is contained in:
Niv Kaminer 2018-08-09 19:33:57 +03:00
parent 13da951868
commit 971d7ed249
8 changed files with 233 additions and 207 deletions

View file

@ -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::{

View file

@ -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;

View file

@ -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' },
],
};

View file

@ -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' },
],
};