File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
// tidy-alphabetical-start
8
8
#![ allow( internal_features) ]
9
+ #![ deny( unreachable_pub) ]
9
10
#![ doc( rust_logo) ]
10
11
#![ feature( let_chains) ]
11
12
#![ feature( rustdoc_internals) ]
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ pub(crate) enum InvalidIssueStringCause {
128
128
}
129
129
130
130
impl InvalidIssueStringCause {
131
- pub fn from_int_error_kind ( span : Span , kind : & IntErrorKind ) -> Option < Self > {
131
+ pub ( crate ) fn from_int_error_kind ( span : Span , kind : & IntErrorKind ) -> Option < Self > {
132
132
match kind {
133
133
IntErrorKind :: Empty => Some ( Self :: Empty { span } ) ,
134
134
IntErrorKind :: InvalidDigit => Some ( Self :: InvalidDigit { span } ) ,
@@ -304,7 +304,7 @@ pub(crate) enum IncorrectReprFormatGenericCause<'a> {
304
304
}
305
305
306
306
impl < ' a > IncorrectReprFormatGenericCause < ' a > {
307
- pub fn from_lit_kind ( span : Span , kind : & ast:: LitKind , name : & ' a str ) -> Option < Self > {
307
+ pub ( crate ) fn from_lit_kind ( span : Span , kind : & ast:: LitKind , name : & ' a str ) -> Option < Self > {
308
308
match kind {
309
309
ast:: LitKind :: Int ( int, ast:: LitIntType :: Unsuffixed ) => {
310
310
Some ( Self :: Int { span, name, int : int. get ( ) } )
You can’t perform that action at this time.
0 commit comments