We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@romac said:
One can register custom attributes on Rust nightly with #![feature(register_tool)]: rust-lang/rust#66070 (would help get rid of the clippy:: hack: rust-stainless/libstainless_macros/implementation.rs Lines 183 to 187 in 0b7893d /// Note that we simply want to attach some attributes to the item in question. Currently, /// Rust doesn't permit user-defined attributes that stay around until the later phases of /// rustc. However, any attribute in the `clippy::` group is accepted, and clippy itself /// doesn't seem to complain about unknown attributes. We therefore abuse this to attach /// some attributes of our own for the stainless extraction pass to detect.
One can register custom attributes on Rust nightly with #![feature(register_tool)]: rust-lang/rust#66070 (would help get rid of the clippy:: hack:
#![feature(register_tool)]
clippy::
rust-stainless/libstainless_macros/implementation.rs
Lines 183 to 187 in 0b7893d
The text was updated successfully, but these errors were encountered:
Unfortunately, this doesn't currently work because the feature has to be turned on in the crate. Hence, it is not enough to have
#![feature(register_tool)] #![register_tool(stainless_lib)]
in the libstainless but it would need to sit in the actual file to verify, which we don't want.
libstainless
Sorry, something went wrong.
No branches or pull requests
@romac said:
The text was updated successfully, but these errors were encountered: