diff options
author | Mark Wielaard <mark@klomp.org> | 2021-08-29 01:05:09 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-08-29 02:01:58 +0200 |
commit | d12be0a643edcd3a21162f62a75a1aac55fda48d (patch) | |
tree | dbc08dc7ef991beb3efd92de3dc5fb00df016d17 | |
parent | 58f2f624ef364525bd5e3e57427457ad03625102 (diff) | |
download | gcc-d12be0a643edcd3a21162f62a75a1aac55fda48d.zip gcc-d12be0a643edcd3a21162f62a75a1aac55fda48d.tar.gz gcc-d12be0a643edcd3a21162f62a75a1aac55fda48d.tar.bz2 |
Use location when lowering TupleField
-rw-r--r-- | gcc/rust/hir/rust-ast-lower-stmt.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/rust/hir/rust-ast-lower-stmt.h b/gcc/rust/hir/rust-ast-lower-stmt.h index 1e72c8a..fdd5041 100644 --- a/gcc/rust/hir/rust-ast-lower-stmt.h +++ b/gcc/rust/hir/rust-ast-lower-stmt.h @@ -133,12 +133,10 @@ public: mappings->get_next_localdef_id ( crate_num)); - // FIXME - // AST::TupleField is missing Location info - Location field_locus; HIR::TupleField translated_field (mapping, std::unique_ptr<HIR::Type> (type), vis, - field_locus, field.get_outer_attrs ()); + field.get_locus (), + field.get_outer_attrs ()); fields.push_back (std::move (translated_field)); return true; }); |