Skip to content

Commit

Permalink
Clarify comment about purpose of ReifyShim.
Browse files Browse the repository at this point in the history
  • Loading branch information
anp committed Oct 11, 2019
1 parent d92cef7 commit 2d5ef8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_mir/shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ fn make_shim<'tcx>(tcx: TyCtxt<'tcx>, instance: ty::InstanceDef<'tcx>) -> &'tcx
// We are generating a call back to our def-id, which the
// codegen backend knows to turn to an actual virtual call.
ty::InstanceDef::Virtual(def_id, _) |
// ...or we are generating a direct call to our #[track_caller] function which
// requires an implicit caller location that the virtual call won't pass
// ...or we are generating a direct call to a function for which indirect calls must be
// codegen'd differently than direct ones (example: #[track_caller])
ty::InstanceDef::ReifyShim(def_id) => {
build_call_shim(
tcx,
Expand Down

0 comments on commit 2d5ef8f

Please sign in to comment.