Skip to content

Commit 3e10785

Browse files
committed
Test fixes and rebase conflicts
1 parent 1138f88 commit 3e10785

File tree

10 files changed

+8
-13
lines changed

10 files changed

+8
-13
lines changed

src/compiletest/compiletest.rs

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
#![feature(box_syntax)]
1414
#![feature(collections)]
15-
#![feature(core)]
1615
#![feature(int_uint)]
1716
#![feature(io)]
1817
#![feature(os)]

src/libgetopts/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090

9191
#![deny(missing_docs)]
9292
#![feature(collections)]
93-
#![feature(core)]
9493
#![feature(int_uint)]
9594
#![feature(slicing_syntax)]
9695
#![feature(staged_api)]

src/liblibc/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1930,7 +1930,7 @@ pub mod types {
19301930
pub iSecurityScheme: c_int,
19311931
pub dwMessageSize: DWORD,
19321932
pub dwProviderReserved: DWORD,
1933-
pub szProtocol: [u8; WSAPROTOCOL_LEN as usize + 1],
1933+
pub szProtocol: [u8; WSAPROTOCOL_LEN as usize + 1us],
19341934
}
19351935

19361936
pub type LPWSAPROTOCOL_INFO = *mut WSAPROTOCOL_INFO;

src/libterm/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252

5353
#![feature(box_syntax)]
5454
#![feature(collections)]
55-
#![feature(core)]
5655
#![feature(int_uint)]
5756
#![feature(io)]
5857
#![feature(path)]

src/test/compile-fail/issue-17551.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
struct B<T>;
1414

1515
fn main() {
16-
let foo = B;
17-
let closure = || foo; //~ ERROR unable to infer enough type information
16+
let foo = B; //~ ERROR: unable to infer enough type information
17+
let closure = || foo;
1818
}

src/test/compile-fail/issue-17999.rs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// except according to those terms.
1010

1111
#![deny(unused_variables)]
12-
#![feature(core)]
1312

1413
fn main() {
1514
for _ in 1..101 {

src/test/compile-fail/issue-20801.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ fn const_ptr() -> *const T {
3434

3535
pub fn main() {
3636
let a = unsafe { *mut_ref() };
37-
//~^ ERROR cannot move out of dereference of borrowed content
37+
//~^ ERROR cannot move out of borrowed content
3838

3939
let b = unsafe { *imm_ref() };
40-
//~^ ERROR cannot move out of dereference of borrowed content
40+
//~^ ERROR cannot move out of borrowed content
4141

4242
let c = unsafe { *mut_ptr() };
4343
//~^ ERROR cannot move out of dereference of unsafe pointer

src/test/compile-fail/issue-2150.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![deny(unreachable_code)]
1212
#![allow(unused_variables)]
1313
#![allow(dead_code)]
14-
#![feature(core)]
1514

1615
fn fail_len(v: Vec<isize> ) -> usize {
1716
let mut i = 3;

src/test/compile-fail/liveness-unused.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![deny(unused_variables)]
1212
#![deny(unused_assignments)]
1313
#![allow(dead_code, non_camel_case_types)]
14-
#![feature(core)]
1514

1615
fn f1(x: isize) {
1716
//~^ ERROR unused variable: `x`

src/test/run-make/issue-22131/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
all: foo.rs
44
$(RUSTC) --cfg 'feature="bar"' --crate-type lib foo.rs
5-
$(RUSTDOC) --test --cfg 'feature="bar"' -L $(TMPDIR) foo.rs |\
6-
grep --quiet 'test foo_0 ... ok'
5+
$(HOST_RPATH_ENV) $(RUSTDOC) --test --cfg 'feature="bar"' \
6+
-L $(TMPDIR) foo.rs |\
7+
grep --quiet 'test foo_0 ... ok'

0 commit comments

Comments
 (0)