Fix lint attributes/emission location for await_holding_*
lints
#9047
Labels
C-enhancement
Category: Enhancement of lints, like adding more cases or adding help messages
T-async-await
Type: Issues related to async/await
Description
The lints:
await_holding_lock
,await_holding_refcell
andawait_holding_invalid_type
. Are currently emitted at the function they are in, while the diagnostic highlights an expression inside the function. This means that lint attributes only work on the function and not on the displayed expression. This also affects the#[expect]
attribute, which will not be fulfilled, if added to the displayed expression.Version
Additional Labels
This issue is part of rust-lang/rust#97660
The text was updated successfully, but these errors were encountered: