Skip to content

Commit d031e5a

Browse files
committed
Adjust diagnostic: s/@noescape/non-escaping/
1 parent e2121fd commit d031e5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2235,7 +2235,7 @@ ERROR(closure_implicit_capture_mutating_self,none,
22352235
())
22362236
ERROR(nested_function_with_implicit_capture_argument,none,
22372237
"nested function with %select{an |}0implicitly captured inout "
2238-
"parameter%select{|s}0 can only be used as a @noescape argument", (bool))
2238+
"parameter%select{|s}0 can only be used as a non-escaping argument", (bool))
22392239
ERROR(nested_function_escaping_inout_capture,none,
22402240
"nested function cannot capture inout parameter and escape", ())
22412241

test/Sema/diag_invalid_inout_captures.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func remember(line: inout String) -> () -> Void {
2121
line = "I'm your man"
2222
}
2323
no_escape(despite_our_estrangement)
24-
do_escape(despite_our_estrangement) // expected-error {{nested function with an implicitly captured inout parameter can only be used as a argument}}
24+
do_escape(despite_our_estrangement) // expected-error {{nested function with an implicitly captured inout parameter can only be used as a non-escaping argument}}
2525

2626
return despite_our_estrangement // expected-error {{nested function cannot capture inout parameter and escape}}
2727
}

0 commit comments

Comments
 (0)