Skip to content

Commit

Permalink
Updates for Rust 1.74.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vaivaswatha committed Nov 18, 2023
1 parent 843eecb commit 8c6726c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/dialects/builtin/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/dialects/llvm/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 8c6726c

Please sign in to comment.