]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_analysis/src/mem_categorization.rs
Auto merge of #103185 - chenyukang:yukang/fix-span-next-point, r=davidtwco
[rust.git] / compiler / rustc_hir_analysis / src / mem_categorization.rs
index b62c5b5e077833229e3362075ef7619209fded8b..362f1c3430041a45e668c263b825e7f790a2fbc9 100644 (file)
@@ -292,7 +292,8 @@ fn cat_expr_adjusted_with<F>(
 
             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))
             }