Skip to content

Commit

Permalink
resolver: Resolve macros too.
Browse files Browse the repository at this point in the history
gcc/rust/ChangeLog:

	* resolve/rust-name-resolver-2.0.cc
	(Resolver::insert): Do not call into `rust_unreachable` when resolving
	macros anymore.
  • Loading branch information
CohenArthur committed Jul 26, 2023
1 parent ef8e19e commit 5a90226
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gcc/rust/resolve/rust-name-resolver-2.0.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ Resolver::insert (Identifier name, NodeId id, Namespace ns)
return values.insert (name, id);
case Namespace::Types:
return types.insert (name, id);
case Namespace::Labels:
case Namespace::Macros:
return macros.insert (name, id);
case Namespace::Labels:
// return labels.insert (name, id);
rust_unreachable ();
}
}
Expand Down

0 comments on commit 5a90226

Please sign in to comment.