File tree 3 files changed +0
-13
lines changed
3 files changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -616,7 +616,6 @@ pub struct HumanEmitter {
616
616
#[ setters( skip) ]
617
617
fallback_bundle : LazyFallbackBundle ,
618
618
short_message : bool ,
619
- teach : bool ,
620
619
ui_testing : bool ,
621
620
ignored_directories_in_source_blocks : Vec < String > ,
622
621
diagnostic_width : Option < usize > ,
@@ -642,7 +641,6 @@ impl HumanEmitter {
642
641
fluent_bundle : None ,
643
642
fallback_bundle,
644
643
short_message : false ,
645
- teach : false ,
646
644
ui_testing : false ,
647
645
ignored_directories_in_source_blocks : Vec :: new ( ) ,
648
646
diagnostic_width : None ,
@@ -1044,15 +1042,6 @@ impl HumanEmitter {
1044
1042
underline. style ,
1045
1043
) ;
1046
1044
}
1047
- _ if self . teach => {
1048
- buffer. set_style_range (
1049
- line_offset,
1050
- ( code_offset + annotation. start_col . display ) . saturating_sub ( left) ,
1051
- ( code_offset + annotation. end_col . display ) . saturating_sub ( left) ,
1052
- underline. style ,
1053
- annotation. is_primary ,
1054
- ) ;
1055
- }
1056
1045
_ => { }
1057
1046
}
1058
1047
}
Original file line number Diff line number Diff line change @@ -930,7 +930,6 @@ fn default_emitter(
930
930
. fluent_bundle ( bundle)
931
931
. sm ( source_map)
932
932
. short_message ( short)
933
- . teach ( sopts. unstable_opts . teach )
934
933
. diagnostic_width ( sopts. diagnostic_width )
935
934
. macro_backtrace ( macro_backtrace)
936
935
. track_diagnostics ( track_diagnostics)
Original file line number Diff line number Diff line change @@ -160,7 +160,6 @@ pub(crate) fn new_dcx(
160
160
HumanEmitter :: new ( stderr_destination ( color_config) , fallback_bundle)
161
161
. sm ( source_map. map ( |sm| sm as _ ) )
162
162
. short_message ( short)
163
- . teach ( unstable_opts. teach )
164
163
. diagnostic_width ( diagnostic_width)
165
164
. track_diagnostics ( unstable_opts. track_diagnostics )
166
165
. theme ( if let HumanReadableErrorType :: Unicode = kind {
You can’t perform that action at this time.
0 commit comments