Skip to content

Commit

Permalink
Update compiler/qsc_frontend/src/resolve.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Carda <[email protected]>
  • Loading branch information
swernli and ScottCarda-MS committed Nov 9, 2023
1 parent 8b189da commit d2fa415
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions compiler/qsc_frontend/src/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,10 @@ impl AstVisitor<'_> for With<'_> {
}

fn visit_attr(&mut self, attr: &ast::Attr) {
if hir::Attr::from_str(attr.name.name.as_ref()) == Ok(hir::Attr::Config) {
// The Config attribute arguments do not go through name resolution.
return;
// The Config attribute arguments do not go through name resolution.
if hir::Attr::from_str(attr.name.name.as_ref()) != Ok(hir::Attr::Config) {
walk_attr(self, attr);
}
walk_attr(self, attr);
}

fn visit_callable_decl(&mut self, decl: &ast::CallableDecl) {
Expand Down

0 comments on commit d2fa415

Please sign in to comment.