Skip to content

Commit e3a1165

Browse files
committed
Auto merge of #157447 - danieljofficial:move-tests-cross-crate, r=<try>
Move cross crate tests into the appropriate folder try-job: armhf-gnu
2 parents 39ec825 + dc17feb commit e3a1165

99 files changed

Lines changed: 412 additions & 321 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/ui/issues/auxiliary/issue-36954.rs renamed to tests/ui/cross-crate/auxiliary/const-fn-evaluated-cross-crate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Auxiliary crate testing this issue https://github.com/rust-lang/rust/issues/36954
12
#![crate_type = "lib"]
23

34
const fn foo(i: i32) -> i32 {

tests/ui/issues/auxiliary/issue-3012-1.rs renamed to tests/ui/cross-crate/auxiliary/construct-extern-struct-with-destructor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#![crate_name="socketlib"]
1+
//! Auxiliary crate testing this issue https://github.com/rust-lang/rust/issues/3012
2+
#![crate_name="construct_extern_struct_with_destructor"]
23
#![crate_type = "lib"]
34

45
pub mod socket {

tests/ui/issues/auxiliary/issue-29265.rs renamed to tests/ui/cross-crate/auxiliary/cross-crate-static-reference-and-field-access.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Auxiliary crate testing this issue https://github.com/rust-lang/rust/issues/29265
12
#![crate_type = "lib"]
23

34
pub struct SomeType {

tests/ui/issues/auxiliary/issue-3979-traits.rs renamed to tests/ui/cross-crate/auxiliary/cross-crate-trait-inheritance-on-default-method.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#![crate_name="issue_3979_traits"]
1+
//! Auxiliary crate testing this issue https://github.com/rust-lang/rust/issues/3979
2+
#![crate_name="cross_crate_trait_inheritance_on_default_method"]
23

34
#![crate_type = "lib"]
45

tests/ui/issues/auxiliary/issue-2526.rs renamed to tests/ui/cross-crate/auxiliary/cross-crate-type-alias-with-nested-destructors.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#![crate_name="issue_2526"]
1+
//! Auxiliary crate testing this issue https://github.com/rust-lang/rust/issues/2526
2+
#![crate_name="cross_crate_type_alias_with_nested_destructors"]
23
#![crate_type = "lib"]
34

45
use std::marker;

tests/ui/issues/auxiliary/issue-38226-aux.rs renamed to tests/ui/cross-crate/auxiliary/default-trait-method-reachable-through-trait-object.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Auxiliary crate testing this issue https://github.com/rust-lang/rust/issues/38226
12
#![crate_type="rlib"]
23

34
#[inline(never)]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
//! Auxiliary crate testing this issue https://github.com/rust-lang/rust/issues/41053
2+
pub struct Test;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//! Auxiliary crate testing this issue https://github.com/rust-lang/rust/issues/4545
2+
pub struct S<T>(Option<T>);
3+
pub fn mk<T>() -> S<T> { S(None) }
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
//! Auxiliary crate testing this issue https://github.com/rust-lang/rust/issues/42007
2+
#[repr(u8)]
3+
pub enum E {
4+
B = 1 as u8,
5+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//! Auxiliary crate testing this issue https://github.com/rust-lang/rust/issues/48984
2+
#![crate_type = "lib"]
3+
#![crate_name = "extern_trait_bound_with_array_associated_type"]
4+
5+
pub trait Foo { type Item; }
6+
7+
pub trait Bar: Foo<Item=[u8;1]> { }

0 commit comments

Comments
 (0)