Attribute of a Variable


#1

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

#[dirty]
let a: u32 = 1;
#[clean]
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…


#2

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


#3

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