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 66
77// tidy-alphabetical-start
88#![ allow( internal_features) ]
9+ #![ deny( unreachable_pub) ]
910#![ doc( rust_logo) ]
1011#![ feature( let_chains) ]
1112#![ feature( rustdoc_internals) ]
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ pub(crate) enum InvalidIssueStringCause {
128128}
129129
130130impl 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 > {
132132 match kind {
133133 IntErrorKind :: Empty => Some ( Self :: Empty { span } ) ,
134134 IntErrorKind :: InvalidDigit => Some ( Self :: InvalidDigit { span } ) ,
@@ -304,7 +304,7 @@ pub(crate) enum IncorrectReprFormatGenericCause<'a> {
304304}
305305
306306impl < ' 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 > {
308308 match kind {
309309 ast:: LitKind :: Int ( int, ast:: LitIntType :: Unsuffixed ) => {
310310 Some ( Self :: Int { span, name, int : int. get ( ) } )
You can’t perform that action at this time.
0 commit comments