Skip to content

Commit d8bc35b

Browse files
authored
Merge pull request #29895 from mdiep/remove-backticks-in-diagnostics
Use single quotes instead of backticks in diagnostics
2 parents 8626cc4 + a348640 commit d8bc35b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

include/swift/AST/DiagnosticsSIL.def

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,12 +447,12 @@ ERROR(constexpr_imported_func_not_onone, none, "imported constant evaluable "
447447

448448
ERROR(non_physical_addressof,none,
449449
"addressof only works with purely physical lvalues; "
450-
"use `withUnsafePointer` or `withUnsafeBytes` unless you're implementing "
451-
"`withUnsafePointer` or `withUnsafeBytes`", ())
450+
"use 'withUnsafePointer' or 'withUnsafeBytes' unless you're implementing "
451+
"'withUnsafePointer' or 'withUnsafeBytes'", ())
452452
ERROR(non_borrowed_indirect_addressof,none,
453453
"addressof only works with borrowable in-memory rvalues; "
454-
"use `withUnsafePointer` or `withUnsafeBytes` unless you're implementing "
455-
"`withUnsafePointer` or `withUnsafeBytes`", ())
454+
"use 'withUnsafePointer' or 'withUnsafeBytes' unless you're implementing "
455+
"'withUnsafePointer' or 'withUnsafeBytes'", ())
456456

457457
REMARK(opt_remark_passed, none, "%0", (StringRef))
458458
REMARK(opt_remark_missed, none, "%0", (StringRef))

include/swift/AST/DiagnosticsSema.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4843,10 +4843,10 @@ ERROR(property_wrapper_type_not_usable_from_inline,none,
48434843
"must be '@usableFromInline' or public",
48444844
(bool, bool))
48454845
WARNING(property_wrapper_wrapperValue,none,
4846-
"property wrapper's `wrapperValue` property should be renamed to "
4846+
"property wrapper's 'wrapperValue' property should be renamed to "
48474847
"'projectedValue'; use of 'wrapperValue' is deprecated", ())
48484848
WARNING(property_wrapper_init_initialValue,none,
4849-
"property wrapper's `init(initialValue:)` should be renamed "
4849+
"property wrapper's 'init(initialValue:)' should be renamed "
48504850
"to 'init(wrappedValue:)'; use of 'init(initialValue:)' is deprecated",
48514851
())
48524852
ERROR(property_wrapper_projection_value_missing,none,

test/decl/var/property_wrapper_aliases.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ struct Wrapper<T> {
1616
struct OldWrapper<T> {
1717
var wrappedValue: T
1818

19-
var wrapperValue: Wrapper<T> { // expected-warning{{property wrapper's `wrapperValue` property should be renamed to 'projectedValue'; use of 'wrapperValue' is deprecated}}{{7-19=projectedValue}}
19+
var wrapperValue: Wrapper<T> { // expected-warning{{property wrapper's 'wrapperValue' property should be renamed to 'projectedValue'; use of 'wrapperValue' is deprecated}}{{7-19=projectedValue}}
2020
return Wrapper(wrappedValue: wrappedValue)
2121
}
2222
}
@@ -25,7 +25,7 @@ struct OldWrapper<T> {
2525
struct OldWrapperWithInit<T> {
2626
var wrappedValue: T
2727

28-
init(initialValue: T) { // expected-warning{{property wrapper's `init(initialValue:)` should be renamed to 'init(wrappedValue:)'; use of 'init(initialValue:)' is deprecated}}{{8-8=wrappedValue }}
28+
init(initialValue: T) { // expected-warning{{property wrapper's 'init(initialValue:)' should be renamed to 'init(wrappedValue:)'; use of 'init(initialValue:)' is deprecated}}{{8-8=wrappedValue }}
2929
self.wrappedValue = initialValue
3030
}
3131
}
@@ -34,7 +34,7 @@ struct OldWrapperWithInit<T> {
3434
struct OldWrapperWithInit2<T> {
3535
var wrappedValue: T
3636

37-
init(initialValue value: T) { // expected-warning{{property wrapper's `init(initialValue:)` should be renamed to 'init(wrappedValue:)'; use of 'init(initialValue:)' is deprecated}}{{8-20=wrappedValue}}
37+
init(initialValue value: T) { // expected-warning{{property wrapper's 'init(initialValue:)' should be renamed to 'init(wrappedValue:)'; use of 'init(initialValue:)' is deprecated}}{{8-20=wrappedValue}}
3838
self.wrappedValue = value
3939
}
4040
}

0 commit comments

Comments
 (0)