1
Fork 0

rustc_lint: make let-underscore-lock translatable

This commit is contained in:
Pavel Grigorenko 2024-07-30 00:33:18 +03:00
parent 66e5852c3b
commit c9346a1f05
3 changed files with 9 additions and 8 deletions

View file

@ -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,
},