@@ -145,7 +145,7 @@ impl MirPhase {
145
145
}
146
146
"analysis" => Self :: Analysis ( AnalysisPhase :: parse ( phase) ) ,
147
147
"runtime" => Self :: Runtime ( RuntimePhase :: parse ( phase) ) ,
148
- _ => panic ! ( "Unknown MIR dialect {} " , dialect) ,
148
+ _ => bug ! ( "Unknown MIR dialect: '{}' " , dialect) ,
149
149
}
150
150
}
151
151
}
@@ -159,7 +159,7 @@ impl AnalysisPhase {
159
159
match & * phase. to_ascii_lowercase ( ) {
160
160
"initial" => Self :: Initial ,
161
161
"post_cleanup" | "post-cleanup" | "postcleanup" => Self :: PostCleanup ,
162
- _ => panic ! ( "Unknown analysis phase {} " , phase) ,
162
+ _ => bug ! ( "Unknown analysis phase: '{}' " , phase) ,
163
163
}
164
164
}
165
165
}
@@ -174,7 +174,7 @@ impl RuntimePhase {
174
174
"initial" => Self :: Initial ,
175
175
"post_cleanup" | "post-cleanup" | "postcleanup" => Self :: PostCleanup ,
176
176
"optimized" => Self :: Optimized ,
177
- _ => panic ! ( "Unknown runtime phase {} " , phase) ,
177
+ _ => bug ! ( "Unknown runtime phase: '{}' " , phase) ,
178
178
}
179
179
}
180
180
}
0 commit comments