diff --git a/lang/src/son.rs b/lang/src/son.rs index 1464b48..87b03c6 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -27,7 +27,6 @@ use { }, hashbrown::hash_map, hbbytecode::DisasmError, - std::backtrace, }; const VOID: Nid = 0; @@ -583,11 +582,11 @@ impl Nodes { log::info!("{out}"); } - fn graphviz_in_browser(&self, disp: ty::Display) { - #[cfg(all(debug_assertions, feature = "std"))] + fn graphviz_in_browser(&self, _disp: ty::Display) { + #[cfg(all(test, feature = "std"))] { let out = &mut String::new(); - _ = self.graphviz_low(disp, out); + _ = self.graphviz_low(_disp, out); if !std::process::Command::new("brave") .arg(format!("https://dreampuf.github.io/GraphvizOnline/#{out}")) .status() @@ -716,12 +715,6 @@ impl Nodes { return false; } - if self[target].kind == (Kind::BinOp { op: TokenKind::Add }) - && self[target].ty == ty::Id::U8 - { - log::info!("{}", std::backtrace::Backtrace::capture()); - } - for i in 0..self[target].inputs.len() { let inp = self[target].inputs[i]; let index = self[inp].outputs.iter().position(|&p| p == target).unwrap(); @@ -2388,7 +2381,7 @@ impl<'a> Codegen<'a> { pub fn assemble_comptime(&mut self) -> Comptime { self.ct.code.clear(); - self.ct_backend.assemble_bin(ty::Func::MAIN, self.tys, &mut self.ct.code); + self.backend.assemble_bin(ty::Func::MAIN, self.tys, &mut self.ct.code); self.ct.reset(); core::mem::take(self.ct) }