Fix inaccurate function name in rustc_const_eval
docs
This commit is contained in:
parent
e209e85e39
commit
f1f0734718
2 changed files with 3 additions and 3 deletions
|
@ -520,8 +520,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
||||||
Ok(OpTy { op, layout: place.layout })
|
Ok(OpTy { op, layout: place.layout })
|
||||||
}
|
}
|
||||||
|
|
||||||
// Evaluate a place with the goal of reading from it. This lets us sometimes
|
/// Evaluate a place with the goal of reading from it. This lets us sometimes
|
||||||
// avoid allocations.
|
/// avoid allocations.
|
||||||
pub fn eval_place_to_op(
|
pub fn eval_place_to_op(
|
||||||
&self,
|
&self,
|
||||||
place: mir::Place<'tcx>,
|
place: mir::Place<'tcx>,
|
||||||
|
|
|
@ -625,7 +625,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Computes a place. You should only use this if you intend to write into this
|
/// Computes a place. You should only use this if you intend to write into this
|
||||||
/// place; for reading, a more efficient alternative is `eval_place_for_read`.
|
/// place; for reading, a more efficient alternative is `eval_place_to_op`.
|
||||||
#[instrument(skip(self), level = "debug")]
|
#[instrument(skip(self), level = "debug")]
|
||||||
pub fn eval_place(
|
pub fn eval_place(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue