Skip to content

Commit cc9b91a

Browse files
committed
fixes
1 parent 6e1762a commit cc9b91a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/librustc/ty/query/plumbing.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub fn may_panic<'tcx>(job: Lrc<QueryJob<'tcx>>) {
112112
}
113113

114114
#[no_mangle]
115-
fn test_moves2<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
115+
fn test_moves2<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
116116
key: &DefId, key_hash: u64,
117117
span: Span,
118118
parent: &Option<Lrc<QueryJob<'tcx>>>,
@@ -125,7 +125,7 @@ fn test_moves2<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
125125
span,
126126
query: ::ty::query::queries::type_of::query(*key),
127127
};
128-
*Lrc::get_mut(&mut job).unwrap() =
128+
*Lrc::get_mut(&mut job).unwrap() =
129129
MaybeUninit::new(QueryJob::new(info, parent.clone()));
130130
let job: Lrc<QueryJob<'tcx>> = unsafe { std::mem::transmute(job) };
131131
let job_clone = job.clone();
@@ -141,7 +141,7 @@ fn test_moves2<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
141141
}
142142

143143
#[no_mangle]
144-
fn test_moves<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
144+
fn test_moves<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
145145
key: &::hir::def_id::DefId, key_hash: u64,
146146
span: Span,
147147
mut job_storage: MoveSlot<'a, JobOwner<'a, 'tcx, ::ty::query::queries::type_of<'tcx>>>,
@@ -154,7 +154,7 @@ fn test_moves<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
154154
query: ::ty::query::queries::type_of::query(*key),
155155
};
156156
let parent = icx.query.map(|q| LrcRef::into(q));
157-
*Lrc::get_mut(&mut job).unwrap() =
157+
*Lrc::get_mut(&mut job).unwrap() =
158158
MaybeUninit::new(QueryJob::new(info, parent));
159159
let job: Lrc<QueryJob<'tcx>> = unsafe { std::mem::transmute(job) };
160160
let job_clone = job.clone();

0 commit comments

Comments
 (0)