Skip to content

Commit 2d5ef8f

Browse files
committed
Clarify comment about purpose of ReifyShim.
1 parent d92cef7 commit 2d5ef8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_mir/shim.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ fn make_shim<'tcx>(tcx: TyCtxt<'tcx>, instance: ty::InstanceDef<'tcx>) -> &'tcx
6969
// We are generating a call back to our def-id, which the
7070
// codegen backend knows to turn to an actual virtual call.
7171
ty::InstanceDef::Virtual(def_id, _) |
72-
// ...or we are generating a direct call to our #[track_caller] function which
73-
// requires an implicit caller location that the virtual call won't pass
72+
// ...or we are generating a direct call to a function for which indirect calls must be
73+
// codegen'd differently than direct ones (example: #[track_caller])
7474
ty::InstanceDef::ReifyShim(def_id) => {
7575
build_call_shim(
7676
tcx,

0 commit comments

Comments
 (0)