mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 09:23:05 +00:00
tests: Move run-pass tests with naming conflicts to ui
This commit is contained in:
parent
9be35f82c1
commit
5486cc69bd
@ -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};
|
||||
}
|
@ -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);
|
@ -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);
|
@ -1,5 +0,0 @@
|
||||
// Crate that exports a const fn. Used for testing cross-crate.
|
||||
|
||||
#![crate_type="rlib"]
|
||||
|
||||
pub const fn foo() -> usize { 22 }
|
@ -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);
|
||||
}
|
@ -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{ () => () }
|
@ -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 }
|
||||
}
|
@ -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};
|
||||
|
@ -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! {
|
@ -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};
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user