-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #7007 - Y-Nak:result_unit_err, r=giraffate
result_unit_err: Fix typo changelog: result_unit_err: fix typo in a diagnostic message r? `@giraffate` fixes #6990 (comment).
- Loading branch information
Showing
3 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
error: this returns a `Result<_, ()> | ||
error: this returns a `Result<_, ()>` | ||
--> $DIR/result_unit_error.rs:3:1 | ||
| | ||
LL | pub fn returns_unit_error() -> Result<u32, ()> { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= note: `-D clippy::result-unit-err` implied by `-D warnings` | ||
= help: use a custom Error type instead | ||
= help: use a custom `Error` type instead | ||
|
||
error: this returns a `Result<_, ()> | ||
error: this returns a `Result<_, ()>` | ||
--> $DIR/result_unit_error.rs:12:5 | ||
| | ||
LL | fn get_that_error(&self) -> Result<bool, ()>; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: use a custom Error type instead | ||
= help: use a custom `Error` type instead | ||
|
||
error: this returns a `Result<_, ()> | ||
error: this returns a `Result<_, ()>` | ||
--> $DIR/result_unit_error.rs:14:5 | ||
| | ||
LL | fn get_this_one_too(&self) -> Result<bool, ()> { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: use a custom Error type instead | ||
= help: use a custom `Error` type instead | ||
|
||
error: this returns a `Result<_, ()> | ||
error: this returns a `Result<_, ()>` | ||
--> $DIR/result_unit_error.rs:32:5 | ||
| | ||
LL | pub fn unit_error(&self) -> Result<usize, ()> { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: use a custom Error type instead | ||
= help: use a custom `Error` type instead | ||
|
||
error: this returns a `Result<_, ()> | ||
error: this returns a `Result<_, ()>` | ||
--> $DIR/result_unit_error.rs:41:5 | ||
| | ||
LL | pub fn should_lint() -> ResInv<(), usize> { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: use a custom Error type instead | ||
= help: use a custom `Error` type instead | ||
|
||
error: aborting due to 5 previous errors | ||
|