mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Improve docs for InstanceDef::ReifyShim.
This commit is contained in:
parent
ea3ecf22ae
commit
1cdd5d099d
@ -28,7 +28,10 @@ pub enum InstanceDef<'tcx> {
|
||||
|
||||
/// `fn()` pointer where the function itself cannot be turned into a pointer.
|
||||
///
|
||||
/// One example in the compiler today is functions annotated with `#[track_caller]`.
|
||||
/// One example in the compiler today is functions annotated with `#[track_caller]`, which
|
||||
/// must have their implicit caller location argument populated for a call. Because this is a
|
||||
/// required part of the function's ABI but can't be tracked as a property of the function
|
||||
/// pointer, we create a single "caller location" at the site where the function is reified.
|
||||
ReifyShim(DefId),
|
||||
|
||||
/// `<fn() as FnTrait>::call_*`
|
||||
|
Loading…
Reference in New Issue
Block a user