mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Change 'panic!' to 'bug!'
Co-Authored-By: Wesley Wiser <wwiser@gmail.com>
This commit is contained in:
parent
ee922d47f2
commit
d41f9dd5dd
@ -79,7 +79,7 @@ impl<'tcx> Instance<'tcx> {
|
||||
// Instance.ty_env should have been used to provide the proper
|
||||
// ParamEnv
|
||||
if self.substs.has_param_types() {
|
||||
panic!(
|
||||
bug!(
|
||||
"Instance.ty called for type {:?} with projections in substs: {:?}",
|
||||
ty, self.substs
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user