Fix wording of misapplied must_not_suspend
error
This commit is contained in:
parent
3a9bf45513
commit
df6cb954bb
4 changed files with 7 additions and 7 deletions
|
@ -1363,7 +1363,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Checks if `#[must_not_suspend]` is applied to a function.
|
||||
/// Checks if `#[must_not_suspend]` is applied to a struct, enum, union, or trait.
|
||||
fn check_must_not_suspend(&self, attr: &Attribute, span: Span, target: Target) {
|
||||
match target {
|
||||
Target::Struct | Target::Enum | Target::Union | Target::Trait => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue