Skip to content

Commit f8acc83

Browse files
committed
Rustup to 1.9.0-nightly (e1195c2 2016-03-31)
This does not require a version bump, it only affects tests.
1 parent f16da4f commit f8acc83

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

tests/compile-fail/transmute.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@ unsafe fn _ptr_to_ref<T, U>(p: *const T, m: *mut T, o: *const U, om: *mut U) {
6262
fn useless() {
6363
unsafe {
6464
let _: Vec<i32> = core::intrinsics::transmute(my_vec());
65-
//~^ ERROR transmute from a type (`collections::vec::Vec<i32>`) to itself
65+
//~^ ERROR transmute from a type (`std::vec::Vec<i32>`) to itself
6666

6767
let _: Vec<i32> = core::mem::transmute(my_vec());
68-
//~^ ERROR transmute from a type (`collections::vec::Vec<i32>`) to itself
68+
//~^ ERROR transmute from a type (`std::vec::Vec<i32>`) to itself
6969

7070
let _: Vec<i32> = std::intrinsics::transmute(my_vec());
71-
//~^ ERROR transmute from a type (`collections::vec::Vec<i32>`) to itself
71+
//~^ ERROR transmute from a type (`std::vec::Vec<i32>`) to itself
7272

7373
let _: Vec<i32> = std::mem::transmute(my_vec());
74-
//~^ ERROR transmute from a type (`collections::vec::Vec<i32>`) to itself
74+
//~^ ERROR transmute from a type (`std::vec::Vec<i32>`) to itself
7575

7676
let _: Vec<i32> = my_transmute(my_vec());
77-
//~^ ERROR transmute from a type (`collections::vec::Vec<i32>`) to itself
77+
//~^ ERROR transmute from a type (`std::vec::Vec<i32>`) to itself
7878

7979
let _: Vec<u32> = core::intrinsics::transmute(my_vec());
8080
let _: Vec<u32> = core::mem::transmute(my_vec());
@@ -92,16 +92,16 @@ fn crosspointer() {
9292

9393
unsafe {
9494
let _: Vec<i32> = core::intrinsics::transmute(vec_const_ptr);
95-
//~^ ERROR transmute from a type (`*const collections::vec::Vec<i32>`) to the type that it points to (`collections::vec::Vec<i32>`)
95+
//~^ ERROR transmute from a type (`*const std::vec::Vec<i32>`) to the type that it points to (`std::vec::Vec<i32>`)
9696

9797
let _: Vec<i32> = core::intrinsics::transmute(vec_mut_ptr);
98-
//~^ ERROR transmute from a type (`*mut collections::vec::Vec<i32>`) to the type that it points to (`collections::vec::Vec<i32>`)
98+
//~^ ERROR transmute from a type (`*mut std::vec::Vec<i32>`) to the type that it points to (`std::vec::Vec<i32>`)
9999

100100
let _: *const Vec<i32> = core::intrinsics::transmute(my_vec());
101-
//~^ ERROR transmute from a type (`collections::vec::Vec<i32>`) to a pointer to that type (`*const collections::vec::Vec<i32>`)
101+
//~^ ERROR transmute from a type (`std::vec::Vec<i32>`) to a pointer to that type (`*const std::vec::Vec<i32>`)
102102

103103
let _: *mut Vec<i32> = core::intrinsics::transmute(my_vec());
104-
//~^ ERROR transmute from a type (`collections::vec::Vec<i32>`) to a pointer to that type (`*mut collections::vec::Vec<i32>`)
104+
//~^ ERROR transmute from a type (`std::vec::Vec<i32>`) to a pointer to that type (`*mut std::vec::Vec<i32>`)
105105
}
106106
}
107107

0 commit comments

Comments
 (0)