Open kupiakos opened 7 months ago
That file is not supposed to exist; that code was copied out of another repository (Tock) but the tests were not copied over as they are not compatible with our test infrastructure. We don't expect it to compile with --cfg test
.
It looks like there is significant divergence between rustfmt_check
and rustfmt_fix
. In addition to the above error, rustfmt_fix
currently makes changes to files even when rustfmt_check
passes (tested on both master
and earlgrey_es_sival
).
This is a known issue, I have pending PRs that fix the rustfmt_check and also can take care of this issue with the module but this is low priority: https://github.com/lowRISC/rules_rust/pull/5 and https://github.com/lowRISC/opentitan/pull/21631
That file is not supposed to exist; that code was copied out of another repository (Tock) but the tests were not copied over as they are not compatible with our test infrastructure. We don't expect it to compile with
--cfg test
.It looks like there is significant divergence between
rustfmt_check
andrustfmt_fix
. In addition to the above error,rustfmt_fix
currently makes changes to files even whenrustfmt_check
passes (tested on bothmaster
andearlgrey_es_sival
).
with this in mind I'm going to upload a PR removing the test reference from main.rs
Description
The described file indeed does not exist. If it's supposed to be autogenerated by something A) it's discouraged to put generated files next to non-generated files for reasons like this and B) it should be a (transitive) dependency of the
rustfmt_fix
rule.