You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are places where this would be very useful like the slow path in a vector push method. Sadly, there's not an obvious way to expose llvm.expect because a regular Rust intrinsic becomes a function and lower-expect runs in the function pass stage.
The text was updated successfully, but these errors were encountered:
@jdm: I've seen it, but I still think this is a useful feature. It's true that there are only rare use cases where it's a good idea, and I already covered most failure cases by marking the fail_ lang item as a cold.
There are places where this would be very useful like the slow path in a vector
push
method. Sadly, there's not an obvious way to exposellvm.expect
because a regular Rust intrinsic becomes a function andlower-expect
runs in the function pass stage.The text was updated successfully, but these errors were encountered: