Skip to content

Commit

Permalink
fixup: other builtin check
Browse files Browse the repository at this point in the history
  • Loading branch information
powerboat9 committed Sep 17, 2024
1 parent 9ab350c commit a373b8e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gcc/rust/resolve/rust-early-name-resolver-2.0.cc
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ Early::visit_attributes (std::vector<AST::Attribute> &attrs)
//
// Builtin derive macros should probably be handled
// in a fashion more similar to custom derive macros
if (MacroBuiltin::builtins.is_iter_ok (
MacroBuiltin::builtins.lookup (trait.get ().as_string ())))
if (MacroBuiltin::builtins.lookup (trait.get ().as_string ()).has_value ())
continue;

auto definition
Expand Down

0 comments on commit a373b8e

Please sign in to comment.