Skip to content

Commit c2633e2

Browse files
[automated] Merge branch 'main' => 'main-vs-deps' (#79225)
I detected changes in the main branch which have not been merged yet to main-vs-deps. I'm a robot and am configured to help you automatically keep main-vs-deps up to date, so I've opened this PR. This PR merges commits made on main by the following committers: * jjonescz ## Instructions for merging from UI This PR will not be auto-merged. When pull request checks pass, complete this PR by creating a merge commit, *not* a squash or rebase commit. <img alt="merge button instructions" src="https://i.imgur.com/GepcNJV.png" width="300" /> If this repo does not allow creating merge commits from the GitHub UI, use command line instructions. ## Instructions for merging via command line Run these commands to merge this pull request from the command line. ``` sh git fetch git checkout main git pull --ff-only git checkout main-vs-deps git pull --ff-only git merge --no-ff main # If there are merge conflicts, resolve them and then run git merge --continue to complete the merge # Pushing the changes to the PR branch will re-trigger PR validation. git push https://github.com/dotnet/roslyn HEAD:merge/main-to-main-vs-deps ``` <details> <summary>or if you are using SSH</summary> ``` git push git@github.com:dotnet/roslyn HEAD:merge/main-to-main-vs-deps ``` </details> After PR checks are complete push the branch ``` git push ``` ## Instructions for resolving conflicts :warning: If there are merge conflicts, you will need to resolve them manually before merging. You can do this [using GitHub][resolve-github] or using the [command line][resolve-cli]. [resolve-github]: https://help.github.com/articles/resolving-a-merge-conflict-on-github/ [resolve-cli]: https://help.github.com/articles/resolving-a-merge-conflict-using-the-command-line/ ## Instructions for updating this pull request Contributors to this repo have permission update this pull request by pushing to the branch 'merge/main-to-main-vs-deps'. This can be done to resolve conflicts or make other changes to this pull request before it is merged. The provided examples assume that the remote is named 'origin'. If you have a different remote name, please replace 'origin' with the name of your remote. ``` git fetch git checkout -b merge/main-to-main-vs-deps origin/main-vs-deps git pull https://github.com/dotnet/roslyn merge/main-to-main-vs-deps (make changes) git commit -m "Updated PR with my changes" git push https://github.com/dotnet/roslyn HEAD:merge/main-to-main-vs-deps ``` <details> <summary>or if you are using SSH</summary> ``` git fetch git checkout -b merge/main-to-main-vs-deps origin/main-vs-deps git pull git@github.com:dotnet/roslyn merge/main-to-main-vs-deps (make changes) git commit -m "Updated PR with my changes" git push git@github.com:dotnet/roslyn HEAD:merge/main-to-main-vs-deps ``` </details> Contact .NET Core Engineering (dotnet/dnceng) if you have questions or issues. Also, if this PR was generated incorrectly, help us fix it. See https://github.com/dotnet/arcade/blob/main/.github/workflows/scripts/inter-branch-merge.ps1.
2 parents 9f02149 + ad0a3e5 commit c2633e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+194
-101
lines changed

Compilers.slnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"src\\ExpressionEvaluator\\Core\\Source\\ExpressionCompiler\\Microsoft.CodeAnalysis.ExpressionCompiler.csproj",
5454
"src\\ExpressionEvaluator\\VisualBasic\\Source\\ExpressionCompiler\\Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler.vbproj",
5555
"src\\Interactive\\csi\\csi.csproj",
56+
"src\\NuGet\\Microsoft.CodeAnalysis.BuildClient.Package\\Microsoft.CodeAnalysis.BuildClient.Package.csproj",
5657
"src\\NuGet\\Microsoft.CodeAnalysis.Compilers.Package\\Microsoft.CodeAnalysis.Compilers.Package.csproj",
5758
"src\\NuGet\\Microsoft.CodeAnalysis.Package\\Microsoft.CodeAnalysis.Package.csproj",
5859
"src\\NuGet\\Microsoft.Net.Compilers.Toolset\\AnyCpu\\Microsoft.Net.Compilers.Toolset.Package.csproj",

Roslyn.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Build.Tasks.CodeA
725725
EndProject
726726
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Build.Tasks.CodeAnalysis.Sdk.UnitTests", "src\Compilers\Core\SdkTaskTests\Microsoft.Build.Tasks.CodeAnalysis.Sdk.UnitTests.csproj", "{5399BBCC-417F-C710-46DE-EB0C0074C34D}"
727727
EndProject
728+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.CodeAnalysis.BuildClient.Package", "src\NuGet\Microsoft.CodeAnalysis.BuildClient.Package\Microsoft.CodeAnalysis.BuildClient.Package.csproj", "{5E4F7448-B00B-4F5B-859F-6ED0354253D5}"
729+
EndProject
728730
Global
729731
GlobalSection(SolutionConfigurationPlatforms) = preSolution
730732
Debug|Any CPU = Debug|Any CPU
@@ -1791,6 +1793,10 @@ Global
17911793
{5399BBCC-417F-C710-46DE-EB0C0074C34D}.Debug|Any CPU.Build.0 = Debug|Any CPU
17921794
{5399BBCC-417F-C710-46DE-EB0C0074C34D}.Release|Any CPU.ActiveCfg = Release|Any CPU
17931795
{5399BBCC-417F-C710-46DE-EB0C0074C34D}.Release|Any CPU.Build.0 = Release|Any CPU
1796+
{5E4F7448-B00B-4F5B-859F-6ED0354253D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1797+
{5E4F7448-B00B-4F5B-859F-6ED0354253D5}.Debug|Any CPU.Build.0 = Debug|Any CPU
1798+
{5E4F7448-B00B-4F5B-859F-6ED0354253D5}.Release|Any CPU.ActiveCfg = Release|Any CPU
1799+
{5E4F7448-B00B-4F5B-859F-6ED0354253D5}.Release|Any CPU.Build.0 = Release|Any CPU
17941800
EndGlobalSection
17951801
GlobalSection(SolutionProperties) = preSolution
17961802
HideSolutionNode = FALSE
@@ -2130,6 +2136,7 @@ Global
21302136
{1B4AC233-B345-123F-E004-DAA28DE1CB08} = {A41D1B99-F489-4C43-BBDF-96D61B19A6B9}
21312137
{91F9EAA4-ACA2-87EE-868E-6CC3B73D6A11} = {A41D1B99-F489-4C43-BBDF-96D61B19A6B9}
21322138
{5399BBCC-417F-C710-46DE-EB0C0074C34D} = {A41D1B99-F489-4C43-BBDF-96D61B19A6B9}
2139+
{5E4F7448-B00B-4F5B-859F-6ED0354253D5} = {C52D8057-43AF-40E6-A01B-6CDBB7301985}
21332140
EndGlobalSection
21342141
GlobalSection(ExtensibilityGlobals) = postSolution
21352142
SolutionGuid = {604E6B91-7BC0-4126-AE07-D4D2FEFC3D29}

eng/config/PublishData.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"Microsoft.Net.Compilers.Toolset.Arm64": "arcade",
3232
"Microsoft.Net.Compilers.Toolset.Framework": "arcade",
3333
"Microsoft.NETCore.Compilers": "arcade",
34+
"Microsoft.CodeAnalysis.BuildClient": "arcade",
3435
"Microsoft.CodeAnalysis.Contracts": "arcade",
3536
"Microsoft.CodeAnalysis.Debugging": "arcade",
3637
"Microsoft.CodeAnalysis.PooledObjects": "arcade",

src/Compilers/CSharp/Portable/CSharpResources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,7 @@ If such a class is used as a base class and if the deriving class defines a dest
16011601
<data name="ERR_PredefinedValueTupleTypeNotFound" xml:space="preserve">
16021602
<value>Predefined type '{0}' is not defined or imported</value>
16031603
</data>
1604-
<data name="ERR_PredefinedValueTupleTypeAmbiguous3" xml:space="preserve">
1604+
<data name="ERR_PredefinedTypeAmbiguous" xml:space="preserve">
16051605
<value>Predefined type '{0}' is declared in multiple referenced assemblies: '{1}' and '{2}'</value>
16061606
</data>
16071607
<data name="ERR_StructWithBaseConstructorCall" xml:space="preserve">

src/Compilers/CSharp/Portable/Errors/ErrorCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ internal enum ErrorCode
15441544
ERR_OutAttrOnInParam = 8355,
15451545
#endregion diagnostics introduced for `ref readonly`, `ref conditional` and `ref-like` features in C# 7.2
15461546

1547-
ERR_PredefinedValueTupleTypeAmbiguous3 = 8356,
1547+
ERR_PredefinedTypeAmbiguous = 8356,
15481548
ERR_InvalidVersionFormatDeterministic = 8357,
15491549
ERR_AttributeCtorInParameter = 8358,
15501550

src/Compilers/CSharp/Portable/Errors/ErrorFacts.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1868,7 +1868,7 @@ or ErrorCode.ERR_EscapeVariable
18681868
or ErrorCode.ERR_EscapeStackAlloc
18691869
or ErrorCode.ERR_RefReturnThis
18701870
or ErrorCode.ERR_OutAttrOnInParam
1871-
or ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3
1871+
or ErrorCode.ERR_PredefinedTypeAmbiguous
18721872
or ErrorCode.ERR_InvalidVersionFormatDeterministic
18731873
or ErrorCode.ERR_AttributeCtorInParameter
18741874
or ErrorCode.WRN_FilterIsConstantFalse

src/Compilers/CSharp/Portable/Symbols/Compilation_WellKnownMembers.cs

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -154,25 +154,27 @@ internal NamedTypeSymbol GetWellKnownType(WellKnownType type)
154154
if (result is null)
155155
{
156156
MetadataTypeName emittedName = MetadataTypeName.FromFullName(mdName, useCLSCompliantNameArityEncoding: true);
157-
if (type.IsValueTupleType())
157+
158+
CSDiagnosticInfo? errorInfo;
159+
if (conflicts is ({ } conflict1, { } conflict2))
158160
{
159-
CSDiagnosticInfo errorInfo;
160-
if (conflicts.Item1 is null)
161+
errorInfo = new CSDiagnosticInfo(ErrorCode.ERR_PredefinedTypeAmbiguous, emittedName.FullName, conflict1, conflict2);
162+
}
163+
else
164+
{
165+
Debug.Assert(conflicts is (null, null));
166+
167+
if (type.IsValueTupleType())
161168
{
162-
Debug.Assert(conflicts.Item2 is null);
163169
errorInfo = new CSDiagnosticInfo(ErrorCode.ERR_PredefinedValueTupleTypeNotFound, emittedName.FullName);
164170
}
165171
else
166172
{
167-
errorInfo = new CSDiagnosticInfo(ErrorCode.ERR_PredefinedValueTupleTypeAmbiguous3, emittedName.FullName, conflicts.Item1, conflicts.Item2);
173+
errorInfo = null;
168174
}
169-
170-
result = new MissingMetadataTypeSymbol.TopLevel(this.Assembly.Modules[0], ref emittedName, type, errorInfo);
171-
}
172-
else
173-
{
174-
result = new MissingMetadataTypeSymbol.TopLevel(this.Assembly.Modules[0], ref emittedName, type);
175175
}
176+
177+
result = new MissingMetadataTypeSymbol.TopLevel(this.Assembly.Modules[0], ref emittedName, type, errorInfo);
176178
}
177179

178180
if (Interlocked.CompareExchange(ref _lazyWellKnownTypes[index], result, null) is object)

src/Compilers/CSharp/Portable/xlf/CSharpResources.cs.xlf

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compilers/CSharp/Portable/xlf/CSharpResources.de.xlf

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Compilers/CSharp/Portable/xlf/CSharpResources.es.xlf

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)