Master branch broken?

I'm not sure if something changed or broke but I am having trouble compiling master (ToT and I also ran update-checkout). There seems to be redeclaration errors and other misc errors when building the stdlib including compiler crashes.

Env: macOS Catalina 10.15.3, Xcode 11.3.1, CMake 3.16.3

It was working fine before, not sure what's going on:

Example crash:

Summary
Stack dump:
0.	Program arguments: /Users/suyashsrijan/Documents/swift-src/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/RelWithDebInfo/bin/swift -frontend -c -filelist /var/folders/rr/dt9p23qn1c75hl71qblwqj380000gp/T/sources-2f4924 -supplementary-output-file-map /var/folders/rr/dt9p23qn1c75hl71qblwqj380000gp/T/supplementaryOutputs-0a41a0 -disable-objc-attr-requires-foundation-module -target x86_64-apple-macosx10.9 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I /Users/suyashsrijan/Documents/swift-src/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/RelWithDebInfo/lib/swift/macosx -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/../../../Developer/Library/Frameworks -warn-swift3-objc-inference-complete -warn-implicit-overrides -enable-library-evolution -g -module-cache-path /Users/suyashsrijan/Documents/swift-src/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/RelWithDebInfo/module-cache -module-link-name swiftCore -nostdimport -parse-stdlib -resource-dir /Users/suyashsrijan/Documents/swift-src/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/RelWithDebInfo/lib/swift -swift-version 5 -O -D INTERNAL_CHECKS_ENABLED -D SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS -D SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING -enable-ownership-stripping-after-serialization -enforce-exclusivity=unchecked -group-info-path /Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/GroupInfo.json -verify-syntax-tree -Xllvm -sil-inline-generics -Xllvm -sil-partial-specialization -Xcc -DswiftCore_EXPORTS -parse-as-library -module-name Swift -o /Users/suyashsrijan/Documents/swift-src/build/Xcode-RelWithDebInfoAssert/swift-macosx-x86_64/stdlib/public/core/OSX/x86_64/Swift.o -runtime-compatibility-version none -disable-autolinking-runtime-compatibility-dynamic-replacements
1.	Swift version 5.2-dev (LLVM c9af82705e, Swift 7802d1755c)
2.	Contents of /var/folders/rr/dt9p23qn1c75hl71qblwqj380000gp/T/sources-2f4924:
---
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Algorithm.swift
<snip>
---
3.	While evaluating request TypeCheckSourceFileRequest(source_file "/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift")
4.	While evaluating request TypeCheckFunctionBodyUntilRequest(Swift.(file)._KeyedEncodingContainerBox.init()@/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:3625:46, )
5.	While evaluating request ParseAbstractFunctionBodyRequest(Swift.(file)._KeyedEncodingContainerBox.init()@/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:3625:46)
0  swift                    0x0000000110c7f895 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  swift                    0x0000000110c7ead5 llvm::sys::RunSignalHandlers() + 85
2  swift                    0x0000000110c7fe7c SignalHandler(int) + 268
3  libsystem_platform.dylib 0x00007fff70da242d _sigtramp + 29
4  libsystem_platform.dylib 0x0000000000000003 _sigtramp + 18446603338622819315
5  swift                    0x000000010da1f156 swift::ParseAbstractFunctionBodyRequest::evaluate(swift::Evaluator&, swift::AbstractFunctionDecl*) const + 86
6  swift                    0x000000010da1f361 swift::SimpleRequest<swift::ParseAbstractFunctionBodyRequest, swift::BraceStmt* (swift::AbstractFunctionDecl*), (swift::CacheKind)2>::evaluateRequest(swift::ParseAbstractFunctionBodyRequest const&, swift::Evaluator&) + 17
7  swift                    0x000000010db87b5a llvm::Expected<swift::ParseAbstractFunctionBodyRequest::OutputType> swift::Evaluator::getResultUncached<swift::ParseAbstractFunctionBodyRequest>(swift::ParseAbstractFunctionBodyRequest const&) + 458
8  swift                    0x000000010db87870 llvm::Expected<swift::ParseAbstractFunctionBodyRequest::OutputType> swift::Evaluator::getResultCached<swift::ParseAbstractFunctionBodyRequest, (void*)0>(swift::ParseAbstractFunctionBodyRequest const&) + 64
9  swift                    0x000000010db380c5 swift::ParseAbstractFunctionBodyRequest::OutputType swift::evaluateOrDefault<swift::ParseAbstractFunctionBodyRequest>(swift::Evaluator&, swift::ParseAbstractFunctionBodyRequest, swift::ParseAbstractFunctionBodyRequest::OutputType) + 37
10 swift                    0x000000010d7e48df swift::TypeCheckFunctionBodyUntilRequest::evaluate(swift::Evaluator&, swift::AbstractFunctionDecl*, swift::SourceLoc) const + 175
11 swift                    0x000000010d7e1eb5 swift::SimpleRequest<swift::TypeCheckFunctionBodyUntilRequest, bool (swift::AbstractFunctionDecl*, swift::SourceLoc), (swift::CacheKind)1>::evaluateRequest(swift::TypeCheckFunctionBodyUntilRequest const&, swift::Evaluator&) + 21
12 swift                    0x000000010d7eb1b1 llvm::Expected<swift::TypeCheckFunctionBodyUntilRequest::OutputType> swift::Evaluator::getResultUncached<swift::TypeCheckFunctionBodyUntilRequest>(swift::TypeCheckFunctionBodyUntilRequest const&) + 497
13 swift                    0x000000010d7ead41 llvm::Expected<swift::TypeCheckFunctionBodyUntilRequest::OutputType> swift::Evaluator::getResultCached<swift::TypeCheckFunctionBodyUntilRequest, (void*)0>(swift::TypeCheckFunctionBodyUntilRequest const&) + 129
14 swift                    0x000000010d7e5499 swift::TypeCheckFunctionBodyUntilRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckFunctionBodyUntilRequest>(swift::Evaluator&, swift::TypeCheckFunctionBodyUntilRequest, swift::TypeCheckFunctionBodyUntilRequest::OutputType) + 41
15 swift                    0x000000010d7e47c2 swift::TypeChecker::typeCheckAbstractFunctionBody(swift::AbstractFunctionDecl*) + 66
16 swift                    0x000000010d8126a4 swift::TypeCheckSourceFileRequest::evaluate(swift::Evaluator&, swift::SourceFile*) const + 564
17 swift                    0x000000010d7e20b1 swift::SimpleRequest<swift::TypeCheckSourceFileRequest, bool (swift::SourceFile*), (swift::CacheKind)2>::evaluateRequest(swift::TypeCheckSourceFileRequest const&, swift::Evaluator&) + 17
18 swift                    0x000000010d814726 llvm::Expected<swift::TypeCheckSourceFileRequest::OutputType> swift::Evaluator::getResultUncached<swift::TypeCheckSourceFileRequest>(swift::TypeCheckSourceFileRequest const&) + 454
19 swift                    0x000000010d814488 llvm::Expected<swift::TypeCheckSourceFileRequest::OutputType> swift::Evaluator::getResultCached<swift::TypeCheckSourceFileRequest, (void*)0>(swift::TypeCheckSourceFileRequest const&) + 56
20 swift                    0x000000010d812375 swift::TypeCheckSourceFileRequest::OutputType swift::evaluateOrDefault<swift::TypeCheckSourceFileRequest>(swift::Evaluator&, swift::TypeCheckSourceFileRequest, swift::TypeCheckSourceFileRequest::OutputType) + 37
21 swift                    0x000000010cd5f3ca swift::CompilerInstance::parseAndCheckTypesUpTo(swift::CompilerInstance::ImplicitImports const&, swift::SourceFile::ASTStage_t)::$_1::operator()(swift::SourceFile&) const + 42
22 swift                    0x000000010cd5a0fb swift::CompilerInstance::parseAndCheckTypesUpTo(swift::CompilerInstance::ImplicitImports const&, swift::SourceFile::ASTStage_t) + 651
23 swift                    0x000000010cd594ee swift::CompilerInstance::performSemaUpTo(swift::SourceFile::ASTStage_t) + 542
24 swift                    0x000000010ccc22dc performCompile(swift::CompilerInstance&, swift::CompilerInvocation const&, llvm::ArrayRef<char const*>, int&, swift::FrontendObserver*, swift::UnifiedStatsReporter*) + 1916
25 swift                    0x000000010ccc0b98 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 4472
26 swift                    0x000000010cc57f8d main + 861
27 libdyld.dylib            0x00007fff70ba97fd start + 1
28 libdyld.dylib            0x0000000000000039 start + 18446603338624886845

Example errors:

Summary
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4287:26: error: method does not override any method from its superclass
  override internal func decodeIfPresent(
  ~~~~~~~~               ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4297:15: error: use of undeclared type 'UInt8'
  ) throws -> UInt8? {
              ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4295:13: error: use of undeclared type 'UInt8'
    _ type: UInt8.Type,
            ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4294:26: error: method does not override any method from its superclass
  override internal func decodeIfPresent(
  ~~~~~~~~               ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4304:15: error: use of undeclared type 'UInt16'
  ) throws -> UInt16? {
              ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4302:13: error: use of undeclared type 'UInt16'
    _ type: UInt16.Type,
            ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4301:26: error: method does not override any method from its superclass
  override internal func decodeIfPresent(
  ~~~~~~~~               ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4311:15: error: use of undeclared type 'UInt32'
  ) throws -> UInt32? {
              ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4309:13: error: use of undeclared type 'UInt32'
    _ type: UInt32.Type,
            ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4308:26: error: method does not override any method from its superclass
  override internal func decodeIfPresent(
  ~~~~~~~~               ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4318:15: error: use of undeclared type 'UInt64'
  ) throws -> UInt64? {
              ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4316:13: error: use of undeclared type 'UInt64'
    _ type: UInt64.Type,
            ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4315:26: error: method does not override any method from its superclass
  override internal func decodeIfPresent(
  ~~~~~~~~               ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4595:11: error: use of undeclared type 'Int'
extension Int: Codable {
          ^~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4618:46: error: use of undeclared type 'Int'
extension RawRepresentable where RawValue == Int, Self: Encodable {
                                             ^~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4632:46: error: use of undeclared type 'Int'
extension RawRepresentable where RawValue == Int, Self: Decodable {
                                             ^~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4655:11: error: use of undeclared type 'Int8'
extension Int8: Codable {
          ^~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4678:46: error: use of undeclared type 'Int8'
extension RawRepresentable where RawValue == Int8, Self: Encodable {
                                             ^~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4686:15: error: invalid redeclaration of 'encode(to:)'
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4626:15: note: 'encode(to:)' previously declared here
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4692:46: error: use of undeclared type 'Int8'
extension RawRepresentable where RawValue == Int8, Self: Decodable {
                                             ^~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4700:10: error: invalid redeclaration of 'init(from:)'
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4640:10: note: 'init(from:)' previously declared here
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4715:11: error: use of undeclared type 'Int16'
extension Int16: Codable {
          ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4738:46: error: use of undeclared type 'Int16'
extension RawRepresentable where RawValue == Int16, Self: Encodable {
                                             ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4746:15: error: invalid redeclaration of 'encode(to:)'
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4626:15: note: 'encode(to:)' previously declared here
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4752:46: error: use of undeclared type 'Int16'
extension RawRepresentable where RawValue == Int16, Self: Decodable {
                                             ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4760:10: error: invalid redeclaration of 'init(from:)'
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4640:10: note: 'init(from:)' previously declared here
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4775:11: error: use of undeclared type 'Int32'
extension Int32: Codable {
          ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4798:46: error: use of undeclared type 'Int32'
extension RawRepresentable where RawValue == Int32, Self: Encodable {
                                             ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4806:15: error: invalid redeclaration of 'encode(to:)'
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4626:15: note: 'encode(to:)' previously declared here
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4812:46: error: use of undeclared type 'Int32'
extension RawRepresentable where RawValue == Int32, Self: Decodable {
                                             ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4820:10: error: invalid redeclaration of 'init(from:)'
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4640:10: note: 'init(from:)' previously declared here
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4835:11: error: use of undeclared type 'Int64'
extension Int64: Codable {
          ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4858:46: error: use of undeclared type 'Int64'
extension RawRepresentable where RawValue == Int64, Self: Encodable {
                                             ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4866:15: error: invalid redeclaration of 'encode(to:)'
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4626:15: note: 'encode(to:)' previously declared here
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4872:46: error: use of undeclared type 'Int64'
extension RawRepresentable where RawValue == Int64, Self: Decodable {
                                             ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4880:10: error: invalid redeclaration of 'init(from:)'
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4640:10: note: 'init(from:)' previously declared here
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4895:11: error: use of undeclared type 'UInt'
extension UInt: Codable {
          ^~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4918:46: error: use of undeclared type 'UInt'
extension RawRepresentable where RawValue == UInt, Self: Encodable {
                                             ^~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4926:15: error: invalid redeclaration of 'encode(to:)'
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4626:15: note: 'encode(to:)' previously declared here
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4932:46: error: use of undeclared type 'UInt'
extension RawRepresentable where RawValue == UInt, Self: Decodable {
                                             ^~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4940:10: error: invalid redeclaration of 'init(from:)'
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4640:10: note: 'init(from:)' previously declared here
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4955:11: error: use of undeclared type 'UInt8'
extension UInt8: Codable {
          ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4978:46: error: use of undeclared type 'UInt8'
extension RawRepresentable where RawValue == UInt8, Self: Encodable {
                                             ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4986:15: error: invalid redeclaration of 'encode(to:)'
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4626:15: note: 'encode(to:)' previously declared here
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4992:46: error: use of undeclared type 'UInt8'
extension RawRepresentable where RawValue == UInt8, Self: Decodable {
                                             ^~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5000:10: error: invalid redeclaration of 'init(from:)'
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4640:10: note: 'init(from:)' previously declared here
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5015:11: error: use of undeclared type 'UInt16'
extension UInt16: Codable {
          ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5038:46: error: use of undeclared type 'UInt16'
extension RawRepresentable where RawValue == UInt16, Self: Encodable {
                                             ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5046:15: error: invalid redeclaration of 'encode(to:)'
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4626:15: note: 'encode(to:)' previously declared here
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5052:46: error: use of undeclared type 'UInt16'
extension RawRepresentable where RawValue == UInt16, Self: Decodable {
                                             ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5060:10: error: invalid redeclaration of 'init(from:)'
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4640:10: note: 'init(from:)' previously declared here
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5075:11: error: use of undeclared type 'UInt32'
extension UInt32: Codable {
          ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5098:46: error: use of undeclared type 'UInt32'
extension RawRepresentable where RawValue == UInt32, Self: Encodable {
                                             ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5106:15: error: invalid redeclaration of 'encode(to:)'
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4626:15: note: 'encode(to:)' previously declared here
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5112:46: error: use of undeclared type 'UInt32'
extension RawRepresentable where RawValue == UInt32, Self: Decodable {
                                             ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5120:10: error: invalid redeclaration of 'init(from:)'
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4640:10: note: 'init(from:)' previously declared here
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5135:11: error: use of undeclared type 'UInt64'
extension UInt64: Codable {
          ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5158:46: error: use of undeclared type 'UInt64'
extension RawRepresentable where RawValue == UInt64, Self: Encodable {
                                             ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5166:15: error: invalid redeclaration of 'encode(to:)'
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4626:15: note: 'encode(to:)' previously declared here
  public func encode(to encoder: Encoder) throws {
              ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5172:46: error: use of undeclared type 'UInt64'
[details="Summary"]
This text will be hidden
[/details]

extension RawRepresentable where RawValue == UInt64, Self: Decodable {
                                             ^~~~~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5180:10: error: invalid redeclaration of 'init(from:)'
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:4640:10: note: 'init(from:)' previously declared here
  public init(from decoder: Decoder) throws {
         ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5338:26: error: use of undeclared type 'Int'
  internal let intValue: Int?
                         ^~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5345:28: error: use of undeclared type 'Int'
  internal init?(intValue: Int) {
                           ^~~
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5794:24: error: invalid redeclaration of 'encode(contentsOf:)'
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5786:24: note: 'encode(contentsOf:)' previously declared here
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5802:24: error: invalid redeclaration of 'encode(contentsOf:)'
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5786:24: note: 'encode(contentsOf:)' previously declared here
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5810:24: error: invalid redeclaration of 'encode(contentsOf:)'
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5786:24: note: 'encode(contentsOf:)' previously declared here
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5818:24: error: invalid redeclaration of 'encode(contentsOf:)'
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5786:24: note: 'encode(contentsOf:)' previously declared here
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5826:24: error: invalid redeclaration of 'encode(contentsOf:)'
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5786:24: note: 'encode(contentsOf:)' previously declared here
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5834:24: error: invalid redeclaration of 'encode(contentsOf:)'
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5786:24: note: 'encode(contentsOf:)' previously declared here
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5842:24: error: invalid redeclaration of 'encode(contentsOf:)'
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5786:24: note: 'encode(contentsOf:)' previously declared here
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5850:24: error: invalid redeclaration of 'encode(contentsOf:)'
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5786:24: note: 'encode(contentsOf:)' previously declared here
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5858:24: error: invalid redeclaration of 'encode(contentsOf:)'
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:5786:24: note: 'encode(contentsOf:)' previously declared here
  public mutating func encode<T: Sequence>(
                       ^
/Users/suyashsrijan/Documents/swift-src/swift/stdlib/public/core/Codable.swift:3427:26: error: incorrect argument label in call (have 'intValue:', expected 'stringValue:')
        [_GenericIndexKey(intValue: container.currentIndex)!],
                         ^~~~~~~~~
                          stringValue

Wild guess: Are the integer types being gybbed properly?

Terms of Service

Privacy Policy

Cookie Policy