rustc_lint: make let-underscore-lock
translatable
This commit is contained in:
parent
66e5852c3b
commit
c9346a1f05
3 changed files with 9 additions and 8 deletions
|
@ -957,6 +957,8 @@ pub struct BadOptAccessDiag<'a> {
|
|||
pub enum NonBindingLet {
|
||||
#[diag(lint_non_binding_let_on_sync_lock)]
|
||||
SyncLock {
|
||||
#[label]
|
||||
pat: Span,
|
||||
#[subdiagnostic]
|
||||
sub: NonBindingLetSub,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue