You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the generated output when running as svd2rust --target none -i my_registers.svd -o src/
These lints are unstable and the resulting code gives warnings when built with rustc 1.73.0:
warning: unknown lint: `private_bounds`
--> src/lib.rs:11:1
|
11 | # ! [deny (private_bounds)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: the `private_bounds` lint is unstable
= note: see issue #48054 <https://github.com/rust-lang/rust/issues/48054> for more information
= note: `#[warn(unknown_lints)]` on by default
warning: unknown lint: `private_interfaces`
--> src/lib.rs:12:1
|
12 | # ! [deny (private_interfaces)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: the `private_interfaces` lint is unstable
= note: see issue #48054 <https://github.com/rust-lang/rust/issues/48054> for more information
svd2rust v0.30.0 doesn't do this. I've seen that this change was in included in f097443, apparently to fix the clippy lints on nightly, but it seems that it breaks them on stable.
I think we should add #[allow(unknown_lints)] to circumvent this, but also possibly #[allow(renamed_and_removed_lints)] (I'm less sure about this one, since hiding these would mean it's harder to catch.)
I think we should add #[allow(unknown_lints)] to circumvent this, but also possibly #[allow(renamed_and_removed_lints)] (I'm less sure about this one, since hiding these would mean it's harder to catch.)
I was going to suggest the former option, as well.
Activity
Emilgardis commentedon Nov 12, 2023
I think we should add
#[allow(unknown_lints)]to circumvent this, but also possibly#[allow(renamed_and_removed_lints)](I'm less sure about this one, since hiding these would mean it's harder to catch.)jessebraham commentedon Nov 12, 2023
I was going to suggest the former option, as well.
ianrrees commentedon Nov 16, 2023
I wonder if it would make sense to have the CI checks set
RUSTFLAGS="-D warnings"so that compile warnings cause the check to fail?burrbull commentedon Nov 16, 2023
https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html#lint-configuration-through-cargo
ianrrees commentedon Nov 16, 2023
Thanks @burrbull ! Two takeaways: