@@ -803,21 +803,22 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
803803 if !any_successful_reexport {
804804 let ( ns, binding) = reexport_error. unwrap ( ) ;
805805 if ns == TypeNS && binding. is_extern_crate ( ) {
806- let msg = format ! ( "extern crate `{}` is private, and cannot be reexported \
807- (error E0365), consider declaring with `pub`",
806+ let msg = format ! ( "extern crate `{}` is private, and cannot be \
807+ re-exported (error E0365), consider declaring with \
808+ `pub`",
808809 ident) ;
809810 self . session . buffer_lint ( PUB_USE_OF_PRIVATE_EXTERN_CRATE ,
810811 directive. id ,
811812 directive. span ,
812813 & msg) ;
813814 } else if ns == TypeNS {
814815 struct_span_err ! ( self . session, directive. span, E0365 ,
815- "`{}` is private, and cannot be reexported " , ident)
816- . span_label ( directive. span , format ! ( "reexport of private `{}`" , ident) )
816+ "`{}` is private, and cannot be re-exported " , ident)
817+ . span_label ( directive. span , format ! ( "re-export of private `{}`" , ident) )
817818 . note ( & format ! ( "consider declaring type or module `{}` with `pub`" , ident) )
818819 . emit ( ) ;
819820 } else {
820- let msg = format ! ( "`{}` is private, and cannot be reexported " , ident) ;
821+ let msg = format ! ( "`{}` is private, and cannot be re-exported " , ident) ;
821822 let note_msg =
822823 format ! ( "consider marking `{}` as `pub` in the imported module" , ident) ;
823824 struct_span_err ! ( self . session, directive. span, E0364 , "{}" , & msg)
@@ -932,12 +933,12 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
932933 !orig_binding. vis . is_at_least ( binding. vis , & * self ) {
933934 let msg = match directive. subclass {
934935 ImportDirectiveSubclass :: SingleImport { .. } => {
935- format ! ( "variant `{}` is private and cannot be reexported " ,
936+ format ! ( "variant `{}` is private and cannot be re-exported " ,
936937 ident)
937938 } ,
938939 ImportDirectiveSubclass :: GlobImport { .. } => {
939940 let msg = "enum is private and its variants \
940- cannot be reexported ". to_owned ( ) ;
941+ cannot be re-exported ". to_owned ( ) ;
941942 let error_id = ( DiagnosticMessageId :: ErrorId ( 0 ) , // no code?!
942943 Some ( binding. span ) ,
943944 msg. clone ( ) ) ;
0 commit comments