From d2fa4156bf085afbad09b7804a2cdfccfa7a517d Mon Sep 17 00:00:00 2001 From: "Stefan J. Wernli" Date: Fri, 3 Nov 2023 15:37:09 -0700 Subject: [PATCH] Update compiler/qsc_frontend/src/resolve.rs Co-authored-by: Scott Carda <55811729+ScottCarda-MS@users.noreply.github.com> --- compiler/qsc_frontend/src/resolve.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/compiler/qsc_frontend/src/resolve.rs b/compiler/qsc_frontend/src/resolve.rs index 0bd8fb72fb..b1789436d0 100644 --- a/compiler/qsc_frontend/src/resolve.rs +++ b/compiler/qsc_frontend/src/resolve.rs @@ -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) {