Add clippy error checking in lint step

This commit is contained in:
Mark McCaskey
2020-01-17 15:47:45 -08:00
parent 59dc6fd889
commit 5931944a21
6 changed files with 17 additions and 13 deletions

View File

@ -1171,9 +1171,10 @@ pub fn tbaa_label<'ctx>(
// TODO: ContextRef can't return us the lifetime from module through Deref.
// This could be fixed once generic_associated_types is stable.
let context2 = &*context;
let context = unsafe { std::mem::transmute::<&Context, &'ctx Context>(context2) };
std::mem::forget(context2);
let context = {
let context2 = &*context;
unsafe { std::mem::transmute::<&Context, &'ctx Context>(context2) }
};
// `!wasmer_tbaa_root = {}`, the TBAA root node for wasmer.
let tbaa_root = module