[stdlib]Un-revert string comparison (#14694)

Restore (un-revert) sting comparison, with fixes

More exhaustive testing of opaque strings, which consistently reproduces prior sporadic failure. Shims fixups. Some test tweaking.
This commit is contained in:
Lance Parker
2018-02-18 10:50:33 -08:00
committed by Michael Ilseman
parent 76af5c5b16
commit 0661de22a2
18 changed files with 2001 additions and 431 deletions

View File

@@ -16,7 +16,7 @@
%{
# The sizes to generate code for.
sizes = [16]
sizes = [2, 8, 16]
}%
% for N in sizes:
@@ -56,7 +56,7 @@ extension _FixedArray${N} {
@_inlineable // FIXME(sil-serialize-all)
@_versioned // FIXME(sil-serialize-all)
internal var count : Int {
internal var count: Int {
@inline(__always) get { return Int(truncatingIfNeeded: _count) }
@inline(__always) set { _count = Int8(newValue) }
}