implement creating functions and basic blocks
[kazan.git] / shader-compiler-backend / src / lib.rs
index 0c3e1c3599ee459f3d61e6a0de66ac25d6452c26..72ab36eaa679609b59b3e2d891791604ddb3d3fe 100644 (file)
@@ -154,7 +154,7 @@ pub trait VerifiedModule<'a>: Debug + Sized {
 }
 
 /// instance of a compiler backend; equivalent to LLVM's `LLVMContext`
-pub trait Context<'a>: Sized {
+pub trait Context<'a>: Sized + fmt::Debug {
     /// the `Value` type
     type Value: Value<'a, Context = Self>;
     /// the `BasicBlock` type