Skip to content

[stdlib] Remove a bunch of declarations marked as obsoleted in 4 #22138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 1, 2019

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Jan 25, 2019

No description provided.

@moiseev
Copy link
Contributor Author

moiseev commented Jan 25, 2019

@swift-ci Please test

@moiseev moiseev changed the title [stdlib] Remove a bunch opf declarations marked as obsoleted in 4 [stdlib] Remove a bunch of declarations marked as obsoleted in 4 Jan 25, 2019
@moiseev moiseev force-pushed the spring-cleaning branch 2 times, most recently from ea6f7fc to 01e1c6e Compare January 25, 2019 23:54
@moiseev
Copy link
Contributor Author

moiseev commented Jan 25, 2019

@swift-ci Please test

Func Int8.<<=(_:_:) has been removed
Func Int8.>>(_:_:) has been removed
Func Int8.>>=(_:_:) has been removed
Func Int8.toUIntMax() has been removed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\o/

@moiseev
Copy link
Contributor Author

moiseev commented Jan 25, 2019

@swift-ci please smoke test compiler performance

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 38603b00e380dda9a7501656261efee244165da2

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 38603b00e380dda9a7501656261efee244165da2

@swift-ci
Copy link
Contributor

Build comment file:

Summary for master smoketest

Unexpected test results, excluded stats for Kingfisher, Alamofire, ReactiveCocoa

Regressions found (see below)

Debug

debug brief

Regressed (1)
name old new delta delta_pct
time.swift-driver.wall 13.9s 14.2s 346.0ms 2.49% ⛔
Improved (0)
name old new delta delta_pct
Unchanged (delta < 1.0% or delta < 100.0ms) (2)
name old new delta delta_pct
Frontend.NumInstructionsExecuted 107,262,029,707 107,066,704,241 -195,325,466 -0.18%
LLVM.NumLLVMBytesOutput 6,269,564 6,269,448 -116 -0.0%

debug detailed

Regressed (0)
name old new delta delta_pct
Improved (2)
name old new delta delta_pct
Sema.NumDeclsDeserialized 136,209 134,369 -1,840 -1.35% ✅
Sema.NumLazyIterableDeclContexts 24,137 23,867 -270 -1.12% ✅
Unchanged (delta < 1.0% or delta < 100.0ms) (21)
name old new delta delta_pct
AST.NumImportedExternalDefinitions 1,032 1,032 0 0.0%
AST.NumLoadedModules 828 828 0 0.0%
AST.NumTotalClangImportedEntities 4,210 4,210 0 0.0%
AST.NumUsedConformances 886 886 0 0.0%
IRModule.NumIRBasicBlocks 17,936 17,936 0 0.0%
IRModule.NumIRFunctions 10,554 10,554 0 0.0%
IRModule.NumIRGlobals 8,021 8,021 0 0.0%
IRModule.NumIRInsts 312,280 312,280 0 0.0%
IRModule.NumIRValueSymbols 17,638 17,638 0 0.0%
LLVM.NumLLVMBytesOutput 6,269,564 6,269,448 -116 -0.0%
SILModule.NumSILGenFunctions 5,384 5,384 0 0.0%
SILModule.NumSILOptFunctions 7,062 7,062 0 0.0%
Sema.NumConformancesDeserialized 15,929 15,929 0 0.0%
Sema.NumConstraintScopes 41,654 41,654 0 0.0%
Sema.NumDeclsValidated 11,208 11,208 0 0.0%
Sema.NumFunctionsTypechecked 2,516 2,516 0 0.0%
Sema.NumGenericSignatureBuilders 4,772 4,772 0 0.0%
Sema.NumLazyGenericEnvironments 30,110 29,958 -152 -0.5%
Sema.NumLazyGenericEnvironmentsLoaded 2,012 2,012 0 0.0%
Sema.NumTypesDeserialized 60,919 60,883 -36 -0.06%
Sema.NumTypesValidated 10,932 10,932 0 0.0%

Release

release brief

Regressed (0)
name old new delta delta_pct
Improved (0)
name old new delta delta_pct
Unchanged (delta < 1.0% or delta < 100.0ms) (3)
name old new delta delta_pct
Frontend.NumInstructionsExecuted 140,431,402,073 140,408,951,619 -22,450,454 -0.02%
LLVM.NumLLVMBytesOutput 7,275,652 7,275,780 128 0.0%
time.swift-driver.wall 23.5s 23.4s -41.7ms -0.18%

release detailed

Regressed (0)
name old new delta delta_pct
Improved (2)
name old new delta delta_pct
Sema.NumDeclsDeserialized 32,490 32,000 -490 -1.51% ✅
Sema.NumLazyIterableDeclContexts 4,174 4,120 -54 -1.29% ✅
Unchanged (delta < 1.0% or delta < 100.0ms) (21)
name old new delta delta_pct
AST.NumImportedExternalDefinitions 402 402 0 0.0%
AST.NumLoadedModules 76 76 0 0.0%
AST.NumTotalClangImportedEntities 2,113 2,113 0 0.0%
AST.NumUsedConformances 886 886 0 0.0%
IRModule.NumIRBasicBlocks 20,943 20,943 0 0.0%
IRModule.NumIRFunctions 10,213 10,213 0 0.0%
IRModule.NumIRGlobals 8,088 8,088 0 0.0%
IRModule.NumIRInsts 220,344 220,344 0 0.0%
IRModule.NumIRValueSymbols 17,445 17,445 0 0.0%
LLVM.NumLLVMBytesOutput 7,275,652 7,275,780 128 0.0%
SILModule.NumSILGenFunctions 4,180 4,180 0 0.0%
SILModule.NumSILOptFunctions 5,854 5,854 0 0.0%
Sema.NumConformancesDeserialized 12,287 12,287 0 0.0%
Sema.NumConstraintScopes 40,650 40,650 0 0.0%
Sema.NumDeclsValidated 7,874 7,874 0 0.0%
Sema.NumFunctionsTypechecked 2,204 2,204 0 0.0%
Sema.NumGenericSignatureBuilders 1,710 1,710 0 0.0%
Sema.NumLazyGenericEnvironments 6,821 6,781 -40 -0.59%
Sema.NumLazyGenericEnvironmentsLoaded 130 130 0 0.0%
Sema.NumTypesDeserialized 18,156 18,146 -10 -0.06%
Sema.NumTypesValidated 5,972 5,972 0 0.0%

@moiseev
Copy link
Contributor Author

moiseev commented Jan 26, 2019

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 01e1c6ef4d517cec95e67ad71f10b50e8ee99c2f

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 01e1c6ef4d517cec95e67ad71f10b50e8ee99c2f

@moiseev
Copy link
Contributor Author

moiseev commented Jan 26, 2019

@swift-ci Please test macOS platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 240be2d0e30241c2c4fbfca9ba7d4c62ee266e51

@moiseev
Copy link
Contributor Author

moiseev commented Jan 28, 2019

@swift-ci Please test macOS platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 240be2d0e30241c2c4fbfca9ba7d4c62ee266e51

@moiseev
Copy link
Contributor Author

moiseev commented Jan 28, 2019

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 240be2d0e30241c2c4fbfca9ba7d4c62ee266e51

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 240be2d0e30241c2c4fbfca9ba7d4c62ee266e51

@moiseev
Copy link
Contributor Author

moiseev commented Jan 28, 2019

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 046aa398e72b375c741c1ac9c55a1d1881115d7d

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 046aa398e72b375c741c1ac9c55a1d1881115d7d

message: "Please use 'FixedWidthInteger' instead of 'SignedInteger' to get '&-' in generic code.")
public static func &- (lhs: Self, rhs: Self) -> Self {
return _maskingSubtract(lhs, rhs)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of these things are here to help when people type the wrong thing. Are you sure it's worth removing them?

Copy link
Contributor Author

@moiseev moiseev Jan 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that was when SignedInteger implied a fixed-width-integer-ness, which has not been the case for more than a year now, so I'd say, yes.

@xedin
Copy link
Contributor

xedin commented Jan 28, 2019

:shipit:

@moiseev
Copy link
Contributor Author

moiseev commented Jan 29, 2019

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 75e6f45b73e06b3949c6311572ff2dd165fb40ef

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 75e6f45b73e06b3949c6311572ff2dd165fb40ef

@moiseev
Copy link
Contributor Author

moiseev commented Jan 29, 2019

apple/swift-lldb#1255
@swift-ci Please smoke test

@moiseev
Copy link
Contributor Author

moiseev commented Jan 30, 2019

@swift-ci Please smoke test

@moiseev
Copy link
Contributor Author

moiseev commented Jan 30, 2019

@swift-ci Please test macOS platform

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - a367e33032731afd418e5810d359acc661d1607c

@benrimmington
Copy link
Contributor

benrimmington commented Feb 1, 2019

Should the LazySequenceProtocol.flatMap(_:) also be obsoleted?

What's the current status of PlaygroundQuickLook and CustomPlaygroundQuickLookable?

@moiseev
Copy link
Contributor Author

moiseev commented Feb 1, 2019

Should the LazySequenceProtocol.flatMap(_:) also be obsoleted?

Go for it. obsoleted: 5.1 seems to be a reasonable guess for a next version.

As for the quicklookables, the majority of that stuff is already marked as obsoleted in Swift 5.0, the rest for some reason wasn't. Do you mind trying to mark it as obsolete in 5.1 and see what breaks?
/cc @airspeedswift

@moiseev moiseev merged commit 556e089 into swiftlang:master Feb 1, 2019
@moiseev moiseev deleted the spring-cleaning branch February 1, 2019 19:03
@benrimmington
Copy link
Contributor

@moiseev My current iMac isn't supported by macOS Mojave, so I won't be able to build and test the above changes (to flatMap and quicklookables) by March 18th.

@moiseev
Copy link
Contributor Author

moiseev commented Feb 22, 2019

It doesn't look like a pressing issue at the moment. All the APIs we're talking about are marked as deprecated now and the don't have to be obsoleted in 5.0 anyway. Besides, CI can help figure out what breaks :-)

@moiseev
Copy link
Contributor Author

moiseev commented Feb 22, 2019

Let's try that flatMap first, shall we? #22817

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants