aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/analysis/rust-type-resolution.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/analysis/rust-type-resolution.cc b/gcc/rust/analysis/rust-type-resolution.cc
index 2c720c6..3e2db7f 100644
--- a/gcc/rust/analysis/rust-type-resolution.cc
+++ b/gcc/rust/analysis/rust-type-resolution.cc
@@ -1046,7 +1046,7 @@ TypeResolution::visit (AST::LetStmt &stmt)
}
else if (stmt.has_type () && !stmt.has_init_expr ())
{
- inferedType = stmt.type.get ();
+ inferedType = stmt.get_type ().get ();
}
// TODO check we know what the type is in the scope requires the builtins to