chore(core/rust): remove unneeded nightly features
What changed, and why it matters
This is a routine cleanup commit that removes one unused Rust compiler feature flag (`optimize_attribute`) from the firmware's Rust code. It is explicitly labeled as a chore with no changelog entry. There is no security relevance in the change itself.
No security action required. Treat as normal maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit removes #![feature(optimize_attribute)] from core/embed/rust/src/lib.rs. The commit message states this nightly feature has been unused since commit 732e2cc9b587c5543415738818a01f70ee329d6e. This is a build/maintenance change only; it does not alter runtime behavior, attack surface, or security properties.
Changed components
core/embed/rust/src/lib.rsInspect captured patch +0 / −1
diff --git a/core/embed/rust/src/lib.rs b/core/embed/rust/src/lib.rs
index 37ff77f9..1bde575e 100644
--- a/core/embed/rust/src/lib.rs
+++ b/core/embed/rust/src/lib.rs
@@ -8,7 +8,6 @@
// (when building for TR, a lot of code only used in TT would get marked as unused).
#![allow(dead_code)]
#![feature(lang_items)]
-#![feature(optimize_attribute)]
#![feature(trait_alias)]
#![feature(custom_test_frameworks)]
#![no_main]
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.