提交 dcdcc6f6 编写于 作者: B bors

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
......@@ -315,7 +315,6 @@ fn make_typecheck_args(config: &Config, props: &TestProps, testfile: &Path) -> P
// 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
......
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() { }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册