fix some lifetime names
This commit is contained in:
parent
eb6d4cdac0
commit
62c48b2998
2 changed files with 4 additions and 4 deletions
|
|
@ -810,12 +810,12 @@ impl<'mir, 'tcx> Evaluator<'mir, 'tcx> {
|
|||
/// topmost frame which corresponds to a local crate, and returns the current span in that frame.
|
||||
/// The result of that search is cached so that later calls are approximately free.
|
||||
#[derive(Clone)]
|
||||
pub struct CurrentSpan<'a, 'tcx, 'mir> {
|
||||
pub struct CurrentSpan<'a, 'mir, 'tcx> {
|
||||
span: Option<Span>,
|
||||
machine: &'a Evaluator<'tcx, 'mir>,
|
||||
machine: &'a Evaluator<'mir, 'tcx>,
|
||||
}
|
||||
|
||||
impl<'a, 'tcx, 'mir> CurrentSpan<'a, 'tcx, 'mir> {
|
||||
impl<'a, 'mir, 'tcx> CurrentSpan<'a, 'mir, 'tcx> {
|
||||
pub fn get(&mut self) -> Span {
|
||||
*self.span.get_or_insert_with(|| Self::current_span(&self.machine))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -708,7 +708,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
|
|||
let current_span = &mut this.machine.current_span();
|
||||
|
||||
let log_creation = |this: &MiriEvalContext<'mir, 'tcx>,
|
||||
current_span: &mut CurrentSpan<'_, '_, '_>,
|
||||
current_span: &mut CurrentSpan<'_, 'mir, 'tcx>,
|
||||
alloc_id,
|
||||
base_offset,
|
||||
orig_tag|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue