Skip to content

Commit 0ad3207

Browse files
committed
Auto merge of #59120 - alexreg:move-issue-tests-1, r=varkor
Moved issue tests to subdirs and normalised names Consistency, decluttering, ease of navigation :-) r? @Centril
2 parents 719b0d9 + fe30743 commit 0ad3207

File tree

206 files changed

+177
-188
lines changed

Some content is hidden

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

206 files changed

+177
-188
lines changed

src/test/debuginfo/issue-13213.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// min-lldb-version: 310
22

3-
// aux-build:issue13213aux.rs
3+
// aux-build:issue-13213-aux.rs
44

5-
extern crate issue13213aux;
5+
extern crate issue_13213_aux;
66

77
// compile-flags:-g
88

99
// This tests make sure that we get no linker error when using a completely inlined static. Some
1010
// statics that are marked with AvailableExternallyLinkage in the importing crate, may actually not
1111
// be available because they have been optimized out from the exporting crate.
1212
fn main() {
13-
let b: issue13213aux::S = issue13213aux::A;
13+
let b: issue_13213_aux::S = issue_13213_aux::A;
1414
println!("Nothing to do here...");
1515
}

src/test/incremental/issue-49482.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// aux-build:issue_49482_macro_def.rs
2-
// aux-build:issue_49482_reexport.rs
1+
// aux-build:issue-49482-macro-def.rs
2+
// aux-build:issue-49482-reexport.rs
33
// revisions: rpass1
44

55
extern crate issue_49482_reexport;

src/test/incremental/issue-54059.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:issue_54059.rs
1+
// aux-build:issue-54059.rs
22
// ignore-wasm32-bare no libc for ffi testing
33
// ignore-windows - dealing with weird symbols issues on dylibs isn't worth it
44
// revisions: rpass1

src/test/pretty/issue_12590_a.rs src/test/pretty/issue-12590-a.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
// The next line should not be expanded
44

5+
#[path = "issue-12590-b.rs"]
56
mod issue_12590_b;
67

78
fn main() { }

src/test/pretty/issue-12590-b.rs

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Second part of two-file test
2+
3+
fn b() { }
4+
5+
fn main() { }

src/test/pretty/issue_12590_c.pp src/test/pretty/issue-12590-c.pp

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
extern crate std;
77
// pretty-compare-only
88
// pretty-mode:expanded
9-
// pp-exact:issue_12590_c.pp
9+
// pp-exact:issue-12590-c.pp
1010

1111
// The next line should be expanded
1212

13+
#[path = "issue-12590-b.rs"]
1314
mod issue_12590_b {
1415

1516
fn b() { }
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// pretty-compare-only
22
// pretty-mode:expanded
3-
// pp-exact:issue_12590_c.pp
3+
// pp-exact:issue-12590-c.pp
44

55
// The next line should be expanded
66

7+
#[path = "issue-12590-b.rs"]
78
mod issue_12590_b;
89

910
fn main() { }

src/test/pretty/issue_12590_b.rs

-4
This file was deleted.

src/test/run-pass-fulldeps/custom-derive-partial-eq.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:custom_derive_partial_eq.rs
1+
// aux-build:custom-derive-partial-eq.rs
22
// ignore-stage1
33
#![feature(plugin)]
44
#![plugin(custom_derive_partial_eq)]

src/test/run-pass-fulldeps/derive-totalsum-attr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:custom_derive_plugin_attr.rs
1+
// aux-build:custom-derive-plugin-attr.rs
22
// ignore-stage1
33

44
#![feature(plugin, rustc_attrs)]

src/test/run-pass-fulldeps/derive-totalsum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:custom_derive_plugin.rs
1+
// aux-build:custom-derive-plugin.rs
22
// ignore-stage1
33

44
#![feature(plugin)]

src/test/run-pass-fulldeps/issue-15778-pass.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:lint_for_crate.rs
1+
// aux-build:lint-for-crate.rs
22
// ignore-stage1
33
// compile-flags: -D crate-not-okay
44

src/test/run-pass-fulldeps/issue_24106.rs src/test/run-pass-fulldeps/issue-24106.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:issue_24106.rs
1+
// aux-build:issue-24106.rs
22

33
extern crate issue_24106;
44

src/test/run-pass-fulldeps/issue-40663.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![allow(dead_code)]
2-
// aux-build:custom_derive_plugin.rs
2+
// aux-build:custom-derive-plugin.rs
33
// ignore-stage1
44

55
#![feature(plugin)]

src/test/run-pass-fulldeps/llvm-pass-plugin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:llvm_pass_plugin.rs
1+
// aux-build:llvm-pass-plugin.rs
22
// ignore-stage1
33

44
#![feature(plugin)]

src/test/run-pass-fulldeps/macro-crate-multi-decorator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![allow(dead_code)]
33
#![allow(unused_variables)]
44
#![allow(unused_imports)]
5-
// aux-build:macro_crate_test.rs
5+
// aux-build:macro-crate-test.rs
66
// ignore-stage1
77

88
#![feature(rustc_attrs)]

src/test/run-pass-fulldeps/plugin-args-1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:plugin_args.rs
1+
// aux-build:plugin-args.rs
22
// ignore-stage1
33

44
#![feature(plugin)]

src/test/run-pass-fulldeps/plugin-args-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:plugin_args.rs
1+
// aux-build:plugin-args.rs
22
// ignore-stage1
33

44
#![feature(plugin)]

src/test/run-pass-fulldeps/plugin-args-3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:plugin_args.rs
1+
// aux-build:plugin-args.rs
22
// ignore-stage1
33

44
#![feature(plugin)]

src/test/run-pass-fulldeps/roman-numerals-macro.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// aux-build:roman_numerals.rs
1+
// aux-build:roman-numerals.rs
22
// ignore-stage1
33

44
#![feature(plugin)]
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#![crate_type = "lib"]
22

3+
#[path = "issue-3136-a.rs"]
34
pub mod issue_3136_a;

src/test/run-pass/issues/issue-10031.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// aux-build:issue_10031_aux.rs
2+
// aux-build:issue-10031-aux.rs
33
// pretty-expanded FIXME #23616
44

55
extern crate issue_10031_aux;

src/test/run-pass/issues/issue-12612.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// run-pass
22
#![allow(unused_imports)]
3-
// aux-build:issue_12612_1.rs
4-
// aux-build:issue_12612_2.rs
3+
// aux-build:issue-12612-1.rs
4+
// aux-build:issue-12612-2.rs
55

66
// pretty-expanded FIXME #23616
77

src/test/run-pass/issues/issue-13507-2.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// run-pass
22
#![allow(unused_imports)]
3-
// aux-build:issue13507.rs
3+
// aux-build:issue-13507.rs
44

5-
extern crate issue13507;
6-
use issue13507::testtypes;
5+
extern crate issue_13507;
6+
use issue_13507::testtypes;
77

88
use std::any::TypeId;
99

1010
pub fn type_ids() -> Vec<TypeId> {
11-
use issue13507::testtypes::*;
11+
use issue_13507::testtypes::*;
1212
vec![
1313
TypeId::of::<FooBool>(),
1414
TypeId::of::<FooInt>(),
@@ -30,7 +30,7 @@ pub fn type_ids() -> Vec<TypeId> {
3030
}
3131

3232
pub fn main() {
33-
let othercrate = issue13507::testtypes::type_ids();
33+
let othercrate = issue_13507::testtypes::type_ids();
3434
let thiscrate = type_ids();
3535
assert_eq!(thiscrate, othercrate);
3636
}
File renamed without changes.

src/test/run-pass/issues/issue-19293.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// aux-build:issue_19293.rs
2+
// aux-build:issue-19293.rs
33
// pretty-expanded FIXME #23616
44

55
extern crate issue_19293;

src/test/run-pass/issues/issue-20389.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// run-pass
22
#![allow(dead_code)]
3-
// aux-build:issue_20389.rs
3+
// aux-build:issue-20389.rs
44

55
// pretty-expanded FIXME #23616
66

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// run-pass
2+
// aux-build:issue-2170-lib.rs
3+
// pretty-expanded FIXME #23616
4+
5+
extern crate issue_2170_lib;
6+
7+
pub fn main() {
8+
// let _ = issue_2170_lib::rsrc(2);
9+
}

src/test/run-pass/issues/issue-2316-c.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// run-pass
2-
// aux-build:issue_2316_a.rs
3-
// aux-build:issue_2316_b.rs
2+
// aux-build:issue-2316-a.rs
3+
// aux-build:issue-2316-b.rs
44

55
// pretty-expanded FIXME #23616
66

src/test/run-pass/issues/issue24687-embed-debuginfo/auxiliary/issue24687_lib.rs src/test/run-pass/issues/issue-24687-embed-debuginfo/auxiliary/issue-24687-lib.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
// that separate file has many multi-byte characters, to try to
55
// encourage the compiler to trip on them.
66

7-
mod issue24687_mbcs_in_comments;
7+
#[path = "issue-24687-mbcs-in-comments.rs"]
8+
mod issue_24687_mbcs_in_comments;
89

9-
pub use issue24687_mbcs_in_comments::D;
10+
pub use issue_24687_mbcs_in_comments::D;
1011

src/test/run-pass/issues/issue24687-embed-debuginfo/main.rs src/test/run-pass/issues/issue-24687-embed-debuginfo/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// run-pass
2-
// aux-build:issue24687_lib.rs
2+
// aux-build:issue-24687-lib.rs
33
// compile-flags:-g
44

5-
extern crate issue24687_lib as d;
5+
extern crate issue_24687_lib as d;
66

77
fn main() {
8-
// Create a d, which has a destructor whose body will be codegen'ed
8+
// Create a `D`, which has a destructor whose body will be codegen'ed
99
// into the generated code here, and thus the local debuginfo will
1010
// need references into the original source locations from
1111
// `importer` above.

src/test/run-pass/issues/issue-2472.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// aux-build:issue_2472_b.rs
2+
// aux-build:issue-2472-b.rs
33

44
// pretty-expanded FIXME #23616
55

src/test/run-pass/issues/issue-26873-multifile.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
// ignore-pretty issue #37195
77

8-
mod issue_26873_multifile;
8+
#[path = "issue-26873-multifile/mod.rs"]
9+
mod multifile;
910

1011
fn main() {}

src/test/run-pass/issues/issue-2723-b.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// aux-build:issue_2723_a.rs
2+
// aux-build:issue-2723-a.rs
33

44
extern crate issue_2723_a;
55
use issue_2723_a::f;
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// run-pass
2-
// aux-build:issue_3136_a.rc
2+
// aux-build:issue-3136-a.rc
33

44
// pretty-expanded FIXME #23616
55

66
extern crate issue_3136_a;
7+
78
pub fn main() {}

src/test/run-pass/issues/issue-34796.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// the symbol name.
99
// The fix was to make the order in which predicates get encoded stable.
1010

11-
// aux-build:issue34796aux.rs
12-
extern crate issue34796aux;
11+
// aux-build:issue-34796-aux.rs
12+
extern crate issue_34796_aux;
1313

1414
fn mk<T>() -> T { loop {} }
1515

@@ -19,7 +19,7 @@ struct Data<T, E> {
1919
}
2020

2121
fn main() {
22-
issue34796aux::bar(|()| {
22+
issue_34796_aux::bar(|()| {
2323
Data::<(), std::io::Error> {
2424
data: mk(),
2525
error: mk(),
+5-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
// run-pass
2-
// aux-build:issue_38190.rs
2+
// aux-build:issue-38190.rs
33
// ignore-pretty issue #37195
44

55
#[macro_use]
66
extern crate issue_38190;
77

88
mod auxiliary {
9-
m!([mod issue_38190;]);
9+
m!([
10+
#[path = "issue-38190.rs"]
11+
mod issue_38190;
12+
]);
1013
}
1114

1215
fn main() {}

src/test/run-pass/issues/issue-38226.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// This test makes sure that we don't run into a linker error because of the
33
// middle::reachable pass missing trait methods with default impls.
44

5-
// aux-build:issue_38226_aux.rs
5+
// aux-build:issue-38226-aux.rs
66

77
// Need -Cno-prepopulate-passes to really disable inlining, otherwise the faulty
88
// code gets optimized out:

src/test/run-pass/issues/issue-38715.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// run-pass
2-
// aux-build:issue_38715.rs
3-
// aux-build:issue_38715-modern.rs
2+
// aux-build:issue-38715.rs
3+
// aux-build:issue-38715-modern.rs
44

55
// Test that `#[macro_export] macro_rules!` shadow earlier `#[macro_export] macro_rules!`
66

src/test/run-pass/issues/issue-3979-xcrate.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// run-pass
22
#![allow(dead_code)]
3-
// aux-build:issue_3979_traits.rs
3+
// aux-build:issue-3979-traits.rs
44

55
extern crate issue_3979_traits;
66
use issue_3979_traits::{Positioned, Movable};

src/test/run-pass/issues/issue-39823.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// aux-build:issue_39823.rs
2+
// aux-build:issue-39823.rs
33

44
extern crate issue_39823;
55
use issue_39823::{RemoteC, RemoteG};

src/test/run-pass/issues/issue-40469.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#![allow(dead_code)]
55

6-
include!("auxiliary/issue_40469.rs");
6+
include!("auxiliary/issue-40469.rs");
77
fn f() { m!(); }
88

99
fn main() {}

src/test/run-pass/issues/issue-41053.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// aux-build:issue_41053.rs
2+
// aux-build:issue-41053.rs
33

44
pub trait Trait { fn foo(&self) {} }
55

src/test/run-pass/issues/issue-42007.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// run-pass
22
#![allow(dead_code)]
3-
// aux-build:issue_42007_s.rs
3+
// aux-build:issue-42007-s.rs
44

55
extern crate issue_42007_s;
66

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/test/run-pass/issues/issue-8401.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-pass
2-
// aux-build:issue_8401.rs
2+
// aux-build:issue-8401.rs
33

44
// pretty-expanded FIXME #23616
55

0 commit comments

Comments
 (0)