Commit Graph

3 Commits

Author SHA1 Message Date
Felix S. Klock II
a5cb9afad8 Change test to use likely/unlikely instead of copy/copy_overlapping.
Test was added in PR #84404.

The intent here is: The `copy`/`copy_overlapping` intrinsics are going through
some flip-flopping now of "are they intrinsics or not". We can achieve the same
effect that the test intended by using `likely`/`unlikely`.
2021-06-04 16:44:28 -04:00
Tomasz Miąsko
75732dd00e Check for intrinsics before coercing to a function pointer
Return an error if coercing function items / non-capturing closures
to a common function pointer type would require reifying an intrinsic.
2021-04-21 00:00:00 +00:00
Mark Rousskov
dd323f8a72 Emit error on intrinsic to fn ptr casts 2019-09-02 17:28:37 -04:00