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:
commit
dcdcc6f6bc
|
@ -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(),
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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() {
|
||||
/*
|
||||
|
|
|
@ -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() {
|
||||
} /*
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
trait X { }
|
||||
impl X for uint { }
|
||||
|
||||
trait Y { }
|
||||
impl Y for uint { }
|
|
@ -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 { }
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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() { }
|
||||
|
|
Loading…
Reference in New Issue