mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 01:46:06 +00:00
Before this fix, the call to `body()` would crash, since `has_body()` would return true, but we would try to retrieve the body of an intrinsic which is not allowed. Instead, the `Instance::body()` function will now convert an Intrinsic into an Item before retrieving its body.