Skip to content
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

Avoid creating result temp for switch-expressions #69194

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Revert formatting

6d5275d
Select commit
Loading
Failed to load commit list.
Draft

Avoid creating result temp for switch-expressions #69194

Revert formatting
6d5275d
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis failed Mar 22, 2024 in 0s

.NET Result Analysis

Details

Test Failures (2 tests failed)

🔹 [All failing tests from roslyn-CI]

    Microsoft.CodeAnalysis.CSharp.EndToEnd.UnitTests_0.WorkItemExecution [Console] [Details] [Artifacts] [0.15% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]
    This is a helix work item crash with status: BadExit. To investigate look the [Console log] / navigate to [Helix Artifacts]

    Failing Configuration

    Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.OverflowOnFluentCall_ExtensionMethods [Console] [Details] [Artifacts] [0.14% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Exception Message
    System.Exception : Depth: 1590, Bytes: 4, Config: Release, Desktop: True
    ---- System.AggregateException : One or more errors occurred.
    -------- 
    Expected:
    Actual:
                    // (10,9): error CS8078: An expression is too long or complex to compile
                    //         GetC()
                    Diagnostic(ErrorCode.ERR_InsufficientStack, "GetC").WithLocation(10, 9)
    Diff:
    ++>                 Diagnostic(ErrorCode.ERR_InsufficientStack, "GetC").WithLocation(10, 9)
    Expected: True
    Actual:   False
    -------- 
    Expected:
    Actual:
                    // (10,9): error CS8078: An expression is too long or complex to compile
                    //         GetC()
                    Diagnostic(ErrorCode.ERR_InsufficientStack, "GetC").WithLocation(10, 9)
    Diff:
    ++>                 Diagnostic(ErrorCode.ERR_InsufficientStack, "GetC").WithLocation(10, 9)
    Expected: True
    Actual:   False
    CallStack
       at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.<OverflowOnFluentCall_ExtensionMethods>g__testLimits|3_0(Exception innerException) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 217
       at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.OverflowOnFluentCall_ExtensionMethods() in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 199
    ----- Inner Stack Trace -----
    

    ----- Inner Stack Trace #1 (Xunit.Sdk.TrueException) -----
    at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.RunInThread(Action action, Nullable`1 timeout) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 63
    at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.<OverflowOnFluentCall_ExtensionMethods>g__tryCompileDeepFluentCalls|3_1(Int32 depth) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 244
    at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.<OverflowOnFluentCall_ExtensionMethods>g__testLimits|3_0(Exception innerException) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 208
    ----- Inner Stack Trace #2 (Xunit.Sdk.TrueException) -----
    at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.RunInThread(Action action, Nullable`1 timeout) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 63
    at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.<OverflowOnFluentCall_ExtensionMethods>g__tryCompileDeepFluentCalls|3_1(Int32 depth) in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 244
    at Microsoft.CodeAnalysis.CSharp.UnitTests.EndToEnd.EndToEndTests.OverflowOnFluentCall_ExtensionMethods() in /_/src/Compilers/CSharp/Test/EndToEnd/EndToEndTests.cs:line 195

Was this helpful? Yes No