As pointed out by Aleksey, this should move up so IsRuntimeAsyncEnabledIn behaves correctly for lambdas/local functions that are part of extension blocks; when an attribute is applied to them to disable runtime async, IsRuntimeAsyncEnabledIn will fail to detect this, and return bad data that causes a crash. Adjust CodeGenAsyncSpillTests.SpillAssignmentToThisStruct_02 and AsyncStateMachineAttribute_RuntimeAsync_ExtensionBlockMember* to hit this as well.