Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Rust 1.79 produces a new warning. ```lang=text warning: non-local `impl` definition, they should be avoided as they go against expectation --> app/buck2_common/src/dice/file_ops/delegate.rs:170:5 | 170 | / impl Key for FileOpsKey { 171 | | type Value = buck2_error::Result<FileOpsValue>; 172 | | async fn compute( 173 | | &self, ... | 212 | | } 213 | | } | |_____^ | = help: move this `impl` block outside the of the current async fn `<unnameable>` and up 2 bodies = note: an `impl` definition is non-local if it is nested inside an item and may impact type checking outside of that item. This can be the case if neither the trait or the self type are at the same nesting level as the `impl` = note: one exception to the rule are anon-const (`const _: () = { ... }`) at top-level module and anon-const at the same nesting as the trait or type = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue <rust-lang/rust#120363> = note: `#[warn(non_local_definitions)]` on by default ``` Reviewed By: JakobDegen Differential Revision: D59641307 fbshipit-source-id: 8993440bebd455ef9a81caadbb24d8b70ace05d0
- Loading branch information