intermedia change.

This commit is contained in:
Xi Ge
2018-08-17 16:58:46 -07:00
parent 1ea3ebc805
commit 0191db3ede
2 changed files with 88 additions and 11 deletions

View File

@@ -1,10 +1,9 @@
// REQUIRES: OS=macosx
// RUN: %empty-directory(%t.tmp)
// mkdir %t.tmp/module-cache && mkdir %t.tmp/dummy.sdk
// RUN: %api-digester -dump-sdk -module Swift -o %t.tmp/current-stdlib.json -module-cache-path %t.tmp/module-cache -sdk %t.tmp/dummy.sdk -swift-version 3
// RUN: %api-digester -dump-sdk -module Swift -o %t.tmp/current-stdlib.json -module-cache-path %t.tmp/module-cache -sdk %t.tmp/dummy.sdk
// RUN: %api-digester -diagnose-sdk -input-paths %S/stdlib-stable.json -input-paths %t.tmp/current-stdlib.json >> %t.tmp/changes.txt
// RUN: %clang -E -P -x c %S/source-stability.swift.expected -o - | sed '/^\s*$/d' > %t.tmp/source-stability.swift.expected
// RUN: %clang -E -P -x c %t.tmp/changes.txt -o - | sed '/^\s*$/d' > %t.tmp/changes.txt.tmp
// RUN: diff -u %t.tmp/source-stability.swift.expected %t.tmp/changes.txt.tmp
// REQUIRES: rdar_43425867

View File

@@ -1,15 +1,93 @@
/* FIXME: Bogus */
TypeAlias DictionaryIterator.Element has been removed
TypeAlias SetIterator.Element has been removed
Var DictionaryIterator.customMirror has been removed
Var SetIterator.customMirror has been removed
Func DictionaryIterator.next() has been removed
Func SetIterator.next() has been removed
/* Renamed Decls (FIXME: Targets are Dictionary.Iterator & Set.Iterator) */
/* Generic Signature Changes */
Struct DictionaryIterator has generic signature change from <Key, Value where Key : Hashable> to <Element>
Struct SetIterator has generic signature change from <Element where Element : Hashable> to <Key, Value>
/* RawRepresentable Changes */
/* Removed Decls */
TypeAlias AbsoluteValuable has been removed
TypeAlias BitwiseOperations has been removed (deprecated)
TypeAlias DictionaryIterator.Element has been removed
TypeAlias IntMax has been removed
TypeAlias Integer has been removed
TypeAlias IntegerArithmetic has been removed
TypeAlias SetIterator.Element has been removed
TypeAlias SignedNumber has been removed
TypeAlias StringProtocol.UTF16Index has been removed (deprecated)
TypeAlias StringProtocol.UTF8Index has been removed (deprecated)
TypeAlias StringProtocol.UnicodeScalarIndex has been removed (deprecated)
TypeAlias UIntMax has been removed
Var DictionaryIterator.customMirror has been removed
Var FixedWidthInteger.allZeros has been removed (deprecated)
Var SetIterator.customMirror has been removed
Constructor Int.init(truncatingBitPattern:) has been removed
Constructor Int16.init(truncatingBitPattern:) has been removed
Constructor Int32.init(truncatingBitPattern:) has been removed
Constructor Int8.init(truncatingBitPattern:) has been removed
Constructor String.init(_:obsoletedInSwift4:) has been removed
Constructor UInt.init(truncatingBitPattern:) has been removed
Constructor UInt16.init(truncatingBitPattern:) has been removed
Constructor UInt32.init(truncatingBitPattern:) has been removed
Constructor UInt8.init(truncatingBitPattern:) has been removed
Func BinaryInteger.toIntMax() has been removed
Func DictionaryIterator.next() has been removed
Func FixedWidthInteger.addWithOverflow(_:_:) has been removed
Func FixedWidthInteger.divideWithOverflow(_:_:) has been removed
Func FixedWidthInteger.multiplyWithOverflow(_:_:) has been removed
Func FixedWidthInteger.remainderWithOverflow(_:_:) has been removed
Func FixedWidthInteger.subtractWithOverflow(_:_:) has been removed
Func FloatingPoint.abs(_:) has been removed (deprecated)
Func FloatingPoint.add(_:) has been removed
Func FloatingPoint.adding(_:) has been removed
Func FloatingPoint.divide(by:) has been removed
Func FloatingPoint.divided(by:) has been removed
Func FloatingPoint.multiplied(by:) has been removed
Func FloatingPoint.multiply(by:) has been removed
Func FloatingPoint.negated() has been removed
Func FloatingPoint.subtract(_:) has been removed
Func FloatingPoint.subtracting(_:) has been removed
Func Int.toUIntMax() has been removed
Func Int16.toUIntMax() has been removed
Func Int32.toUIntMax() has been removed
Func Int64.toUIntMax() has been removed
Func Int8.toUIntMax() has been removed
Func Sequence.flatMap(_:) has been removed
Func SetIterator.next() has been removed
Func SignedNumeric.abs(_:) has been removed
Func String.UTF16View.distance(from:to:) has been removed
Func String.UTF16View.index(_:offsetBy:) has been removed
Func String.UTF16View.index(after:) has been removed
Func String.UTF8View.distance(from:to:) has been removed
Func String.UTF8View.index(_:offsetBy:) has been removed
Func String.UTF8View.index(after:) has been removed
Func String.UnicodeScalarView.distance(from:to:) has been removed
Func String.UnicodeScalarView.index(_:offsetBy:) has been removed
Func String.UnicodeScalarView.index(after:) has been removed
Func String.UnicodeScalarView.popFirst() has been removed (deprecated)
Func String.popFirst() has been removed (deprecated)
Func UInt.toIntMax() has been removed
Func UInt16.toIntMax() has been removed
Func UInt32.toIntMax() has been removed
Func UInt64.toIntMax() has been removed
Func UInt8.toIntMax() has been removed
Func UnsignedInteger.toUIntMax() has been removed
/* Moved Decls */
/* Renamed Decls */
Struct DictionaryIterator has been renamed to Struct Iterator
Struct SetIterator has been renamed to Struct Iterator
Func Dictionary.filter(_:obsoletedInSwift4:) has been renamed to Func Dictionary.filter(_:)
Func Set.filter(_:obsoletedInSwift4:) has been renamed to Func Set.filter(_:)
/* FIXME: Bogus */
/* Type Changes */
Var Dictionary.keys has declared type change from LazyMapCollection<[Key : Value], Key> to Dictionary<Key, Value>.Keys
Var Dictionary.values has declared type change from LazyMapCollection<[Key : Value], Value> to Dictionary<Key, Value>.Values
Constructor String.init(_:) has return type change from String? to String
Func Dictionary.filter(_:obsoletedInSwift4:) has return type change from [Dictionary<Key, Value>.Element] to [Dictionary<Key, Value>.Key : Dictionary<Key, Value>.Value]
Func Dictionary.makeIterator() has return type change from DictionaryIterator<Dictionary<Key, Value>.Key, Dictionary<Key, Value>.Value> to Dictionary<Key, Value>.Iterator
Func Set.filter(_:obsoletedInSwift4:) has return type change from [Set<Element>.Element] to Set<Element>
Func Set.makeIterator() has return type change from SetIterator<Element> to Set<Element>.Iterator
/* Decl Attribute changes */