-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Explicitly null check the stdlib #23566
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
Open
hamzaremmal
wants to merge
46
commits into
scala:main
Choose a base branch
from
dotty-staging:explicit-nulls-stdlib
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,499
−1,392
Open
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
2beaae9
chore: enable explicit-nulls in the stdlib
hamzaremmal 8820357
Port stdlib to explicit nulls
noti0na1 6c5f4c5
Adjust some type parameters
noti0na1 0909858
More changes
noti0na1 70041ed
Migrate RBT
noti0na1 af6fd65
Another RBT
noti0na1 8fe03d9
Update TrieMap
noti0na1 d461b14
Fix some cc errors
noti0na1 8d626c3
Fix remaining cc errors
noti0na1 d2e09c8
Clean some unnecessary .nn
noti0na1 d0d0d98
Removing remaining unnecessary .nn
noti0na1 c56501e
Fix crush
noti0na1 e097b2c
Always apply asInstanceOf with arguments
noti0na1 b129ced
Refine .nn usages
noti0na1 8a74a5b
Address some review comments
noti0na1 5cec392
Make wrappers and convertors non-nullable
noti0na1 1c4c83b
Fix NPEs revealed by tests
noti0na1 4eeaf7a
Fix a missing comment
noti0na1 d56985c
Remove some unnecessary .nn
noti0na1 91f90d8
Try to migrate sjs library
noti0na1 57a3f43
Update tests about Regex
noti0na1 c8d9b93
Update required type signatures in sjs
noti0na1 8f99266
NO IDEA FOR NOW :)
noti0na1 e315680
Refactor type erasure logic for Scala 2 pseudo-unions in Scalajs
noti0na1 0f61340
Fix MiMa issue
noti0na1 a0abd36
Keep Yflexify-tasty tests disabled
noti0na1 558d143
Resolve some review comments
noti0na1 1d326c5
Update comment in LazyListIterable
noti0na1 20c9504
Migrate scaladoc-new
noti0na1 670cbb6
Re-enable explicit nulls in compiler
noti0na1 c7100a8
Update test code
noti0na1 5d03653
Use hack to compile scala3-library for now
noti0na1 01a8a85
Add comments
noti0na1 b7cb5de
Address review comments; avoid inferred flexible types
noti0na1 68d0fb9
Address review comments
noti0na1 3929722
Update Option.apply
noti0na1 4db2859
Revert "Update Option.apply"
noti0na1 1598582
Remove experimental annotation from Option.fromNullable
noti0na1 8f628ba
Address comments
noti0na1 da79ae2
Add mapNull and nullForGC to ScalaRunTime
noti0na1 4344b3d
Address some comments
noti0na1 a96f739
Re-apply nullable to Option.apply
noti0na1 542c9d7
Fix tests
noti0na1 7e4d698
Update Promise; update build
noti0na1 9b657fb
Fix build; remove fromNullable usage
noti0na1 4678e50
Address comments; polish Prop to disallow setting null string value
noti0na1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like these changes deserve a separate PR, as they actually change the compiler's behavior; not just the library types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created #24130
Do you have any suggestion how to test this in sjs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully once #24115 is in, we will have enough coverage for this by construction.