Skip to content

Conversation

@tkremenek
Copy link
Member

Pulls in 3549ec5 from master.

… to go

along with recent policy changes:

- For expression types that are not specifically handled, make sure to
  produce a general "unused value" warning, catching a bunch of unused
  values in the testsuite.

- For unused operator results, diagnose them as uses of the operator
  instead of "calls".

- For calls, mutter the type of the result for greater specificity.

- For initializers, mutter the type of the initialized value.

- Look through OpenExistentialExpr's so we can handle protocol member
  references propertly.

- Look through several other expressions so we handle @discardableResult
  better.
@tkremenek tkremenek self-assigned this May 17, 2016
@tkremenek tkremenek added this to the Swift 3.0 Preview 1 milestone May 17, 2016
@tkremenek
Copy link
Member Author

@swift-ci test

@tkremenek
Copy link
Member Author

Some test failures:

swift/validation-test/Sema/OverridesAndOverloads.swift:125:19: error: unexpected warning produced: expression of type 'C1' is unused
  Derived().foo() as C1
                  ^
...

@lattner Is there another commit I need to pull in?

@tkremenek tkremenek assigned lattner and unassigned tkremenek May 18, 2016
@gribozavr
Copy link
Contributor

@tkremenek Yes, 05397e3.

@tkremenek
Copy link
Member Author

@swift-ci test

@tkremenek tkremenek merged commit 947693a into swiftlang:swift-3.0-preview-1-branch May 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants