Skip to content

Commit 93c2b70

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 adf811c commit 93c2b70

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
@@ -107,7 +108,8 @@ def main():
107108
args.swift_frontend,
108109
'-typecheck',
109110
temp_file_path,
110-
'-disable-availability-checking'
111+
'-disable-availability-checking',
112+
'-warn-on-editor-placeholder'
111113
] + extra_frontend_args, desc='checking that rewritten file compiles')
112114
sys.stdout.write(dump_text_output)
113115

0 commit comments

Comments
 (0)