tests: Move run-pass tests with naming conflicts to ui

This commit is contained in:
Vadim Petrochenkov 2019-07-27 02:07:23 +03:00
parent 9be35f82c1
commit 5486cc69bd
71 changed files with 7 additions and 86 deletions

View File

@ -1,22 +0,0 @@
// no-prefer-dynamic
// This aux-file will require the eh_personality function to be codegen'd, but
// it hasn't been defined just yet. Make sure we don't explode.
#![no_std]
#![crate_type = "rlib"]
struct A;
impl core::ops::Drop for A {
fn drop(&mut self) {}
}
pub fn foo() {
let _a = A;
panic!("wut");
}
mod std {
pub use core::{option, fmt};
}

View File

@ -1,10 +0,0 @@
#![crate_type = "rlib"]
#![feature(fundamental)]
pub trait MyCopy { }
impl MyCopy for i32 { }
pub struct MyStruct<T>(T);
#[fundamental]
pub struct MyFundamentalStruct<T>(T);

View File

@ -1,15 +0,0 @@
#![crate_type="lib"]
pub trait Remote {
fn foo(&self) { }
}
pub trait Remote1<T> {
fn foo(&self, t: T) { }
}
pub trait Remote2<T, U> {
fn foo(&self, t: T, u: U) { }
}
pub struct Pair<T,U>(T,U);

View File

@ -1,5 +0,0 @@
// Crate that exports a const fn. Used for testing cross-crate.
#![crate_type="rlib"]
pub const fn foo() -> usize { 22 }

View File

@ -1,12 +0,0 @@
pub fn increment(x: usize) -> usize {
x + 1
}
#[macro_export]
macro_rules! increment {
($x:expr) => ($crate::increment($x))
}
pub fn check_local() {
assert_eq!(increment!(3), 4);
}

View File

@ -1,6 +0,0 @@
#![feature(staged_api)]
#![stable(feature = "unit_test", since = "1.0.0")]
#[unstable(feature = "unstable_macros", issue = "0")]
#[macro_export]
macro_rules! unstable_macro{ () => () }

View File

@ -1,9 +0,0 @@
// Simple smoke test that unsafe traits can be compiled etc.
pub unsafe trait Foo {
fn foo(&self) -> isize;
}
unsafe impl Foo for isize {
fn foo(&self) -> isize { *self }
}

View File

@ -1,9 +1,9 @@
// run-pass
// aux-build:attr-stmt-expr.rs
// aux-build:attr-stmt-expr-rpass.rs
#![feature(stmt_expr_attributes, proc_macro_hygiene)]
extern crate attr_stmt_expr;
extern crate attr_stmt_expr_rpass as attr_stmt_expr;
use attr_stmt_expr::{expect_let, expect_print_stmt, expect_expr, expect_print_expr,
no_output, noop};

View File

@ -1,9 +1,9 @@
// run-pass
#![allow(unused_variables)]
// aux-build:lifetimes.rs
// aux-build:lifetimes-rpass.rs
extern crate lifetimes;
extern crate lifetimes_rpass as lifetimes;
use lifetimes::*;
lifetimes_bang! {

View File

@ -1,10 +1,10 @@
// run-pass
// aux-build:test-macros.rs
// aux-build:test-macros-rpass.rs
// ignore-wasm32
#![feature(macros_in_extern)]
extern crate test_macros;
extern crate test_macros_rpass as test_macros;
use test_macros::{nop_attr, no_output, emit_input};

View File

@ -3,7 +3,7 @@
// there can be both an rmeta and an rlib file and rustc will prefer the rlib.
// aux-build:rmeta-rmeta.rs
// aux-build:rmeta-rlib.rs
// aux-build:rmeta-rlib-rpass.rs
extern crate rmeta_aux;
use rmeta_aux::Foo;