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