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

API diff between .NET 8 Preview 7 and .NET 8 RC 1 #8757

Merged
merged 5 commits into from
Sep 27, 2023

Conversation

carlossanlop
Copy link
Member

Known tooling issues:

  • The AsmDiff tool sometimes skips adding { or {}. Please provide a GitHub suggestion in this PR so I can correct it. arcade#10981
  • The AsmDiff tool shows APIs with decorating attribute changes as removed and re-added, instead of showing only the API. Please ignore this, it might be confusing but technically it's not incorrect. I have an issue to track this: arcade#13814

Repos area owners:

Libraries area owners:

  • System @dotnet/area-system-runtime
  • @dotnet/area-system-buffers
  • @dotnet/area-system-collections
  • System.Data @ajcvickers @DavoudEshtehari @David-Engel @roji
  • @dotnet/area-system-io
  • System.Net @dotnet/ncl
  • @dotnet/area-system-numerics
  • @dotnet/area-system-reflection
  • @dotnet/area-system-runtime-compilerservices
  • System.Runtime.InteropServices @dotnet/interop-contrib
  • @dotnet/area-system-runtime-intrinsics
  • System.Runtime.Intrinsics.Wasm @lewing @BrzVlad
  • @dotnet/area-system-text-json
  • System.Threading @mangod @kouvel

namespace System.Numerics {
public static class Vector {
- public static Vector<T> LoadUnsafe<T>(ref T source);
+ public static Vector<T> LoadUnsafe<T>([RequiresLocationAttribute] ref T source);
Copy link
Member

@stephentoub stephentoub Sep 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we search/replace all of these [RequiresLocationAttribute] ref with ref readonly? (and subsequently fix the tool accordingly)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed all the instances with b123b2c and opened an issue: dotnet/arcade#14057

@@ -0,0 +1,10 @@
# System.Buffers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System.Buffers LGTM.

@@ -0,0 +1,15 @@
# System.Numerics
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System.Numerics LGTM.

I agree with Stephen's input that ideally we track [RequiresLocationAttribute] ref as ref readonly, which is the actual language syntax here.

@@ -0,0 +1,40 @@
# System.Runtime.CompilerServices
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System.Runtime.CompilerServices LGTM.

Similar input around ref readonly

@@ -0,0 +1,39 @@
# System.Runtime.Intrinsics
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System.Runtime.Intrinsics LGTM.

Similar input around ref readonly

@@ -0,0 +1,12 @@
# System.Runtime.Intrinsics.Wasm
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CC. @radekdoulik

Were these APIs intentionally removed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@radekdoulik @lewing can you take a look?

``` diff
namespace System.Data.Common {
public abstract class DbBatchCommand {
+ public virtual bool CanCreateParameter { get; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System.Data LGTM

Copy link
Member

@eiriktsarpalis eiriktsarpalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

STJ and System.Net.Http.Json changes LGTM.

Copy link
Member

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System.IO LGTM, :shipit:

@carlossanlop carlossanlop merged commit 026c5d2 into dotnet:main Sep 27, 2023
3 checks passed
@carlossanlop carlossanlop deleted the ApiDiffRC1 branch September 27, 2023 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants