From f435dbbc97f1b6671c694065f854a3e06e1ed005 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Fri, 7 Jun 2024 13:59:48 -0700 Subject: [PATCH] Revert "Backport test fixes from #70428" --- .../Collections/ImmutableSegmentedListBuilderTest.cs | 2 +- .../CodeAnalysisTest/Collections/ImmutableSegmentedListTest.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListBuilderTest.cs b/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListBuilderTest.cs index f369a082b2b58..90c8bfb3be889 100644 --- a/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListBuilderTest.cs +++ b/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListBuilderTest.cs @@ -380,7 +380,7 @@ public void ItemRef() var builder = new ImmutableSegmentedList.Builder(list); ref readonly var safeRef = ref builder.ItemRef(1); - ref var unsafeRef = ref Unsafe.AsRef(in safeRef); + ref var unsafeRef = ref Unsafe.AsRef(safeRef); Assert.Equal(2, builder.ItemRef(1)); diff --git a/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListTest.cs b/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListTest.cs index b153618443d3e..87f16a050f0e5 100644 --- a/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListTest.cs +++ b/src/Compilers/Core/CodeAnalysisTest/Collections/ImmutableSegmentedListTest.cs @@ -815,7 +815,7 @@ public void ItemRef() var list = new[] { 1, 2, 3 }.ToImmutableSegmentedList(); ref readonly var safeRef = ref list.ItemRef(1); - ref var unsafeRef = ref Unsafe.AsRef(in safeRef); + ref var unsafeRef = ref Unsafe.AsRef(safeRef); Assert.Equal(2, list.ItemRef(1));