Skip to content

Commit 1518498

Browse files
authored
Merge pull request #17717 from dotnet/merges/main-to-release/dev17.12
2 parents 119bba8 + 6006a0a commit 1518498

File tree

8 files changed

+24
-17
lines changed

8 files changed

+24
-17
lines changed

.devcontainer/devcontainer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
22
{
33
"name": "F#",
4-
"image": "mcr.microsoft.com/dotnet/sdk:9.0.100-preview.7",
4+
"image": "mcr.microsoft.com/dotnet/sdk:9.0.100-rc.1",
55
"features": {
6-
"ghcr.io/devcontainers/features/common-utils:2.4.6": {},
6+
"ghcr.io/devcontainers/features/common-utils:2.5.1": {},
77
"ghcr.io/devcontainers/features/git:1.3.2": {},
88
"ghcr.io/devcontainers/features/github-cli:1.0.13": {},
9-
"ghcr.io/devcontainers/features/dotnet:2.1.2": {}
9+
"ghcr.io/devcontainers/features/dotnet:2.1.3": {}
1010
},
1111
"hostRequirements": {
1212
"cpus": 2,

Directory.Build.props

+5-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@
4646

4747
<PropertyGroup Condition="'$(BUILDING_USING_DOTNET)' == 'true'">
4848
<DisableAutoSetFscCompilerPath>false</DisableAutoSetFscCompilerPath>
49-
<FSHARPCORE_USE_PACKAGE Condition="'$(FSHARPCORE_USE_PACKAGE)' == ''">true</FSHARPCORE_USE_PACKAGE>
49+
50+
<!-- TODO(vlza): This probably should be `true` once fslib with nullness ships, since shipped library is preferred by default when building this solution. -->
51+
<FSHARPCORE_USE_PACKAGE Condition="'$(FSHARPCORE_USE_PACKAGE)' == ''">false</FSHARPCORE_USE_PACKAGE>
52+
5053
<DISABLE_ARCADE Condition="'$(DISABLE_ARCADE)' == ''">true</DISABLE_ARCADE>
5154
<ArtifactsDir>$(MSBuildThisFileDirectory)artifacts/</ArtifactsDir>
5255
<OutputPath>$(ArtifactsDir)/bin/$(MSBuildProjectName)/$(Configuration)/</OutputPath>
@@ -57,6 +60,7 @@
5760
<FsYaccPath>$(ArtifactsDir)/bin/fsyacc/$(Configuration)/$(FSharpNetCoreProductDefaultTargetFramework)/$(RuntimeIdentifier)/fsyacc.dll</FsYaccPath>
5861
<DefineConstants>NO_CHECKNULLS;BUILDING_WITH_LKG;NO_NULLCHECKING_LIB_SUPPORT;$(DefineConstants)</DefineConstants>
5962
</PropertyGroup>
63+
6064
<Import Project="$(MSBuildThisFileDirectory)/eng/Versions.props" Condition="'$(DISABLE_ARCADE)' == 'true'" />
6165

6266
<Import Project="FSharpBuild.Directory.Build.props" Condition=" '$(FSharpTestCompilerVersion)' == '' " />

Directory.Build.targets

-1
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,4 @@
5151
RemoveProperties="TargetFramework"
5252
StopOnFirstFailure="True" />
5353
</Target>
54-
5554
</Project>

FSharp.Profiles.props

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
<OtherFlags>$(OtherFlags) /langversion:preview</OtherFlags>
2323
</PropertyGroup>
2424

25+
<PropertyGroup Condition="'$(BUILDING_USING_DOTNET)' == 'true'">
26+
<CheckNulls>false</CheckNulls>
27+
</PropertyGroup>
28+
2529
<PropertyGroup Condition="'$(CheckNulls)' == 'true'">
2630
<Nullable>enable</Nullable>
2731
</PropertyGroup>

eng/Version.Details.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
</Dependency>
4343
</ProductDependencies>
4444
<ToolsetDependencies>
45-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.24459.6">
45+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.24462.3">
4646
<Uri>https://github.com/dotnet/arcade</Uri>
47-
<Sha>65260b148c869ada772a5843863c54737cd2361e</Sha>
47+
<Sha>91b9734abbad751d575c002b30778c88d978993c</Sha>
4848
</Dependency>
4949
<!-- Intermediate is necessary for source build. -->
50-
<Dependency Name="Microsoft.SourceBuild.Intermediate.arcade" Version="9.0.0-beta.24459.6">
50+
<Dependency Name="Microsoft.SourceBuild.Intermediate.arcade" Version="9.0.0-beta.24462.3">
5151
<Uri>https://github.com/dotnet/arcade</Uri>
52-
<Sha>65260b148c869ada772a5843863c54737cd2361e</Sha>
52+
<Sha>91b9734abbad751d575c002b30778c88d978993c</Sha>
5353
<SourceBuild RepoName="arcade" ManagedOnly="true" />
5454
</Dependency>
5555
<Dependency Name="optimization.windows_nt-x64.MIBC.Runtime" Version="1.0.0-prerelease.23614.4">

global.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"sdk": {
3-
"version": "9.0.100-preview.7.24407.12",
3+
"version": "9.0.100-rc.1.24452.12",
44
"allowPrerelease": true
55
},
66
"tools": {
7-
"dotnet": "9.0.100-preview.7.24407.12",
7+
"dotnet": "9.0.100-rc.1.24452.12",
88
"vs": {
99
"version": "17.8",
1010
"components": [
@@ -17,7 +17,7 @@
1717
"perl": "5.38.2.2"
1818
},
1919
"msbuild-sdks": {
20-
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24459.6",
20+
"Microsoft.DotNet.Arcade.Sdk": "9.0.0-beta.24462.3",
2121
"Microsoft.DotNet.Helix.Sdk": "8.0.0-beta.23255.2"
2222
}
2323
}

tests/AheadOfTime/Trimming/check.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function CheckTrim($root, $tfm, $outputfile, $expected_len) {
4343
# error NETSDK1124: Trimming assemblies requires .NET Core 3.0 or higher.
4444

4545
# Check net7.0 trimmed assemblies
46-
CheckTrim -root "SelfContained_Trimming_Test" -tfm "net9.0" -outputfile "FSharp.Core.dll" -expected_len 287232
46+
CheckTrim -root "SelfContained_Trimming_Test" -tfm "net9.0" -outputfile "FSharp.Core.dll" -expected_len 297984
4747

4848
# Check net8.0 trimmed assemblies
49-
CheckTrim -root "StaticLinkedFSharpCore_Trimming_Test" -tfm "net9.0" -outputfile "StaticLinkedFSharpCore_Trimming_Test.dll" -expected_len 8821248
49+
CheckTrim -root "StaticLinkedFSharpCore_Trimming_Test" -tfm "net9.0" -outputfile "StaticLinkedFSharpCore_Trimming_Test.dll" -expected_len 9148416

tests/FSharp.Compiler.ComponentTests/Interop/ByrefTests.fs

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ open System.Collections.Generic
115115
let myDict = ["x",1;"xyz",2] |> dict |> Dictionary
116116
117117
let checkIfPresent (input:ReadOnlySpan<char>) =
118-
let altLookup = myDict.GetAlternateLookup<string,int,ReadOnlySpan<char>>()
118+
let altLookup = myDict.GetAlternateLookup<ReadOnlySpan<char>>()
119119
let present = altLookup.ContainsKey(input)
120120
for c in input do
121121
printf "%c" c
@@ -134,7 +134,7 @@ let main _args =
134134
|> shouldSucceed
135135
|> verifyOutputContains [|": false";"x: true";"xyz: true"|]
136136
|> verifyIL
137-
["call valuetype [System.Collections]System.Collections.Generic.Dictionary`2/AlternateLookup`1<!!0,!!1,!!2> [System.Collections]System.Collections.Generic.CollectionExtensions::GetAlternateLookup<string,int32,valuetype [runtime]System.ReadOnlySpan`1<char>>(class [System.Collections]System.Collections.Generic.Dictionary`2<!!0,!!1>)"]
137+
["callvirt instance valuetype [System.Collections]System.Collections.Generic.Dictionary`2/AlternateLookup`1<!0,!1,!!0> class [System.Collections]System.Collections.Generic.Dictionary`2<string,int32>::GetAlternateLookup<valuetype [runtime]System.ReadOnlySpan`1<char>>()"]
138138

139139
[<FactForNETCOREAPP>]
140140
let ``Ref structs in generics - GetAlternateLookup`` () =
@@ -144,7 +144,7 @@ open System.Collections.Generic
144144
145145
let main _args =
146146
let myDict = ["x",1;"y",2] |> dict |> Dictionary
147-
let altLookup = myDict.GetAlternateLookup<string,int,ReadOnlySpan<char>>()
147+
let altLookup = myDict.GetAlternateLookup<ReadOnlySpan<char>>()
148148
altLookup.ContainsKey(ReadOnlySpan([|'x'|]))
149149
"""
150150
|> withLangVersionPreview

0 commit comments

Comments
 (0)