Skip to content

New Unsafe errors have awkward phrasing #83633

@agocke

Description

@agocke

New:

ld) 'MathF.Cosh(float)' must be used in an unsafe context because it is marked as 'RequiresUnsafe' or 'extern'

Old:

Pointers and fixed size buffers may only be used in an unsafe context

I think the first phrasing is awkward and the second is better. I also don’t like “marked RequiresUnsafe or extern”

  1. We don’t use RequiresUnsafe anymore
  2. Within an assembly we know which it is and could just say that. For assembly references we could keep the current wording or just “unsafe”, since they all look the same.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions