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 {
665
665
666
666
impl HumanEmitter {
667
667
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)
670
669
}
671
670
672
- fn create ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
671
+ pub fn new ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
673
672
HumanEmitter {
674
673
dst : IntoDynSyncSend ( dst) ,
675
674
sm : None ,
@@ -686,10 +685,6 @@ impl HumanEmitter {
686
685
}
687
686
}
688
687
689
- pub fn new ( dst : Destination , fallback_bundle : LazyFallbackBundle ) -> HumanEmitter {
690
- Self :: create ( dst, fallback_bundle)
691
- }
692
-
693
688
fn maybe_anonymized ( & self , line_num : usize ) -> Cow < ' static , str > {
694
689
if self . ui_testing {
695
690
Cow :: Borrowed ( ANONYMIZED_LINE_NUM )
You can’t perform that action at this time.
0 commit comments