File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
compiler/rustc_errors/src Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -665,11 +665,10 @@ pub(crate) struct FileWithAnnotatedLines {
665665
666666impl HumanEmitter {
667667 pub fn stderr ( color_config : ColorConfig , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
668- let dst = from_stderr ( color_config) ;
669- Self :: create ( dst, fallback_bundle)
668+ Self :: new ( from_stderr ( color_config) , fallback_bundle)
670669 }
671670
672- fn create ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
671+ pub fn new ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
673672 HumanEmitter {
674673 dst : IntoDynSyncSend ( dst) ,
675674 sm : None ,
@@ -686,10 +685,6 @@ impl HumanEmitter {
686685 }
687686 }
688687
689- pub fn new ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
690- Self :: create ( dst, fallback_bundle)
691- }
692-
693688 fn maybe_anonymized ( & self , line_num : usize ) -> Cow < ' static , str > {
694689 if self . ui_testing {
695690 Cow :: Borrowed ( ANONYMIZED_LINE_NUM )
You can’t perform that action at this time.
0 commit comments