diff --git a/src/dialects/builtin/ops.rs b/src/dialects/builtin/ops.rs index 93b2d1d..75b17cb 100644 --- a/src/dialects/builtin/ops.rs +++ b/src/dialects/builtin/ops.rs @@ -124,7 +124,7 @@ declare_op!( impl FuncOp { /// Attribute key for the constant value. - pub const ATTR_KEY_FUNC_TYPE: &str = "func.type"; + pub const ATTR_KEY_FUNC_TYPE: &'static str = "func.type"; /// Create a new [FuncOp]. /// The underlying [Operation] is not linked to a [BasicBlock]. @@ -246,7 +246,7 @@ declare_op!( impl ConstantOp { /// Attribute key for the constant value. - pub const ATTR_KEY_VALUE: &str = "constant.value"; + pub const ATTR_KEY_VALUE: &'static str = "constant.value"; /// Get the constant value that this Op defines. pub fn get_value(&self, ctx: &Context) -> AttrObj { let op = self.get_operation().deref(ctx); diff --git a/src/dialects/llvm/types.rs b/src/dialects/llvm/types.rs index 0d19ec1..a5200c5 100644 --- a/src/dialects/llvm/types.rs +++ b/src/dialects/llvm/types.rs @@ -129,7 +129,7 @@ impl StructType { Type::get_instance( StructType { name: Some(name.to_string()), - /// Named structs are uniqued only on the name. + // Named structs are uniqued only on the name. fields: vec![], finalized: false, },