diff --git a/Sources/SwiftCompilerPlugin/CompilerPlugin.swift b/Sources/SwiftCompilerPlugin/CompilerPlugin.swift index 850f7869aca..7bea6f4570d 100644 --- a/Sources/SwiftCompilerPlugin/CompilerPlugin.swift +++ b/Sources/SwiftCompilerPlugin/CompilerPlugin.swift @@ -66,9 +66,7 @@ extension CompilerPlugin { let qualifedName = "\(moduleName).\(typeName)" for type in providingMacros { - // FIXME: Is `String(reflecting:)` stable? - // Getting the module name and type name should be more robust. - let name = String(reflecting: type) + let name = _typeName(type, qualified: true) if name == qualifedName { return type }