about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-01-02 20:38:54 -0500
committerAaron Hill <aa1ronham@gmail.com>2020-01-05 14:37:59 -0500
commitd41f9dd5dd364c96745b4633a497d3697b9792f4 (patch)
tree62e685450c8f9bde59b2352be4a9779dff4a999c
parentee922d47f2e6386be4f69346ab554c97db502cc0 (diff)
downloadrust-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.rs2
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
             );