Skip to content

Commit 7ea9cfc

Browse files
authored
Rollup merge of rust-lang#65620 - ryoqun:remove-unneeded-comment, r=varkor
Correctly note code as Ok not error for E0573 Hi, this is my first pull request to the Rust project. The fix is very small one just to fix an oversight in a comment. Namely, [this documentation PR](rust-lang#65234) added a longer explanation for E0573. It illustrated the error using erroneous/corrected contrasting examples. But it accidentally forgot to remove `// error` from the corrected example. Sadly, I found the error after the PR got merged. [As suggested by the original author](https://github.com/rust-lang/rust/pull/65234/files#r336518549) of the PR, I created an PR to fix this. Part of rust-lang#61137.
2 parents d56466f + 101e1f6 commit 7ea9cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_resolve/error_codes.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ enum Wizard {
16821682
}
16831683
16841684
trait Isengard {
1685-
fn wizard(w: Wizard) { // error!
1685+
fn wizard(w: Wizard) { // ok!
16861686
match w {
16871687
Wizard::Saruman => {
16881688
// do something

0 commit comments

Comments
 (0)