From a8c804ef4adef1879c2e1b3d9433bfe30c1d57cc Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 19 Sep 2024 23:52:32 -0700 Subject: [PATCH] some final cleanups --- .../src/_docs/modules/module_bodies/hdl_match_statements.rs | 2 +- crates/fayalite/src/module/transform/simplify_enums.rs | 1 - crates/fayalite/tests/hdl_types.rs | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/fayalite/src/_docs/modules/module_bodies/hdl_match_statements.rs b/crates/fayalite/src/_docs/modules/module_bodies/hdl_match_statements.rs index 4f4116e..c0d4ea6 100644 --- a/crates/fayalite/src/_docs/modules/module_bodies/hdl_match_statements.rs +++ b/crates/fayalite/src/_docs/modules/module_bodies/hdl_match_statements.rs @@ -6,4 +6,4 @@ //! `#[hdl] match` statements' bodies must evaluate to type `()` for now. //! //! `#[hdl] match` statements can only match one level of struct/enum pattern for now, -//! e.g. you can match with the pattern `Some(v)`, but not `Some(Some(_))`. +//! e.g. you can match with the pattern `HdlSome(v)`, but not `HdlSome(HdlSome(_))`. diff --git a/crates/fayalite/src/module/transform/simplify_enums.rs b/crates/fayalite/src/module/transform/simplify_enums.rs index 686f682..91bbba5 100644 --- a/crates/fayalite/src/module/transform/simplify_enums.rs +++ b/crates/fayalite/src/module/transform/simplify_enums.rs @@ -115,7 +115,6 @@ fn connect_port( rhs: Expr, source_location: SourceLocation, ) { - println!("connect_port:\nlhs={lhs:?}\nrhs={rhs:?}"); if Expr::ty(lhs) == Expr::ty(rhs) { stmts.push( dbg!(StmtConnect { diff --git a/crates/fayalite/tests/hdl_types.rs b/crates/fayalite/tests/hdl_types.rs index 62d9c68..d043013 100644 --- a/crates/fayalite/tests/hdl_types.rs +++ b/crates/fayalite/tests/hdl_types.rs @@ -10,7 +10,6 @@ pub struct S { pub d: T2, } -//#[cfg(todo)] #[hdl(outline_generated)] pub struct S3 { pub a: T,