Skip to content

Commit 0c2cee2

Browse files
authored
Rollup merge of #95281 - pierwill:fix-85513, r=Dylan-DPC
Fix inaccurate function name in `rustc_const_eval` docs Looks to me like this fixes #85513. I had trouble making a intra-docs link to `eval_place_to_op` work, though...
2 parents 2af6677 + f1f0734 commit 0c2cee2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/rustc_const_eval/src/interpret/operand.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
520520
Ok(OpTy { op, layout: place.layout })
521521
}
522522

523-
// Evaluate a place with the goal of reading from it. This lets us sometimes
524-
// avoid allocations.
523+
/// Evaluate a place with the goal of reading from it. This lets us sometimes
524+
/// avoid allocations.
525525
pub fn eval_place_to_op(
526526
&self,
527527
place: mir::Place<'tcx>,

compiler/rustc_const_eval/src/interpret/place.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ where
625625
}
626626

627627
/// Computes a place. You should only use this if you intend to write into this
628-
/// place; for reading, a more efficient alternative is `eval_place_for_read`.
628+
/// place; for reading, a more efficient alternative is `eval_place_to_op`.
629629
#[instrument(skip(self), level = "debug")]
630630
pub fn eval_place(
631631
&mut self,

0 commit comments

Comments
 (0)