-
Notifications
You must be signed in to change notification settings - Fork 823
[RFC FS-1060] Nullness checking (applied to codebase) #15310
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
T-Gro
merged 303 commits into
main
from
revert-15309-revert-15265-feature/nullness-enabled
Aug 14, 2024
Merged
Changes from all commits
Commits
Show all changes
303 commits
Select commit
Hold shift + click to select a range
ef15719
fantomas
T-Gro f230a6f
fix tests
T-Gro 7ea37af
Merge branch 'main' into feature/nullness
T-Gro 97a9c31
trim test
T-Gro 51044a7
trimming test
T-Gro 7182913
trim check
T-Gro 26de6fe
now?
T-Gro 8f48a32
IL tests
T-Gro 3f763a5
il tests
T-Gro cbfe777
trim test
T-Gro 5e296b9
trim
T-Gro dec61d6
one more time
T-Gro 91429b4
Merge main to feature/nullness (#16366)
dotnet-bot 3f55d8d
Merge branch 'main' into feature/nullness
T-Gro 73d670d
syntax tree layout
T-Gro 4a19eb4
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro 4ef4815
Merge pull request #16383 from dotnet/merges/main-to-feature/nullness
T-Gro 80efaa2
Nullness-related aggressive trimming of FSharp.Core (#16387)
T-Gro fe42158
Merge branch 'main' into feature/nullness
T-Gro 3de7178
Merge branch 'main' into feature/nullness
T-Gro bf45dee
Merge main to feature/nullness (#16397)
dotnet-bot ed7854b
Merge branch 'main' into feature/nullness
T-Gro 2bca3d8
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro d697c63
Nullness interop - import of C#-emitted metadata (#16423)
T-Gro 00a591c
Nullness - include in QuickInfo and in general in "typeEnc" (string r…
T-Gro 38532af
Merge main to feature/nullness (#16539)
dotnet-bot ba6b0f2
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro c022d5a
applying nullness to the codebase, part 1
T-Gro 9caf7bc
Adjusting codebase
T-Gro 10aa5a2
DelayInitArrayMap nullness
T-Gro e7f4f1f
conflicts resolved
T-Gro 3c53e3b
release notes
T-Gro dfada6a
Merge branch 'main' into feature/nullness
T-Gro dac9c76
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 5b792a0
fix NO_CHECKNULLS build
T-Gro 71e209e
Update illib.fsi
T-Gro 3250b7e
Fix ILType.Array import (#16585)
T-Gro cf735db
Merge branch 'main' into feature/nullness
T-Gro f73a1ff
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro e0f1634
Nullness - reading+writing metadata for 'inherits' and interface imp…
T-Gro 33e5e27
Merge branch 'main' into feature/nullness
T-Gro ca3366b
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro d70d1fe
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
KevinRansom a2df473
Merge pull request #16620 from dotnet/merges/main-to-feature/nullness
KevinRansom 60c4fb0
ILGenerator test case
T-Gro ca7e0b4
Merge branch 'feature/nullness' of https://github.com/dotnet/fsharp i…
T-Gro 476d7ba
workaround a bug in ns20 API
T-Gro e3bfa71
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 29462f2
Merge pull request #16635 from dotnet/merges/main-to-feature/nullness
T-Gro f30c6a0
Merge branch 'main' into feature/nullness
T-Gro 1d86093
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro d1035f1
applying nullness
T-Gro 2c29f52
Merge branch 'revert-15309-revert-15265-feature/nullness-enabled' of …
T-Gro 5811d88
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro cd662eb
Merge pull request #16648 from dotnet/merges/main-to-feature/nullness
T-Gro 2a43e53
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro bca1c53
Nullness :: Format string %s should allow nullable string (#16656)
T-Gro 836e2c9
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro a35c0e2
Merge pull request #16660 from dotnet/merges/main-to-feature/nullness
T-Gro 17f0ced
Nullness:: Unchecked.nonNull for FSharp.Core (#16654)
T-Gro a0cb6b4
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro d4dd6a8
Merge branch 'main' into feature/nullness
T-Gro 15b9962
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 552ea0a
Merge branch 'main' into feature/nullness
T-Gro 050c8a0
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro fc5c6c4
Merge pull request #16679 from dotnet/merges/main-to-feature/nullness
KevinRansom c5ecfb4
Merge branch 'main' into feature/nullness
T-Gro 53f5e8c
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 3775088
Merge pull request #16685 from dotnet/merges/main-to-feature/nullness
KevinRansom 17a5ca9
Nullness :: Pattern matching with null should mark input for subseque…
T-Gro 9bc3f81
Merge branch 'main' into feature/nullness
T-Gro ec2d4a8
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro b6b737f
Merge pull request #16694 from dotnet/merges/main-to-feature/nullness
T-Gro 3754c86
Merge pull request #16705 from dotnet/merges/main-to-feature/nullness
KevinRansom bfd8520
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
KevinRansom ab8a943
Merge pull request #16722 from dotnet/merges/main-to-feature/nullness
T-Gro d487006
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro 0e3f43f
Merge pull request #16727 from dotnet/merges/main-to-feature/nullness
T-Gro 49e0d7c
Merge pull request #16728 from dotnet/merges/main-to-feature/nullness
KevinRansom 97d9437
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
KevinRansom 6827b1c
Feature nullness - support overrides of nullness annotation in the im…
T-Gro 552c843
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro ba69485
Improve type inference w.r.t. nullness in printing (#16681)
T-Gro 9ae3768
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
vzarytovskii e8f2b97
Update tests/AheadOfTime/Trimming/check.ps1
T-Gro 1f2b43b
Merge pull request #16752 from dotnet/merges/main-to-feature/nullness
T-Gro 5eb9fea
Merge branch 'main' into feature/nullness
T-Gro 055c772
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro 654c27f
Merge pull request #16808 from dotnet/merges/main-to-feature/nullness
T-Gro 806c58e
Merge branch 'main' into feature/nullness
T-Gro 743996a
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro 171b69e
Merge branch 'main' into feature/nullness
T-Gro 04b93e1
Fix merge errors
T-Gro b5b14b6
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro cbaffad
Merge pull request #16840 from dotnet/merges/main-to-feature/nullness
T-Gro 2071594
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro 3c5605c
il tests reflecting visibility change
T-Gro cb696d5
Merge pull request #16866 from dotnet/merges/main-to-feature/nullness
T-Gro 14efaa4
Merge branch 'main' into feature/nullness
T-Gro 72b7494
Nullness feature :: New warning for functions insisting on a (WithNul…
T-Gro 74d1da2
Merge branch 'main' into feature/nullness
T-Gro ccc35ba
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro 8ff2ed1
Merge pull request #16915 from dotnet/merges/main-to-feature/nullness
T-Gro 5d89ba3
Merge pull request #16930 from dotnet/merges/main-to-feature/nullness
KevinRansom b84d754
Merge pull request #16939 from dotnet/merges/main-to-feature/nullness
T-Gro 7f502b7
Merge pull request #16949 from dotnet/merges/main-to-feature/nullness
T-Gro 65c7b8b
Merge branch 'main' into feature/nullness
T-Gro 55cd42f
Feature nullness - propper guards against ` | null ` on unsupported t…
T-Gro b34e568
Merge pull request #16960 from dotnet/merges/main-to-feature/nullness
T-Gro 8801707
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 0be7fb4
fantomas
T-Gro 9e4a413
Null-safe activity module
T-Gro a638f34
assemblyresolvehandler - reflection APIs
T-Gro e022636
Decorating generic not null type parameters
T-Gro 28eb39c
Conditionally adding net8.0 tfm to get better null annotations
T-Gro 9cf47f4
asyncmemoize,cancellable
T-Gro faba56d
Merge pull request #16980 from dotnet/merges/main-to-feature/nullness
KevinRansom a2fb9dd
Compiler location
T-Gro 0d7068c
Option.ofString
T-Gro a6be10c
Merge pull request #16989 from dotnet/merges/main-to-feature/nullness
T-Gro a871929
getting rid of explicit type annotations
T-Gro 7090129
(!!) introduced, applied for `typeof<..>.FullName`
T-Gro 25dd379
.ToString() can return null, `string` function handles this
T-Gro bb6ae59
e.InnerException safe handling
T-Gro 3a1a352
compiler imports - !! on file system ops that are `NotNullIfNotNull`
T-Gro b8feeac
Merge pull request #16996 from dotnet/merges/main-to-feature/nullness
KevinRansom 920cae8
compilerlocation
T-Gro d522550
some more
T-Gro 4b9ff3d
nullArgCheck -> (!!) to match existing assumption
T-Gro dc8b9fd
dependency provider
T-Gro 597e9d6
next batch
T-Gro 3675157
next batch
T-Gro 0e350af
Working around .ToString() overrides in F# side
T-Gro dc6dd0b
ilreflect
T-Gro 9067ad6
Merge pull request #17007 from dotnet/merges/main-to-feature/nullness
T-Gro 647d797
Merge pull request #17023 from dotnet/merges/main-to-feature/nullness
T-Gro 387acf8
next batch, adding `defaultIfNull `
T-Gro bc8a27e
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro 4b955cd
nullSafeEquality added, bunch of files reworked
T-Gro 58f8cac
Merge pull request #17037 from dotnet/merges/main-to-feature/nullness
T-Gro 76d28e5
transparent compiler - apply !! to filepath ops
T-Gro a9f23ca
typedtree
T-Gro d3cf221
typeproviders,infos
T-Gro f25d792
infos,,ilwritepdb
T-Gro 1f9d5e9
some more
T-Gro b5b3f0d
Merge pull request #17058 from dotnet/merges/main-to-feature/nullness
KevinRansom c1b53bc
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro dc0eaea
next batch, compareBy added
T-Gro 42c6afd
Merge pull request #17065 from dotnet/merges/main-to-feature/nullness
T-Gro d78f5aa
Feature nullness :: warn also for 'obj' type (since it can be infered…
T-Gro a2823f3
typedtreeops, IComparer and IEqualityComparer impls
T-Gro 6f0875d
sformat
T-Gro a0a7d82
Merge branch 'main' into feature/nullness
T-Gro 13e8af2
Nullness feature :: various bugfixes (#17080)
T-Gro 3bcf33d
Merge pull request #17083 from dotnet/merges/main-to-feature/nullness
T-Gro 71c6b58
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 14d666e
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro fed2bdb
Merge branch 'main' into merges/main-to-feature/nullness
T-Gro ebdeebc
updating IL tests
T-Gro f161691
One more try
T-Gro 6cf326c
surface area
T-Gro e154438
Merge branch 'main' into merges/main-to-feature/nullness
T-Gro 0b65db9
trimmed size
T-Gro 176275f
Merge pull request #17097 from dotnet/merges/main-to-feature/nullness
T-Gro a6373c9
Merge branch 'merges/main-to-feature/nullness' of https://github.com/…
T-Gro 817ee1e
trimmed size
T-Gro 61f5777
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro 03e294f
Merge pull request #17175 from dotnet/merges/main-to-feature/nullness
T-Gro 7da45b5
fix issues for plain 'dotnet build Fsharp.Compiler.Service.sln`
T-Gro c28b21a
update FSharpCoreShippedPackageVersionValue
T-Gro 3570b2f
Wkraround attributetargets issue by using 'obj'. This removes 3x box …
T-Gro 13e50b4
Merge pull request #17185 from dotnet/feature-nullness-fix-plain-builds
T-Gro 3d375d2
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro e2e698d
Feature nullness :: Bugfixes (#17102)
T-Gro 165f664
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro 3603443
Merge pull request #17192 from dotnet/merges/main-to-feature/nullness
T-Gro 101ae03
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro aa62eef
Automated command ran: fantomas
github-actions[bot] a72457e
Feature nullness :: Try infer without null even when function/method…
T-Gro d4ad891
Feature nullness :: apply nullness annotations to usages of 'obj' in …
T-Gro 382a327
Merge pull request #17213 from dotnet/merges/main-to-feature/nullness
T-Gro f9b1ccc
Merge branch 'main' into feature/nullness
T-Gro d84326b
resolve build error from auto-merge
T-Gro 64033b9
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro d2d7bd3
Merge pull request #17304 from dotnet/merges/main-to-feature/nullness
T-Gro 1b29d70
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 7bde93c
Merge branch 'main' into feature/nullness
T-Gro 5ab472e
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 679f605
Merge pull request #17320 from dotnet/merges/main-to-feature/nullness
T-Gro 4fbbf32
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 5488a35
Feature nullness :: Cleanups, Test reorg, fix incrementalbuild cache …
T-Gro 091da12
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 23f9990
Got rid of errors, now only warnings remain - hopefully
T-Gro 0bba083
Relaxing LKG definition of MaybeNull to make it work for List ( List …
T-Gro 98458d0
applying to codebase
T-Gro da4cdd3
applying nullness
T-Gro c044f20
protobuild passing now
T-Gro e41ad14
Update fsc.fsproj
T-Gro a9e52a3
fantomas
T-Gro 9abf120
fix build
T-Gro 888995c
try skipping R2R
T-Gro 0aa633f
Bootstraping for resource builds
T-Gro 595412f
Fix plain build
T-Gro 2cb5387
Merge branch 'main' into revert-15309-revert-15265-feature/nullness-e…
T-Gro 107ee5c
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro 30b2a02
fix tests build
T-Gro dc92a0c
Merge pull request #17337 from dotnet/merges/main-to-feature/nullness
T-Gro 1108c0d
fantomas
T-Gro 0a8ee68
Moving changes off from Micosoft.FSharp.targets to local Directory bu…
T-Gro 469899b
Merge branch 'merges/main-to-feature/nullness' of https://github.com/…
T-Gro 24f923c
Merge branch 'feature/nullness' into merges/main-to-feature/nullness
T-Gro c8cfda2
fix build issues
T-Gro 653507c
Merge branch 'merges/main-to-feature/nullness' of https://github.com/…
T-Gro fedc901
Merge pull request #17354 from dotnet/merges/main-to-feature/nullness
T-Gro 7ec905d
Merge branch 'main' into feature/nullness
T-Gro 64c7e18
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 1f2e0c4
resolve semantic merge error
T-Gro af3f704
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro ddd666d
merge
KevinRansom 59938f4
Merge pull request #17395 from KevinRansom/nullness
T-Gro a7984af
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 49bec1c
Nullness subsumption when used for contravariant typars
T-Gro 6a65374
Merge branch 'feature/nullness' into feature-nullness-variance
T-Gro 30c3432
fix nullness plain build (#17404)
T-Gro 0773645
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 5f6b7da
Merge branch 'feature/nullness' into feature-nullness-variance
T-Gro 3752733
Merge branch 'main' into feature/nullness
vzarytovskii 57026b8
Merge pull request #17398 from dotnet/feature-nullness-variance
T-Gro 5dcad11
Merge branch 'feature/nullness' into revert-15309-revert-15265-featur…
T-Gro 770f98e
Merge branch 'main' into revert-15309-revert-15265-feature/nullness-e…
T-Gro e6f93a7
fix build issues after merge conflicts
T-Gro 3a1b9ab
Fix release notes
psfinaki ee10bb3
Merge branch 'main' into revert-15309-revert-15265-feature/nullness-e…
T-Gro 3e108fe
Change TargetFrameworks conditioning
T-Gro a72a20f
Resolving some TODOs, address fsharp.build artifacts and their nullne…
T-Gro 48239d1
resolve TODOs in inforeader
T-Gro 509e515
Our Range must shadow the System.Range which exists for ns2.1 and above
T-Gro bc6a20d
fantomas
T-Gro 9c2e5e8
fantomas, readmes
T-Gro 67667ce
Merge branch 'main' into revert-15309-revert-15265-feature/nullness-e…
T-Gro 1b90861
F.C.S surface tests must use ns2.0 to make sure assembly references a…
T-Gro 0284740
Merge branch 'main' into revert-15309-revert-15265-feature/nullness-e…
T-Gro 1c08cd0
Merge branch 'main' into revert-15309-revert-15265-feature/nullness-e…
T-Gro 3aa57a2
Skip NetCurrent on OSX CI
T-Gro 677ce2f
Skip NetCurrent Linux as well, I think machine provisioning makes it …
T-Gro 8717723
Merge branch 'main' into revert-15309-revert-15265-feature/nullness-e…
T-Gro 5020a50
Re-enable PublishReadyToRun for fsc
T-Gro 0b5cf85
Merge branch 'main' into revert-15309-revert-15265-feature/nullness-e…
T-Gro 1efd639
put fsc.fscproj back
T-Gro 02d9d23
Merge branch 'main' into revert-15309-revert-15265-feature/nullness-e…
T-Gro 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
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.
Uh oh!
There was an error while loading. Please reload this page.