Test fixes and rebase conflicts

This commit is contained in:
Alex Crichton 2015-02-10 11:05:20 -08:00
parent 1138f88f82
commit 3e10785e21
10 changed files with 8 additions and 13 deletions

View File

@ -12,7 +12,6 @@
#![feature(box_syntax)]
#![feature(collections)]
#![feature(core)]
#![feature(int_uint)]
#![feature(io)]
#![feature(os)]

View File

@ -90,7 +90,6 @@
#![deny(missing_docs)]
#![feature(collections)]
#![feature(core)]
#![feature(int_uint)]
#![feature(slicing_syntax)]
#![feature(staged_api)]

View File

@ -1930,7 +1930,7 @@ pub mod types {
pub iSecurityScheme: c_int,
pub dwMessageSize: DWORD,
pub dwProviderReserved: DWORD,
pub szProtocol: [u8; WSAPROTOCOL_LEN as usize + 1],
pub szProtocol: [u8; WSAPROTOCOL_LEN as usize + 1us],
}
pub type LPWSAPROTOCOL_INFO = *mut WSAPROTOCOL_INFO;

View File

@ -52,7 +52,6 @@
#![feature(box_syntax)]
#![feature(collections)]
#![feature(core)]
#![feature(int_uint)]
#![feature(io)]
#![feature(path)]

View File

@ -13,6 +13,6 @@
struct B<T>;
fn main() {
let foo = B;
let closure = || foo; //~ ERROR unable to infer enough type information
let foo = B; //~ ERROR: unable to infer enough type information
let closure = || foo;
}

View File

@ -9,7 +9,6 @@
// except according to those terms.
#![deny(unused_variables)]
#![feature(core)]
fn main() {
for _ in 1..101 {

View File

@ -34,10 +34,10 @@ fn const_ptr() -> *const T {
pub fn main() {
let a = unsafe { *mut_ref() };
//~^ ERROR cannot move out of dereference of borrowed content
//~^ ERROR cannot move out of borrowed content
let b = unsafe { *imm_ref() };
//~^ ERROR cannot move out of dereference of borrowed content
//~^ ERROR cannot move out of borrowed content
let c = unsafe { *mut_ptr() };
//~^ ERROR cannot move out of dereference of unsafe pointer

View File

@ -11,7 +11,6 @@
#![deny(unreachable_code)]
#![allow(unused_variables)]
#![allow(dead_code)]
#![feature(core)]
fn fail_len(v: Vec<isize> ) -> usize {
let mut i = 3;

View File

@ -11,7 +11,6 @@
#![deny(unused_variables)]
#![deny(unused_assignments)]
#![allow(dead_code, non_camel_case_types)]
#![feature(core)]
fn f1(x: isize) {
//~^ ERROR unused variable: `x`

View File

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