From 0db8774645244b08d0e0cd18275ea64ff96f6911 Mon Sep 17 00:00:00 2001 From: Philip Herron Date: Sat, 28 Nov 2020 20:18:59 +0000 Subject: Remove unused and add FIXME We need to ensure in type resolution pass we fix up the ordering for a struct initilization and give defaults to missing fields. --- gcc/rust/analysis/rust-type-resolution.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/rust/analysis') diff --git a/gcc/rust/analysis/rust-type-resolution.cc b/gcc/rust/analysis/rust-type-resolution.cc index 3503a83..9179b0c 100644 --- a/gcc/rust/analysis/rust-type-resolution.cc +++ b/gcc/rust/analysis/rust-type-resolution.cc @@ -516,6 +516,10 @@ TypeResolution::visit (AST::StructExprStructFields &expr) } } + // need to correct the ordering with the respect to the struct definition and + // ensure we handle missing values and give them defaults + // FIXME + // setup a path in type AST::PathIdentSegment seg (expr.get_struct_name ().as_string ()); auto typePath = ::std::unique_ptr ( -- cgit v1.1