File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -132,23 +132,6 @@ Migrator::performAFixItMigration(version::Version SwiftLanguageVersion) {
132
132
LLVMArgs.erase (aarch64_use_tbi);
133
133
}
134
134
135
- if (StartInvocation.getLangOptions ().EffectiveLanguageVersion .isVersion3 ()) {
136
- // SE-0160: When migrating, always use the Swift 3 @objc inference rules,
137
- // which drives warnings with the "@objc" Fix-Its.
138
- Invocation.getLangOptions ().EnableSwift3ObjCInference = true ;
139
-
140
- // The default behavior of the migrator, referred to as "minimal" migration
141
- // in SE-0160, only adds @objc Fix-Its to those cases where the Objective-C
142
- // entry point is explicitly used somewhere in the source code. The user
143
- // may also select a workflow that adds @objc for every declaration that
144
- // would infer @objc under the Swift 3 rules but would no longer infer
145
- // @objc in Swift 4.
146
- Invocation.getLangOptions ().WarnSwift3ObjCInference =
147
- getMigratorOptions ().KeepObjcVisibility
148
- ? Swift3ObjCInferenceWarnings::Complete
149
- : Swift3ObjCInferenceWarnings::Minimal;
150
- }
151
-
152
135
const auto &OrigFrontendOpts = StartInvocation.getFrontendOptions ();
153
136
154
137
assert (OrigFrontendOpts.InputsAndOutputs .hasPrimaryInputs () &&
You can’t perform that action at this time.
0 commit comments