Skip to content

Commit 575c86f

Browse files
committed
Add test description
1 parent 5dfabd1 commit 575c86f

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

src/tools/tidy/src/issues.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,6 @@ ui/issues/issue-53300.rs
24462446
ui/issues/issue-53333.rs
24472447
ui/issues/issue-53348.rs
24482448
ui/issues/issue-53419.rs
2449-
ui/issues/issue-53498.rs
24502449
ui/issues/issue-53568.rs
24512450
ui/issues/issue-5358-1.rs
24522451
ui/issues/issue-53728.rs

tests/ui/privacy/ufc-method-call.different_name.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0599]: no function or associated item named `foo` found for struct `Foo<B>` in the current scope
2-
--> $DIR/ufc-method-call.rs:21:27
2+
--> $DIR/ufc-method-call.rs:27:27
33
|
44
LL | pub struct Foo<T>(T);
55
| ----------------- function or associated item `foo` not found for this struct

tests/ui/privacy/ufc-method-call.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
//! This test used to report that the method call cannot
2+
//! call the private method `Foo<A>::foo`, even though the user
3+
//! explicitly selected `Foo<B>::foo`. This is because we only
4+
//! looked for methods of the right name, without properly checking
5+
//! the `Self` type
6+
17
//@ revisions: same_name different_name
28

39
pub mod test {

tests/ui/privacy/ufc-method-call.same_name.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0624]: associated function `foo` is private
2-
--> $DIR/ufc-method-call.rs:21:27
2+
--> $DIR/ufc-method-call.rs:27:27
33
|
44
LL | fn foo() {}
55
| -------- private associated function defined here

0 commit comments

Comments
 (0)