File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -1741,13 +1741,11 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
1741
1741
genericSubInvocation.setRuntimeResourcePath (SearchPathOpts.RuntimeResourcePath );
1742
1742
}
1743
1743
1744
- // Inhibit warnings from the genericSubInvocation since we are assuming the user
1745
- // is not in a position to address them. (Unless we're verifying, in which
1746
- // case they might.)
1747
- if (requestedAction != FrontendOptions::ActionType::Typecheck) {
1748
- genericSubInvocation.getDiagnosticOptions ().SuppressWarnings = true ;
1749
- GenericArgs.push_back (" -suppress-warnings" );
1750
- }
1744
+ // Inhibit warnings from the genericSubInvocation since we are assuming the
1745
+ // user is not in a position to address them.
1746
+ genericSubInvocation.getDiagnosticOptions ().SuppressWarnings = true ;
1747
+ GenericArgs.push_back (" -suppress-warnings" );
1748
+
1751
1749
// Inherit the parent invocation's setting on whether to suppress remarks
1752
1750
if (suppressRemarks) {
1753
1751
genericSubInvocation.getDiagnosticOptions ().SuppressRemarks = true ;
Original file line number Diff line number Diff line change 5
5
// REQUIRES: OS=macosx
6
6
7
7
extension Array {
8
- @_hasStorage public var foo: Int { get set } // expected-warning {{'@_hasStorage' attribute cannot be applied to declaration in extension}}
8
+ @_hasStorage public var foo: Int { get set }
9
9
}
You can’t perform that action at this time.
0 commit comments