diff options
author | Lukas Wirth <[email protected]> | 2021-03-01 13:24:00 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-03-01 13:24:00 +0000 |
commit | 5d121cdb45f5199828ed64a2ca01a74998e023ad (patch) | |
tree | b2a941497dea3cc38adb6c55049668aa31b2554b /crates/hir_ty/src/infer/expr.rs | |
parent | cda13d54613006c7985da0489878605300ba05b8 (diff) |
Introduce Ty::Alias
Diffstat (limited to 'crates/hir_ty/src/infer/expr.rs')
-rw-r--r-- | crates/hir_ty/src/infer/expr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/infer/expr.rs b/crates/hir_ty/src/infer/expr.rs index 928ad37a3..7852b3d23 100644 --- a/crates/hir_ty/src/infer/expr.rs +++ b/crates/hir_ty/src/infer/expr.rs | |||
@@ -479,7 +479,7 @@ impl<'a> InferenceContext<'a> { | |||
479 | }; | 479 | }; |
480 | let inner_ty = self.infer_expr_inner(*expr, &expectation); | 480 | let inner_ty = self.infer_expr_inner(*expr, &expectation); |
481 | match rawness { | 481 | match rawness { |
482 | Rawness::RawPtr => Ty::RawPtr(*mutability, Substs::single(inner_ty)), | 482 | Rawness::RawPtr => Ty::Raw(*mutability, Substs::single(inner_ty)), |
483 | Rawness::Ref => Ty::Ref(*mutability, Substs::single(inner_ty)), | 483 | Rawness::Ref => Ty::Ref(*mutability, Substs::single(inner_ty)), |
484 | } | 484 | } |
485 | } | 485 | } |