Skip to content

printf-compat Cargo Compile Errors #4

@RedHeadSec

Description

@RedHeadSec

Hello!

I have this integrated into a project of mine and it was working/compiling fine until yesterday. Are there any known issues or changes with the dependencies for this library? Downloaded directly and tried to build with cargo build --release, still same issue so I know its not an issue with my project. Wanted to let you know in case you were not aware.

   Compiling printf-compat v0.2.0
error[E0107]: struct takes 1 lifetime argument but 2 lifetime arguments were supplied
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/printf-compat-0.2.0/src/output.rs:338:14
    |
338 |     va_list: VaList<'a, 'b>,
    |              ^^^^^^   ---- help: remove the lifetime argument
    |              |
    |              expected 1 lifetime argument

error[E0107]: struct takes 1 lifetime argument but 2 lifetime arguments were supplied
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/printf-compat-0.2.0/src/output.rs:311:14
    |
311 |     va_list: VaList<'a, 'b>,
    |              ^^^^^^   ---- help: remove the lifetime argument
    |              |
    |              expected 1 lifetime argument

error[E0581]: return type references lifetime `'b`, which is not constrained by the fn input types
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/printf-compat-0.2.0/src/output.rs:312:6
    |
312 | ) -> VaListDisplay<'a, 'b> {
    |      ^^^^^^^^^^^^^^^^^^^^^

Some errors have detailed explanations: E0107, E0581.
For more information about an error, try `rustc --explain E0107`.
error: could not compile `printf-compat` (lib) due to 3 previous errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions