@@ -54,8 +54,7 @@ func sortResultIgnored<
54
54
array. sorted { $0 < $1 } // expected-warning {{result of call to 'sorted(by:)' is unused}}
55
55
}
56
56
57
- // expected-warning@+2 {{'Indexable' is deprecated: renamed to 'Collection'}}
58
- // expected-note@+1 {{use 'Collection' instead}}
57
+ // expected-warning@+1 {{'Indexable' is deprecated: it will be removed in Swift 4.0. Please use 'Collection' instead}}
59
58
struct GoodIndexable : Indexable {
60
59
func index( after i: Int ) -> Int { return i + 1 }
61
60
var startIndex : Int { return 0 }
@@ -66,8 +65,7 @@ struct GoodIndexable : Indexable {
66
65
}
67
66
68
67
69
- // expected-warning@+3 {{'Indexable' is deprecated: renamed to 'Collection'}}
70
- // expected-note@+2 {{use 'Collection' instead}}
68
+ // expected-warning@+2 {{'Indexable' is deprecated: it will be removed in Swift 4.0. Please use 'Collection' instead}}
71
69
// expected-error@+1 {{type 'BadIndexable1' does not conform to protocol 'IndexableBase'}}
72
70
struct BadIndexable1 : Indexable {
73
71
func index( after i: Int ) -> Int { return i + 1 }
@@ -79,8 +77,7 @@ struct BadIndexable1 : Indexable {
79
77
// Missing 'subscript(_:) -> SubSequence'.
80
78
}
81
79
82
- // expected-warning@+3 {{'Indexable' is deprecated: renamed to 'Collection'}}
83
- // expected-note@+2 {{use 'Collection' instead}}
80
+ // expected-warning@+2 {{'Indexable' is deprecated: it will be removed in Swift 4.0. Please use 'Collection' instead}}
84
81
// expected-error@+1 {{type 'BadIndexable2' does not conform to protocol 'IndexableBase'}}
85
82
struct BadIndexable2 : Indexable {
86
83
var startIndex : Int { return 0 }
@@ -91,8 +88,7 @@ struct BadIndexable2 : Indexable {
91
88
// Missing index(after:) -> Int
92
89
}
93
90
94
- // expected-warning@+2 {{'BidirectionalIndexable' is deprecated: renamed to 'BidirectionalCollection'}}
95
- // expected-note@+1 {{use 'BidirectionalCollection' instead}}
91
+ // expected-warning@+1 {{'BidirectionalIndexable' is deprecated: it will be removed in Swift 4.0. Please use 'BidirectionalCollection' instead}}
96
92
struct GoodBidirectionalIndexable1 : BidirectionalIndexable {
97
93
var startIndex : Int { return 0 }
98
94
var endIndex : Int { return 0 }
@@ -105,8 +101,7 @@ struct GoodBidirectionalIndexable1 : BidirectionalIndexable {
105
101
106
102
// We'd like to see: {{type 'BadBidirectionalIndexable' does not conform to protocol 'BidirectionalIndexable'}}
107
103
// But the compiler doesn't generate that error.
108
- // expected-warning@+2 {{'BidirectionalIndexable' is deprecated: renamed to 'BidirectionalCollection'}}
109
- // expected-note@+1 {{use 'BidirectionalCollection' instead}}
104
+ // expected-warning@+1 {{'BidirectionalIndexable' is deprecated: it will be removed in Swift 4.0. Please use 'BidirectionalCollection' instead}}
110
105
struct BadBidirectionalIndexable : BidirectionalIndexable {
111
106
var startIndex : Int { return 0 }
112
107
var endIndex : Int { return 0 }
0 commit comments