Attribute of a Variable


HI! I want to add some attributes to variables like this

let a: u32 = 1;
let b :u32 = 2;

How can I do this? Moreover, I want to access these attributes in LLVM. Can anybody please help me with this…


You can check the attrs field of a Local item in the AST.


Can you please specify how to use this? I didn’t find any clear documentation.