Change 'panic!' to 'bug!'

Co-Authored-By: Wesley Wiser <wwiser@gmail.com>
This commit is contained in:
Aaron Hill 2020-01-02 20:38:54 -05:00
parent ee922d47f2
commit d41f9dd5dd
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -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
);