diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2020-01-02 20:38:54 -0500 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2020-01-05 14:37:59 -0500 |
| commit | d41f9dd5dd364c96745b4633a497d3697b9792f4 (patch) | |
| tree | 62e685450c8f9bde59b2352be4a9779dff4a999c | |
| parent | ee922d47f2e6386be4f69346ab554c97db502cc0 (diff) | |
| download | rust-d41f9dd5dd364c96745b4633a497d3697b9792f4.tar.gz rust-d41f9dd5dd364c96745b4633a497d3697b9792f4.zip | |
Change 'panic!' to 'bug!'
Co-Authored-By: Wesley Wiser <wwiser@gmail.com>
| -rw-r--r-- | src/librustc/ty/instance.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc/ty/instance.rs b/src/librustc/ty/instance.rs index 8d4717384f7..dbbd798538e 100644 --- a/src/librustc/ty/instance.rs +++ b/src/librustc/ty/instance.rs @@ -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 ); |
