diff --git a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc index 3b1ccc1d3c5..5e6f5e9bd78 100644 --- a/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc +++ b/gcc/rust/resolve/rust-toplevel-name-resolver-2.0.cc @@ -72,7 +72,7 @@ TopLevel::go (AST::Crate &crate) void TopLevel::visit (AST::Module &module) { - // FIXME: Do we need to insert the module in the type namespace? + insert_or_error_out (module.get_name (), module, Namespace::Types); auto sub_visitor = [this, &module] () { for (auto &item : module.get_items ())