Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #27567: remove --crate-type=lib from pretty test #27571

Merged
merged 2 commits into from
Aug 11, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/compiletest/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 2 additions & 0 deletions src/test/pretty/blank-lines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/test/pretty/block-comment-multiple-asterisks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/test/pretty/block-comment-trailing-whitespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
/*
Expand Down
2 changes: 2 additions & 0 deletions src/test/pretty/block-comment-trailing-whitespace2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
} /*
Expand Down
2 changes: 2 additions & 0 deletions src/test/pretty/block-disambig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/test/pretty/doc-comments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions src/test/pretty/empty-impl.pp

This file was deleted.

2 changes: 2 additions & 0 deletions src/test/pretty/empty-impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 { }

Expand Down
2 changes: 2 additions & 0 deletions src/test/pretty/empty-lines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions src/test/pretty/for-comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions src/test/pretty/import-renames.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
2 changes: 2 additions & 0 deletions src/test/pretty/unary-op-disambig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() { }
Expand Down