Skip to content

Draft: generator, loom, and bytes upgrade

These three dependencies are needed for matrix synapse. The order to build these is: generator, loom, bytes.

The only reverse dependency of this triple is ssh-format. But, unfortunately, it is broken by ssh-format's autopkgtests:

error[E0521]: borrowed data escapes outside of function
   --> src/de.rs:480:17
    |
474 |     fn generate_subslices(mut bytes: &[u8], chunk_size: usize) -> impl Iterator<Item = &[u8]> {
    |                           ---------  - let's call the lifetime of this reference `'1`
    |                           |
    |                           `bytes` is a reference that is only valid in the function body
...
480 |                 s.yield_(&bytes[..0]);
    |                 ^^^^^^^^^^^^^^^^^^^^^
    |                 |
    |                 `bytes` escapes the function body here
    |                 argument requires that `'1` must outlive `'static`

For more information about this error, try `rustc --explain E0521`.
error: could not compile `ssh_format` (lib test) due to 1 previous error

That package hasn't been updated to account for (presumably?) the new bytes API.

Merge request reports

Loading