Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust from "nightly-2024-04-15". #2720

Open
meowjesty opened this issue Sep 3, 2024 · 0 comments
Open

Update Rust from "nightly-2024-04-15". #2720

meowjesty opened this issue Sep 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@meowjesty
Copy link
Member

Looks like there is an issue from nightly-2024-07-03 to (at least) nightly-2024-09-03 that is kinda annoying when you try to build the mirrord-agent.

You'll be getting a bunch of errors like this:

item does not constrain `GetDEnts64Stream::{opaque#0}`, but has it in its signature
   --> mirrord/agent/src/file.rs:130:12
    |
130 |     pub fn handle_message(&mut self, request: FileRequest) -> Result<Option<FileResponse>> {
    |            ^^^^^^^^^^^^^^
    |
    = note: consider moving the opaque type's declaration and defining uses into a separate module

Due to some weirdness going on with tracing, e.g. .inspect_err(|fail| error!("file_worker -> {:#?}", fail))?;

It comes from this type alias, more specifically from 1 and 2.

type GetDEnts64Stream = Peekable<
    std::iter::Chain<
        IntoIter<std::result::Result<DirEntryInternal, io::Error>>,
        Map<
            Map<
                Enumerate<ReadDir>,
1 --->          impl Fn((usize, io::Result<DirEntry>)) -> io::Result<DirEntryInternal>,
            >,
2 --->      impl Fn(io::Result<DirEntryInternal>) -> io::Result<DirEntryInternal>,
        >,
    >,
>;
@meowjesty meowjesty added the enhancement New feature or request label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant