Skip to content

Commit 2e4d8c9

Browse files
add issue links and bless
1 parent e668e1b commit 2e4d8c9

7 files changed

Lines changed: 11 additions & 6 deletions

tests/ui/drop/drop-with-trait-bound-calls-method-on-self.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/4252
12
//@ run-pass
23
trait X {
34
fn call<T: std::fmt::Debug>(&self, x: &T);

tests/ui/dropck/drop-impl-for-type-param-with-trait-bound.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/41974
12
#[derive(Copy, Clone)]
23
struct Flags;
34

tests/ui/dropck/drop-impl-for-type-param-with-trait-bound.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0210]: type parameter `T` must be used as an argument to some local type (e.g., `MyStruct<T>`)
2-
--> $DIR/issue-41974.rs:7:6
2+
--> $DIR/drop-impl-for-type-param-with-trait-bound.rs:8:6
33
|
44
LL | impl<T> Drop for T where T: A {
55
| ^ uncovered type parameter
@@ -8,7 +8,7 @@ LL | impl<T> Drop for T where T: A {
88
= note: only traits defined in the current crate can be implemented for a type parameter
99

1010
error[E0120]: the `Drop` trait may only be implemented for local structs, enums, and unions
11-
--> $DIR/issue-41974.rs:7:18
11+
--> $DIR/drop-impl-for-type-param-with-trait-bound.rs:8:18
1212
|
1313
LL | impl<T> Drop for T where T: A {
1414
| ^ must be a struct, enum, or union in the current crate

tests/ui/dropck/dropck-resolves-associated-type-in-field.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/48132
12
// Regression test for #48132. This was failing due to problems around
23
// the projection caching and dropck type enumeration.
34

tests/ui/dropck/self-referential-struct-with-boxed-closure.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/26641
12
//@ run-pass
23
struct Parser<'a>(#[allow(dead_code)] Box<dyn FnMut(Parser) + 'a>);
34

tests/ui/dyn-compatibility/method-with-self-trait-bound-not-dyn-safe.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/50781
12
trait Trait {}
23

34
trait X {

tests/ui/dyn-compatibility/method-with-self-trait-bound-not-dyn-safe.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
error[E0038]: the trait `X` is not dyn compatible
2-
--> $DIR/issue-50781.rs:11:16
2+
--> $DIR/method-with-self-trait-bound-not-dyn-safe.rs:12:16
33
|
44
LL | impl Trait for dyn X {}
55
| ^^^^^ `X` is not dyn compatible
66
|
77
note: for a trait to be dyn compatible it needs to allow building a vtable
88
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
9-
--> $DIR/issue-50781.rs:4:8
9+
--> $DIR/method-with-self-trait-bound-not-dyn-safe.rs:5:8
1010
|
1111
LL | trait X {
1212
| - this trait is not dyn compatible...
@@ -16,14 +16,14 @@ LL | fn foo(&self) where Self: Trait;
1616
= help: only type `()` implements `X`; consider using it directly instead.
1717

1818
error[E0038]: the trait `X` is not dyn compatible
19-
--> $DIR/issue-50781.rs:16:10
19+
--> $DIR/method-with-self-trait-bound-not-dyn-safe.rs:17:10
2020
|
2121
LL | <dyn X as X>::foo(&());
2222
| ^ `X` is not dyn compatible
2323
|
2424
note: for a trait to be dyn compatible it needs to allow building a vtable
2525
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>
26-
--> $DIR/issue-50781.rs:4:8
26+
--> $DIR/method-with-self-trait-bound-not-dyn-safe.rs:5:8
2727
|
2828
LL | trait X {
2929
| - this trait is not dyn compatible...

0 commit comments

Comments
 (0)