Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 61dc8dc9 authored by Martin Geisler's avatar Martin Geisler
Browse files

pdl: Re-enable rustc errors for generated code

The generated code has rustc warnings: lots of warnings about wrong
camel-cased types, warnings about too many parenthesis, etc. We can
probably not fix all warnings, so we should suppress them.

Before, we suppressed the warnings by configuring Soong

    lints: "none",

which makes it pass something like "-A warnings -A deny“ to rustc.

This has the bad side effect of disabling all lints, not just
warnings. In particular, it disabled the overflowing_literals lint,
which is a deny-by-default lint which we very much want to keep
enabled.

To fix this, we now emit the desired lint settings in the generated
code. This makes it easier for people who use pdl: they can simply
compile the code like any other piece of Rust code.

Test: atest pdl_rust_generator_tests_{le,be} pdl_tests
Change-Id: I29e32a1350fea04e88cbd595e6ea7663c8d70679
parent f49babb7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment