Reinstante var bindings in refutable patterns, except function parameters.

This reverts commits: b96e06da44,
                      8f2fbdc93a,
                      93b6962478,
                      64024118f4,
                      a759ca9141,
                      3434f9642b,
                      9f33429891,
                      47c043e8a6.

This commit leaves 'var' on function parameters as a warning to be
merged into Swift 2.2. For Swift 3, this will be an error, to be
converted in a follow-up.
This commit is contained in:
David Farler
2016-01-17 00:15:31 -08:00
parent 58e33ee374
commit 3f635d04c7
120 changed files with 1144 additions and 1076 deletions

View File

@@ -696,7 +696,6 @@ public func transcode<
_ input: Input, _ output: (OutputEncoding.CodeUnit) -> Void,
stopOnError: Bool
) -> Bool {
var input = input
// NB. It is not possible to optimize this routine to a memcpy if