Swift 3.0 migrator doesn't remove @warn_unused_result

Originator:keithbsmiley
Number:rdar://27516354 Date Originated:24-Jul-2016 13:50
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8 beta 3
Classification:Other Bug Reproducible:Always
 
Summary:
When migrating from Swift 2.2 to Swift 3.0, `@warn_unused_result` attributes are not removed even though this is the new default.

Steps to Reproduce:
1) Create a Swift 2.2 project with a function annotated with `@warn_unused_result`
2) Migrate it in Xcode 8 to Swift 3.0

Expected Results:
`@warn_unused_result` should be removed

Actual Results:
`@warn_unused_result` is not removed, and produces a compiler error.

Version:
Xcode 8 beta 3

Notes:
This behavior can be demonstrated with the current master branch of https://github.com/lyft/mapper which is still Swift 2.2.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!