diff options
| author | Michael Goulet <michael@errs.io> | 2023-03-09 20:49:05 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-03-09 20:49:11 +0000 |
| commit | 9574f39c2dc6312223fe562c1e04e4344eada316 (patch) | |
| tree | 815944ff0acab660839656ecc8a04f2b2327977e /compiler/rustc_trait_selection/src | |
| parent | 39f2657d1101b50f9b71ae460b762d330cc8426b (diff) | |
| download | rust-9574f39c2dc6312223fe562c1e04e4344eada316.tar.gz rust-9574f39c2dc6312223fe562c1e04e4344eada316.zip | |
Use param's real type in try_eval_lit_or_param
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/specialize/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/specialize/mod.rs b/compiler/rustc_trait_selection/src/traits/specialize/mod.rs index d1d6a7a90cf..fcfb60b2603 100644 --- a/compiler/rustc_trait_selection/src/traits/specialize/mod.rs +++ b/compiler/rustc_trait_selection/src/traits/specialize/mod.rs @@ -99,10 +99,10 @@ pub fn translate_substs<'tcx>( } fulfill_implication(infcx, param_env, source_trait_ref, target_impl).unwrap_or_else( - |_| { + |()| { bug!( - "When translating substitutions for specialization, the expected \ - specialization failed to hold" + "When translating substitutions from {source_impl:?} to {target_impl:?}, \ + the expected specialization failed to hold" ) }, ) |
