Skip to content

Commit e896dbb

Browse files
committed
Fixed attributes for IL trimming
1 parent 6fa4c71 commit e896dbb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/DotNext/Dynamic/TaskResultBinder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
namespace DotNext.Dynamic;
99

10-
[RequiresUnreferencedCode("Runtime binding may be incompatible with IL trimming")]
1110
[RequiresDynamicCode("DLR is required to resolve underlying task type at runtime")]
1211
internal sealed class TaskResultBinder : CallSiteBinder
1312
{

src/DotNext/Threading/Tasks/DynamicTaskAwaitable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ internal Awaiter(Task task, ConfigureAwaitOptions options)
4747
public void UnsafeOnCompleted(Action continuation)
4848
=> awaiter.UnsafeOnCompleted(continuation);
4949

50-
[RequiresUnreferencedCode("Runtime binding may be incompatible with IL trimming")]
50+
[RequiresDynamicCode("Runtime binding requires dynamic code compilation")]
5151
internal object? GetRawResult()
5252
{
5353
awaiter.GetResult();
5454
var task = GetTask(in awaiter);
5555

5656
return IsTaskWithResult(task.GetType()) ? GetDynamicResult(task) : Missing.Value;
5757

58-
[RequiresUnreferencedCode("Runtime binding may be incompatible with IL trimming")]
58+
[RequiresDynamicCode("Runtime binding requires dynamic code compilation")]
5959
static object? GetDynamicResult(Task task)
6060
{
6161
var callSite = getResultCallSite ??= CallSite<Func<CallSite, Task, object?>>.Create(new TaskResultBinder());

0 commit comments

Comments
 (0)