Use phase(plugin) in tests
This commit is contained in:
parent
84243ed6e1
commit
ed41b71fbe
42 changed files with 43 additions and 43 deletions
|
@ -13,6 +13,6 @@
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)] extern crate t1 = "issue-13560-1";
|
#[phase(plugin)] extern crate t1 = "issue-13560-1";
|
||||||
#[phase(syntax, link)] extern crate t2 = "issue-13560-2";
|
#[phase(plugin, link)] extern crate t2 = "issue-13560-2";
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax, link)] extern crate log;
|
#[phase(plugin, link)] extern crate log;
|
||||||
extern crate debug;
|
extern crate debug;
|
||||||
|
|
||||||
pub fn foo<T>() {
|
pub fn foo<T>() {
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
|
|
||||||
#[phase(syntax, link)]
|
#[phase(plugin, link)]
|
||||||
extern crate core;
|
extern crate core;
|
||||||
|
|
||||||
struct A;
|
struct A;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
// no-pretty-expanded
|
// no-pretty-expanded
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax)] extern crate green;
|
#[phase(plugin)] extern crate green;
|
||||||
|
|
||||||
use std::string::String;
|
use std::string::String;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
// OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax)] extern crate green;
|
#[phase(plugin)] extern crate green;
|
||||||
extern crate sync;
|
extern crate sync;
|
||||||
|
|
||||||
use sync::Arc;
|
use sync::Arc;
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
#![feature(macro_rules, phase)]
|
#![feature(macro_rules, phase)]
|
||||||
|
|
||||||
extern crate regex;
|
extern crate regex;
|
||||||
#[phase(syntax)]extern crate regex_macros;
|
#[phase(plugin)]extern crate regex_macros;
|
||||||
extern crate sync;
|
extern crate sync;
|
||||||
|
|
||||||
use std::io;
|
use std::io;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#![allow(non_snake_case_functions)]
|
#![allow(non_snake_case_functions)]
|
||||||
#[phase(syntax)] extern crate green;
|
#[phase(plugin)] extern crate green;
|
||||||
extern crate sync;
|
extern crate sync;
|
||||||
|
|
||||||
use std::from_str::FromStr;
|
use std::from_str::FromStr;
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax)] extern crate green;
|
#[phase(plugin)] extern crate green;
|
||||||
green_start!(main)
|
green_start!(main)
|
||||||
|
|
||||||
fn start(n_tasks: int, token: int) {
|
fn start(n_tasks: int, token: int) {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
// aux-build:macro_crate_test.rs
|
// aux-build:macro_crate_test.rs
|
||||||
// ignore-stage1
|
// ignore-stage1
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
//~^ ERROR compile time crate loading is experimental and possibly buggy
|
//~^ ERROR compile time crate loading is experimental and possibly buggy
|
||||||
extern crate macro_crate_test;
|
extern crate macro_crate_test;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate macro_crate_test;
|
extern crate macro_crate_test;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate doesnt_exist; //~ ERROR can't find crate
|
extern crate doesnt_exist; //~ ERROR can't find crate
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate macro_crate_test;
|
extern crate macro_crate_test;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate fourcc;
|
extern crate fourcc;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate fourcc;
|
extern crate fourcc;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate fourcc;
|
extern crate fourcc;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate fourcc;
|
extern crate fourcc;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate fourcc;
|
extern crate fourcc;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate hexfloat;
|
extern crate hexfloat;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate hexfloat;
|
extern crate hexfloat;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
extern crate regex;
|
extern crate regex;
|
||||||
#[phase(syntax)] extern crate regex_macros;
|
#[phase(plugin)] extern crate regex_macros;
|
||||||
|
|
||||||
// Tests to make sure that `regex!` will produce a compile error when given
|
// Tests to make sure that `regex!` will produce a compile error when given
|
||||||
// an invalid regular expression.
|
// an invalid regular expression.
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
extern crate regex;
|
extern crate regex;
|
||||||
#[phase(syntax)] extern crate regex_macros;
|
#[phase(plugin)] extern crate regex_macros;
|
||||||
|
|
||||||
#[deny(unused_variable)]
|
#[deny(unused_variable)]
|
||||||
#[deny(dead_code)]
|
#[deny(dead_code)]
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
extern crate regex;
|
extern crate regex;
|
||||||
#[phase(syntax)] extern crate regex_macros;
|
#[phase(plugin)] extern crate regex_macros;
|
||||||
|
|
||||||
#[deny(unused_variable)]
|
#[deny(unused_variable)]
|
||||||
#[deny(dead_code)]
|
#[deny(dead_code)]
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
// error-pattern:whatever
|
// error-pattern:whatever
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax, link)] extern crate log;
|
#[phase(plugin, link)] extern crate log;
|
||||||
use std::os;
|
use std::os;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
// error-pattern:whatever
|
// error-pattern:whatever
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax, link)] extern crate log;
|
#[phase(plugin, link)] extern crate log;
|
||||||
use std::os;
|
use std::os;
|
||||||
use std::task;
|
use std::task;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
// error-pattern:whatever
|
// error-pattern:whatever
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax, link)] extern crate log;
|
#[phase(plugin, link)] extern crate log;
|
||||||
use std::os;
|
use std::os;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
extern crate lib;
|
extern crate lib;
|
||||||
#[phase(syntax)] extern crate fourcc;
|
#[phase(plugin)] extern crate fourcc;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
fourcc!("1234");
|
fourcc!("1234");
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate macro_crate_outlive_expansion_phase;
|
extern crate macro_crate_outlive_expansion_phase;
|
||||||
|
|
||||||
pub fn main() {}
|
pub fn main() {}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate macro_crate_test;
|
extern crate macro_crate_test;
|
||||||
|
|
||||||
#[into_foo]
|
#[into_foo]
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax, link)]
|
#[phase(plugin, link)]
|
||||||
extern crate macro_crate_test;
|
extern crate macro_crate_test;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate fourcc;
|
extern crate fourcc;
|
||||||
|
|
||||||
static static_val: u32 = fourcc!("foo ");
|
static static_val: u32 = fourcc!("foo ");
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// ignore-pretty
|
// ignore-pretty
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate hexfloat;
|
extern crate hexfloat;
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate extension = "syntax-extension-with-dll-deps-2";
|
extern crate extension = "syntax-extension-with-dll-deps-2";
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax, link)]
|
#[phase(plugin, link)]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
extern crate native;
|
extern crate native;
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// exec-env:RUST_LOG=conditional-debug-macro-off=4
|
// exec-env:RUST_LOG=conditional-debug-macro-off=4
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax, link)]
|
#[phase(plugin, link)]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
extern crate debug;
|
extern crate debug;
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax, link)]
|
#[phase(plugin, link)]
|
||||||
extern crate green;
|
extern crate green;
|
||||||
extern crate native;
|
extern crate native;
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// exec-env:RUST_LOG=logging-enabled-debug=debug
|
// exec-env:RUST_LOG=logging-enabled-debug=debug
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax, link)]
|
#[phase(plugin, link)]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
// exec-env:RUST_LOG=logging-enabled=info
|
// exec-env:RUST_LOG=logging-enabled=info
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax, link)]
|
#[phase(plugin, link)]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax, link)]
|
#[phase(plugin, link)]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
|
||||||
use std::io::Command;
|
use std::io::Command;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate macro_crate_def_only;
|
extern crate macro_crate_def_only;
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
extern crate macro_export_inner_module;
|
extern crate macro_export_inner_module;
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
|
|
||||||
#[phase(syntax)]
|
#[phase(plugin)]
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
// exec-env:RUST_LOG=debug
|
// exec-env:RUST_LOG=debug
|
||||||
|
|
||||||
#![feature(phase)]
|
#![feature(phase)]
|
||||||
#[phase(syntax, link)]
|
#[phase(plugin, link)]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
extern crate green;
|
extern crate green;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue