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