Skip to content

Commit 8d023c3

Browse files
mentoninnbdd0121
andcommitted
internal: update duplicate #[pin] error message
Co-authored-by: Gary Guo <gary@garyguo.net> Signed-off-by: Luiz Georg <luizgngeorg@gmail.com>
1 parent cc88d52 commit 8d023c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/src/pin_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub(crate) fn pin_data(
8181
field.attrs.retain(|a| !a.path().is_ident("pin"));
8282
let diff = len - field.attrs.len();
8383
if diff > 1 {
84-
return Err(dcx.error(field, "#[pin] attribute set twice"));
84+
return Err(dcx.error(field, "#[pin] attribute specified more than once"));
8585
}
8686
Ok((diff > 0, &*field))
8787
})

tests/ui/compile-fail/pin_data/twice_pin.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: #[pin] attribute set twice
1+
error: #[pin] attribute specified more than once
22
--> tests/ui/compile-fail/pin_data/twice_pin.rs:7:5
33
|
44
7 | a: usize,

0 commit comments

Comments
 (0)