Improve code based on feedback.
This patch improves the readability of some of the code by using if-let-chains. Also, make use of the `add_feature_diagnostics` function.
This commit is contained in:
parent
f702e89f9d
commit
9650a4168f
6 changed files with 38 additions and 62 deletions
|
@ -351,7 +351,7 @@ lint_builtin_mutable_transmutes =
|
|||
lint_builtin_unstable_features = unstable feature
|
||||
|
||||
lint_ungated_async_fn_track_caller = `#[track_caller]` on async functions is a no-op
|
||||
.suggestion = enable this unstable feature
|
||||
.label = this function will not propagate the caller location
|
||||
|
||||
lint_builtin_unreachable_pub = unreachable `pub` {$what}
|
||||
.suggestion = consider restricting its visibility
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue