Skip to content

Commit c1990a0

Browse files
CoCo-Japan-panUrgau
andcommitted
Apply suggestions from code review
Co-authored-by: Urgau <3616612+Urgau@users.noreply.github.com>
1 parent 0071ce3 commit c1990a0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

compiler/rustc_parse/src/errors.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,11 +1269,12 @@ pub(crate) struct IncorrectVisibilityRestriction {
12691269
}
12701270

12711271
#[derive(Diagnostic)]
1272-
#[diag("incorrect impl restriction")]
1272+
#[diag("incorrect `impl` restriction")]
12731273
#[help(
1274-
"some possible impl restrictions are:
1274+
"some possible `impl` restrictions are:
12751275
`impl(crate)`: can only be implemented in the current crate
12761276
`impl(super)`: can only be implemented in the parent module
1277+
`impl(self)`: can only be implemented in current module
12771278
`impl(in path::to::module)`: can only be implemented in the specified path"
12781279
)]
12791280
pub(crate) struct IncorrectImplRestriction {

0 commit comments

Comments
 (0)