Skip to content

Commit 60f65b4

Browse files
committed
remove Default impl from CompiledProgram
This Default impl creates a new type inference context which then gets attached to a unit ConstructNode. This will be incompatible with the upstream change to make type inference contexts tied to scopes.
1 parent 6650729 commit 60f65b4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/lib.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,6 @@ pub struct CompiledProgram {
100100
debug_symbols: DebugSymbols,
101101
}
102102

103-
impl Default for CompiledProgram {
104-
fn default() -> Self {
105-
use simplicity::node::CoreConstructible;
106-
Self {
107-
simplicity: ProgNode::unit(&simplicity::types::Context::new()),
108-
witness_types: WitnessTypes::default(),
109-
debug_symbols: DebugSymbols::default(),
110-
}
111-
}
112-
}
113-
114103
impl CompiledProgram {
115104
/// Parse and compile a SimplicityHL program from the given string.
116105
///

0 commit comments

Comments
 (0)