Skip to content

Commit 4db3938

Browse files
authored
Merge pull request #26408 from davezarzycki/simplify_code_synth_diag
[CodeSynth] NFC: Simplify diagnostic output
2 parents a352d9d + 2734fe5 commit 4db3938

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4480,7 +4480,7 @@ NOTE(property_wrapper_declared_here,none,
44804480

44814481
ERROR(property_wrapper_mutating_get_composed_to_get_only,none,
44824482
"property wrapper %0 with a mutating getter cannot be composed inside "
4483-
"get-only property wrapper %1", (Type, Type))
4483+
"get-only property wrapper %1", (TypeLoc, TypeLoc))
44844484

44854485
ERROR(property_wrapper_local,none,
44864486
"property wrappers are not yet supported on local properties", ())

lib/Sema/CodeSynthesis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,8 +1869,8 @@ PropertyWrapperMutabilityRequest::evaluate(Evaluator &,
18691869
auto &ctx = var->getASTContext();
18701870
ctx.Diags.diagnose(var->getAttachedPropertyWrappers()[i]->getLocation(),
18711871
diag::property_wrapper_mutating_get_composed_to_get_only,
1872-
var->getAttachedPropertyWrappers()[i]->getTypeLoc().getType(),
1873-
var->getAttachedPropertyWrappers()[i-1]->getTypeLoc().getType());
1872+
var->getAttachedPropertyWrappers()[i]->getTypeLoc(),
1873+
var->getAttachedPropertyWrappers()[i-1]->getTypeLoc());
18741874

18751875
return None;
18761876
}

0 commit comments

Comments
 (0)