Skip to content

Commit d41f9dd

Browse files
Change 'panic!' to 'bug!'
Co-Authored-By: Wesley Wiser <[email protected]>
1 parent ee922d4 commit d41f9dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl<'tcx> Instance<'tcx> {
7979
// Instance.ty_env should have been used to provide the proper
8080
// ParamEnv
8181
if self.substs.has_param_types() {
82-
panic!(
82+
bug!(
8383
"Instance.ty called for type {:?} with projections in substs: {:?}",
8484
ty, self.substs
8585
);

0 commit comments

Comments
 (0)