File tree 3 files changed +3
-7
lines changed
3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ impl<'a> DiagnosticConverter<'a> {
148
148
/// Maps `Diagnostic::Level` to `snippet::AnnotationType`
149
149
fn annotation_type_for_level ( level : Level ) -> AnnotationType {
150
150
match level {
151
- Level :: Bug | Level :: Fatal | Level :: PhaseFatal | Level :: Error => AnnotationType :: Error ,
151
+ Level :: Bug | Level :: Fatal | Level :: Error => AnnotationType :: Error ,
152
152
Level :: Warning => AnnotationType :: Warning ,
153
153
Level :: Note => AnnotationType :: Note ,
154
154
Level :: Help => AnnotationType :: Help ,
Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ impl Diagnostic {
94
94
match self . level {
95
95
Level :: Bug |
96
96
Level :: Fatal |
97
- Level :: PhaseFatal |
98
97
Level :: Error |
99
98
Level :: FailureNote => {
100
99
true
Original file line number Diff line number Diff line change @@ -787,9 +787,6 @@ impl Handler {
787
787
pub enum Level {
788
788
Bug ,
789
789
Fatal ,
790
- // An error which while not immediately fatal, should stop the compiler
791
- // progressing beyond the current phase.
792
- PhaseFatal ,
793
790
Error ,
794
791
Warning ,
795
792
Note ,
@@ -808,7 +805,7 @@ impl Level {
808
805
fn color ( self ) -> ColorSpec {
809
806
let mut spec = ColorSpec :: new ( ) ;
810
807
match self {
811
- Bug | Fatal | PhaseFatal | Error => {
808
+ Bug | Fatal | Error => {
812
809
spec. set_fg ( Some ( Color :: Red ) )
813
810
. set_intense ( true ) ;
814
811
}
@@ -833,7 +830,7 @@ impl Level {
833
830
pub fn to_str ( self ) -> & ' static str {
834
831
match self {
835
832
Bug => "error: internal compiler error" ,
836
- Fatal | PhaseFatal | Error => "error" ,
833
+ Fatal | Error => "error" ,
837
834
Warning => "warning" ,
838
835
Note => "note" ,
839
836
Help => "help" ,
You can’t perform that action at this time.
0 commit comments