Skip to content

compiler warnings #236

Description

@mcandre

Hi,

Newer Rust versions like 1.93.0 report compilation warnings.

% cargo test
warning: hiding a lifetime that's elided elsewhere is confusing
   --> apk/src/compiler/table.rs:221:23
    |
221 |     fn lookup_package(&self, id: u8) -> Result<Package> {
    |                       ^^^^^                    ^^^^^^^ the same lifetime is hidden here
    |                       |
    |                       the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
help: use `'_` for type paths
    |
221 |     fn lookup_package(&self, id: u8) -> Result<Package<'_>> {
    |                                                       ++++

warning: hiding a lifetime that's elided elsewhere is confusing
   --> apk/src/compiler/table.rs:232:25
    |
232 |     pub fn entry_by_ref(&self, r: Ref) -> Result<Entry> {
    |                         ^^^^^                    ^^^^^ the same lifetime is hidden here
    |                         |
    |                         the lifetime is elided here
    |
    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
    |
232 |     pub fn entry_by_ref(&self, r: Ref) -> Result<Entry<'_>> {
    |                                                       ++++

Can we please resolve these? That way, downstream libraries and applications will have a lot less noise during compilation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions