Skip to content

Commit b03c06f

Browse files
committed
Don't error on placeholders for refactor-check-compiles
This allows us to test more cases that type-check modulo placeholders.
1 parent 71fb169 commit b03c06f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/refactor-check-compiles.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ def parse_args():
2323
A drop-in replacement for a 'swift-refactor -dump-text' call that
2424
1. Checks that the file still compiles after the refactoring by doing
2525
'swift-refactor -dump-rewritten' and feeding the result to
26-
'swift-frontend -typecheck'
26+
'swift-frontend -typecheck -disable-availability-checking
27+
-warn-on-editor-placeholder'
2728
2. Outputting the result of the 'swift-refactor -dump-text' call
2829
2930
All arguments other than the following will be forwarded to
@@ -98,7 +99,8 @@ def main():
9899
args.swift_frontend,
99100
'-typecheck',
100101
temp_file_path,
101-
'-disable-availability-checking'
102+
'-disable-availability-checking',
103+
'-warn-on-editor-placeholder'
102104
] + extra_frontend_args, desc='checking that rewritten file compiles')
103105

104106

0 commit comments

Comments
 (0)