Skip to content

Commit e26614e

Browse files
committedAug 2, 2023
Replace old private-in-public diagnostic with type privacy lints
1 parent 5cbfee5 commit e26614e

File tree

68 files changed

+850
-1688
lines changed

Some content is hidden

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

68 files changed

+850
-1688
lines changed
 

‎compiler/rustc_error_codes/src/error_codes.rs

+1
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ E0794: include_str!("./error_codes/E0794.md"),
607607
// E0420, // merged into 532
608608
// E0421, // merged into 531
609609
// E0427, // merged into 530
610+
// E0445, // merged into 446 and type privacy lints
610611
// E0456, // plugin `..` is not available for triple `..`
611612
// E0465, // removed: merged with E0464
612613
// E0467, // removed

‎compiler/rustc_error_codes/src/error_codes/E0445.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
A private trait was used on a public type parameter bound.
1+
#### Note: this error code is no longer emitted by the compiler.
22

3-
Erroneous code examples:
3+
A private trait was used on a public type parameter bound.
44

5-
```compile_fail,E0445
6-
#![deny(private_in_public)]
5+
Previously erroneous code examples:
76

7+
```
88
trait Foo {
99
fn dummy(&self) { }
1010
}

0 commit comments

Comments
 (0)