having a truly incredible amount of difficulty get...
# development
a
having a truly incredible amount of difficulty getting rust to compile right now, mostly revolving around the fact that it seems difficult to use both trait objects and the
Sized
constraint since it's not an auto trait. https://github.com/pantsbuild/pants/compare/master...cosmicexplorer:fingerprint-nailgun-classpath?expand=1, attempting to fix https://github.com/pantsbuild/pants/issues/8481
Copy code
error[E0277]: the size for values of type `(dyn std::fmt::Debug + 'static)` cannot be known at compilation time
   --> process_execution/src/nailgun/mod.rs:294:9
    |
294 |         store::Snapshot::from_path_stats::<Arc<dyn store::StoreFileByDigest<dyn std::fmt::Debug + 'static>>, _>(
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
    |
    = help: the trait `std::marker::Sized` is not implemented for `(dyn std::fmt::Debug + 'static)`
    = note: to learn more, visit <https://doc.rust-lang.org/book/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait>
    = note: required by `store::snapshot::Snapshot::from_path_stats`
w
can you add
+ Sized
there...?
it looks like the diff removes a lot of
+ Sized
bounds, but i'm not sure why
a
because it was failing with the bounds too
i'll try to revert those
w
yea, not a priority right now i don't think... but happy to pair on it later.
a
yeah it has all the elements needed to actually accomplish the task so fixing the types can happen whenever we pick this back up imo