about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/mem_categorization.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-09-14 23:20:03 +0000
committerMichael Goulet <michael@errs.io>2022-10-14 04:27:01 +0000
commit76386bd65e650b5289b142daa310a4b98230c3db (patch)
treeb19f517615b9b5dcf35370d2ba8285a7f94f151d /compiler/rustc_hir_analysis/src/mem_categorization.rs
parentedabf59ca4646b3fc1a961c26431215001043f6a (diff)
downloadrust-76386bd65e650b5289b142daa310a4b98230c3db.tar.gz
rust-76386bd65e650b5289b142daa310a4b98230c3db.zip
Make dyn* cast into a coercion
Diffstat (limited to 'compiler/rustc_hir_analysis/src/mem_categorization.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/mem_categorization.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/mem_categorization.rs b/compiler/rustc_hir_analysis/src/mem_categorization.rs
index b62c5b5e077..362f1c34300 100644
--- a/compiler/rustc_hir_analysis/src/mem_categorization.rs
+++ b/compiler/rustc_hir_analysis/src/mem_categorization.rs
@@ -292,7 +292,8 @@ impl<'a, 'tcx> MemCategorizationContext<'a, 'tcx> {
 
             adjustment::Adjust::NeverToAny
             | adjustment::Adjust::Pointer(_)
-            | adjustment::Adjust::Borrow(_) => {
+            | adjustment::Adjust::Borrow(_)
+            | adjustment::Adjust::DynStar => {
                 // Result is an rvalue.
                 Ok(self.cat_rvalue(expr.hir_id, expr.span, target))
             }