Skip to content

Commit 8fb3982

Browse files
committed
Rename some "issue-#" crates
1 parent 3279d01 commit 8fb3982

17 files changed

+80
-49
lines changed

src/tools/tidy/src/issues.txt

-10
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,7 @@ ui/auto-traits/issue-23080-2.rs
276276
ui/auto-traits/issue-23080.rs
277277
ui/auto-traits/issue-83857-ub.rs
278278
ui/auto-traits/issue-84075.rs
279-
ui/auxiliary/issue-13560-1.rs
280-
ui/auxiliary/issue-13560-2.rs
281-
ui/auxiliary/issue-13560-3.rs
282279
ui/auxiliary/issue-16822.rs
283-
ui/auxiliary/issue-18502.rs
284-
ui/auxiliary/issue-24106.rs
285-
ui/auxiliary/issue-76387.rs
286280
ui/bench/issue-32062.rs
287281
ui/binding/issue-40402-1.rs
288282
ui/binding/issue-40402-2.rs
@@ -1378,12 +1372,8 @@ ui/intrinsics/issue-28575.rs
13781372
ui/intrinsics/issue-84297-reifying-copy.rs
13791373
ui/invalid/issue-114435-layout-type-err.rs
13801374
ui/issue-11881.rs
1381-
ui/issue-13560.rs
13821375
ui/issue-15924.rs
13831376
ui/issue-16822.rs
1384-
ui/issue-18502.rs
1385-
ui/issue-24106.rs
1386-
ui/issue-76387-llvm-miscompile.rs
13871377
ui/issues-71798.rs
13881378
ui/issues/auxiliary/issue-11224.rs
13891379
ui/issues/auxiliary/issue-11508.rs

tests/ui/attributes/no_link/auxiliary/issue-13560-3.rs

-6
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@ no-prefer-dynamic
2+
3+
#![crate_type = "rlib"]
4+
5+
#[macro_use] #[no_link] extern crate empty_crate_1 as t1;
6+
#[macro_use] extern crate empty_crate_2 as t2;

tests/ui/attributes/no_link/issue-13560.rs

-13
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//@ run-pass
2+
//@ ignore-cross-compile (needs dylibs and compiletest doesn't have a more specific header)
3+
//@ aux-build:empty-crate-1.rs
4+
//@ aux-build:empty-crate-2.rs
5+
//@ aux-build:no_link-crate.rs
6+
7+
// Regression test for issue #13560, the test itself is all in the dependent
8+
// libraries. The fail which previously failed to compile is `no_link_crate`.
9+
10+
extern crate empty_crate_2 as t2;
11+
extern crate no_link_crate as t3;
12+
13+
fn main() {}
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//! Dpn't ice on using an inlined function from another crate
2+
//! See <https://github.com/rust-lang/rust/issues/18502> and
3+
//! <https://github.com/rust-lang/rust/issues/18501>
4+
5+
//@ run-pass
6+
//@ aux-build:inline-cross-crate.rs
7+
8+
extern crate inline_cross_crate as fmt;
9+
10+
fn main() {
11+
::fmt::baz();
12+
}

tests/ui/cross-crate/issue-18502.rs

-8
This file was deleted.

tests/ui/cross-crate/issue-76387-llvm-miscompile.rs renamed to tests/ui/cross-crate/llvm-miscompile-MarkValue-MaybeLive.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
//@ compile-flags: -C opt-level=3
2-
//@ aux-build: issue-76387.rs
2+
//@ aux-build: llvm-miscompile-MarkValue-MaybeLive.rs
33
//@ run-pass
44

5-
// Regression test for issue #76387
5+
// Regression test for <https://github.com/rust-lang/rust/issues/76387>
66
// Tests that LLVM doesn't miscompile this
77

8-
extern crate issue_76387;
8+
extern crate llvm_miscompile_MarkValue_MaybeLive;
99

10-
use issue_76387::FatPtr;
10+
use llvm_miscompile_MarkValue_MaybeLive::FatPtr;
1111

1212
fn print(data: &[u8]) {
1313
println!("{:#?}", data);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//! Test that we can match on enum constants across crates.
2+
//!
3+
//! See <https://github.com/rust-lang/rust/issues/24106>.
4+
5+
6+
//@ run-pass
7+
//@ aux-build:cross-crate-enum-pattern.rs
8+
9+
extern crate cross_crate_enum_pattern;
10+
11+
fn main() {
12+
cross_crate_enum_pattern::go::<()>();
13+
}

tests/ui/pattern/issue-24106.rs

-8
This file was deleted.

tests/ui/statics/auxiliary/inner_static.rs

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
//! Test for inner statics with the same name.
2+
//!
3+
//! Before, the path name for all items defined in methods of traits and impls never
4+
//! took into account the name of the method. This meant that if you had two statics
5+
//! of the same name in two different methods the statics would end up having the
6+
//! same symbol named (even after mangling) because the path components leading to
7+
//! the symbol were exactly the same (just __extensions__ and the static name).
8+
//!
9+
//! It turns out that if you add the symbol "A" twice to LLVM, it automatically
10+
//! makes the second one "A1" instead of "A". What this meant is that in local crate
11+
//! compilations we never found this bug. Even across crates, this was never a
12+
//! problem. The problem arises when you have generic methods that don't get
13+
//! generated at compile-time of a library. If the statics were re-added to LLVM by
14+
//! a client crate of a library in a different order, you would reference different
15+
//! constants (the integer suffixes wouldn't be guaranteed to be the same).
16+
117
pub struct A<T> { pub v: T }
218
pub struct B<T> { pub v: T }
319

tests/ui/statics/inner-static.rs

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
//! Test for inner statics with the same name.
2+
//!
3+
//! Before, the path name for all items defined in methods of traits and impls never
4+
//! took into account the name of the method. This meant that if you had two statics
5+
//! of the same name in two different methods the statics would end up having the
6+
//! same symbol named (even after mangling) because the path components leading to
7+
//! the symbol were exactly the same (just __extensions__ and the static name).
8+
//!
9+
//! It turns out that if you add the symbol "A" twice to LLVM, it automatically
10+
//! makes the second one "A1" instead of "A". What this meant is that in local crate
11+
//! compilations we never found this bug. Even across crates, this was never a
12+
//! problem. The problem arises when you have generic methods that don't get
13+
//! generated at compile-time of a library. If the statics were re-added to LLVM by
14+
//! a client crate of a library in a different order, you would reference different
15+
//! constants (the integer suffixes wouldn't be guaranteed to be the same).
16+
117
//@ run-pass
218
//@ aux-build:inner_static.rs
319

0 commit comments

Comments
 (0)