about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorNiv Kaminer <nivkner@zoho.com>2018-08-09 19:33:57 +0300
committerNiv Kaminer <nivkner@zoho.com>2018-08-23 01:37:03 +0300
commit971d7ed24966e64c8ec8352ada433b672c25012f (patch)
treede9aef96a16f24ea3f6461fcd52cb8a5998aa5e9 /src/test
parent13da951868a1b48108592cadbf7627d48322c859 (diff)
downloadrust-971d7ed24966e64c8ec8352ada433b672c25012f.tar.gz
rust-971d7ed24966e64c8ec8352ada433b672c25012f.zip
move PinBox into pin module and export through std
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/async-await.rs2
-rw-r--r--src/test/run-pass/futures-api.rs2
-rw-r--r--src/test/rustdoc-js/pinbox-new.js4
-rw-r--r--src/test/rustdoc-js/vec-new.js2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/test/run-pass/async-await.rs b/src/test/run-pass/async-await.rs
index 7e79a210f15..46f22845907 100644
--- a/src/test/run-pass/async-await.rs
+++ b/src/test/run-pass/async-await.rs
@@ -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::{
diff --git a/src/test/run-pass/futures-api.rs b/src/test/run-pass/futures-api.rs
index ff2facd3cd2..69a04437691 100644
--- a/src/test/run-pass/futures-api.rs
+++ b/src/test/run-pass/futures-api.rs
@@ -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;
diff --git a/src/test/rustdoc-js/pinbox-new.js b/src/test/rustdoc-js/pinbox-new.js
index 061c7b30741..55842dc8e45 100644
--- a/src/test/rustdoc-js/pinbox-new.js
+++ b/src/test/rustdoc-js/pinbox-new.js
@@ -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' },
     ],
 };
diff --git a/src/test/rustdoc-js/vec-new.js b/src/test/rustdoc-js/vec-new.js
index 702953e2e9d..4a654ccb135 100644
--- a/src/test/rustdoc-js/vec-new.js
+++ b/src/test/rustdoc-js/vec-new.js
@@ -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' },
     ],
 };