diff options
| author | bors <bors@rust-lang.org> | 2022-02-12 11:48:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-02-12 11:48:53 +0000 |
| commit | f8f175199e8db959cf25f1582157ca89ecf6210a (patch) | |
| tree | e97706832717d66ab32f137f22edc560688bd472 /compiler/rustc_error_codes/src | |
| parent | 9cdefd763b910ffd1d42233a8c752ab5fd84ca4d (diff) | |
| parent | 0e3ecd28fd6b3671b62e91661797f20a3f9c7deb (diff) | |
| download | rust-f8f175199e8db959cf25f1582157ca89ecf6210a.tar.gz rust-f8f175199e8db959cf25f1582157ca89ecf6210a.zip | |
Auto merge of #93933 - matthiaskrgr:rollup-1hjae6g, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #91908 (Add 2 tests) - #93595 (fix ICE when parsing lifetime as function argument) - #93757 (Add some known GAT bugs as tests) - #93759 (Pretty print ItemKind::Use in rustfmt style) - #93897 (linkchecker: fix panic on directory symlinks) - #93898 (tidy: Extend error code check) - #93928 (Add missing release notes for #85200) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0192.md | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes.rs b/compiler/rustc_error_codes/src/error_codes.rs index c401f65edda..a72681dbf4e 100644 --- a/compiler/rustc_error_codes/src/error_codes.rs +++ b/compiler/rustc_error_codes/src/error_codes.rs @@ -97,6 +97,7 @@ E0184: include_str!("./error_codes/E0184.md"), E0185: include_str!("./error_codes/E0185.md"), E0186: include_str!("./error_codes/E0186.md"), E0191: include_str!("./error_codes/E0191.md"), +E0192: include_str!("./error_codes/E0192.md"), E0193: include_str!("./error_codes/E0193.md"), E0195: include_str!("./error_codes/E0195.md"), E0197: include_str!("./error_codes/E0197.md"), @@ -522,7 +523,6 @@ E0787: include_str!("./error_codes/E0787.md"), // E0188, // can not cast an immutable reference to a mutable pointer // E0189, // deprecated: can only cast a boxed pointer to a boxed object // E0190, // deprecated: can only cast a &-pointer to an &-object -// E0192, // negative impl only applicable to auto traits // E0194, // merged into E0403 // E0196, // cannot determine a type for this closure E0208, diff --git a/compiler/rustc_error_codes/src/error_codes/E0192.md b/compiler/rustc_error_codes/src/error_codes/E0192.md index 5fd951b2e86..deca042a91a 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0192.md +++ b/compiler/rustc_error_codes/src/error_codes/E0192.md @@ -1,15 +1,17 @@ +#### Note: this error code is no longer emitted by the compiler. + A negative impl was added on a trait implementation. Erroneous code example: -```compile_fail,E0192 +```compile_fail trait Trait { type Bar; } struct Foo; -impl !Trait for Foo { } //~ ERROR E0192 +impl !Trait for Foo { } //~ ERROR fn main() {} ``` |
