Auto merge of #27571 - TimNN:pretty-no-crate-type, r=alexcrichton

Because I wanted to change the pretty test as little as possible I added `// compiler-flags: --crate-type=lib` to those test that failed because of a missing `main`. Passes `make check-stage1-pretty` locally.

cc @nrc
cc #27567
This commit is contained in:
bors 2015-08-11 17:27:34 +00:00
commit dcdcc6f6bc
13 changed files with 22 additions and 6 deletions

View File

@ -315,7 +315,6 @@ actual:\n\
// FIXME (#9639): This needs to handle non-utf8 paths
let mut args = vec!("-".to_string(),
"-Zno-trans".to_string(),
"--crate-type=lib".to_string(),
format!("--target={}", target),
"-L".to_string(),
config.build_base.to_str().unwrap().to_string(),

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --crate-type=lib
// pp-exact
fn f() -> [isize; 3] {
let picard = 0;

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --crate-type=lib
// pp-exact
/***
More than two asterisks means that it isn't a doc comment.

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --crate-type=lib
// pp-exact
fn f() {
/*

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --crate-type=lib
// pp-exact
fn f() {
} /*

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --crate-type=lib
// A bunch of tests for syntactic forms involving blocks that were
// previously ambiguous (e.g. 'if true { } *val;' gets parsed as a
// binop)

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --crate-type=lib
// pp-exact
// some single-line non-doc comment

View File

@ -1,5 +0,0 @@
trait X { }
impl X for uint { }
trait Y { }
impl Y for uint { }

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --crate-type=lib
trait X { fn dummy(&self) { } }
impl X for usize { }

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --crate-type=lib
// Issue #759
// Whitespace under block opening should not expand forever

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --crate-type=lib
// pp-exact
fn f(v: &[isize]) -> isize {

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --crate-type=lib
// pp-exact
use std::io::{self, Error as IoError};

View File

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// compile-flags: --crate-type=lib
// Preserve semicolons that disambiguate unops
fn f() { }