about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorb-naber <bn263@gmx.de>2022-09-13 21:51:35 +0200
committerb-naber <bn263@gmx.de>2022-09-13 21:51:35 +0200
commitba00189d8e85b735d90144f9523b8a1dad2ccdce (patch)
treea2ebf48aee43c99c7aaff28c9545d2acff9d8c9d /compiler
parent29c0364c372b7c5b9bf8378bd7d305ff571ebea4 (diff)
downloadrust-ba00189d8e85b735d90144f9523b8a1dad2ccdce.tar.gz
rust-ba00189d8e85b735d90144f9523b8a1dad2ccdce.zip
rebase
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_trait_selection/src/traits/auto_trait.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/auto_trait.rs b/compiler/rustc_trait_selection/src/traits/auto_trait.rs
index 98e93ad3fc5..bcdfa4f12d3 100644
--- a/compiler/rustc_trait_selection/src/traits/auto_trait.rs
+++ b/compiler/rustc_trait_selection/src/traits/auto_trait.rs
@@ -834,7 +834,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
                                     let reported =
                                         tcx.sess.emit_err(UnableToConstructConstantValue {
                                             span: tcx.def_span(def_id),
-                                            unevaluated,
+                                            unevaluated: unevaluated.expand(),
                                         });
                                     Err(ErrorHandled::Reported(reported))
                                 }