275-fix-random-sigsegv #302

Merged
sb10q merged 9 commits from 275-fix-random-sigsegv into master 2022-07-04 18:06:36 +08:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit af99915ead - Show all commits

View File

@ -52,6 +52,9 @@ pub struct StaticValueStore {
pub type VarValue<'ctx> = (PointerValue<'ctx>, Option<Arc<dyn StaticValue + Send + Sync>>, i64); pub type VarValue<'ctx> = (PointerValue<'ctx>, Option<Arc<dyn StaticValue + Send + Sync>>, i64);
use lazy_static::lazy_static;
lazy_static!( lazy_static!(
// HACK: The Mutex is a work-around for issue // HACK: The Mutex is a work-around for issue
// https://git.m-labs.hk/M-Labs/nac3/issues/275 // https://git.m-labs.hk/M-Labs/nac3/issues/275

View File

@ -1,9 +1,6 @@
#![warn(clippy::all)] #![warn(clippy::all)]
#![allow(dead_code)] #![allow(dead_code)]
#[macro_use]
extern crate lazy_static;
pub mod codegen; pub mod codegen;
pub mod symbol_resolver; pub mod symbol_resolver;
Outdated
Review

Can't you just do use lazy_static in codegen/mod.rs?

IIRC recent Rust can treat macros like other imports.

Can't you just do ``use lazy_static`` in ``codegen/mod.rs``? IIRC recent Rust can treat macros like other imports.
pub mod toplevel; pub mod toplevel;