[GH-ISSUE #1345] Building 0.6.2 for openSUSE emits warnings with "warning: hiding a lifetime that's elided elsewhere is confusing" #472

Closed
opened 2026-02-27 08:17:27 +03:00 by kerem · 2 comments
Owner

Originally created by @johanneskastl on GitHub (Nov 6, 2025).
Original GitHub issue: https://github.com/lldap/lldap/issues/1345

Originally assigned to: @nitnelave on GitHub.

Dear maintainers,

the openSUSE package for lldap 0.6.2 emits the following warning messages. Those do not seem to be critical, but I wanted to report them nevertheless.

[  647s]    Compiling url-escape v0.1.1
[  647s]    Compiling lldap_validation v0.6.0 (/home/abuild/rpmbuild/BUILD/lldap-0.6.2-build/lldap-0.6.2/crates/validation)
[  649s]    Compiling lldap_app v0.6.2 (/home/abuild/rpmbuild/BUILD/lldap-0.6.2-build/lldap-0.6.2/app)
[  652s] warning: hiding a lifetime that's elided elsewhere is confusing
[  652s]   --> app/src/infra/attributes.rs:11:54
[  652s]    |
[  652s] 11 |     pub fn resolve_group_attribute_description(name: &str) -> Option<AttributeDescription> {
[  652s]    |                                                      ^^^^            -------------------- the same lifetime is hidden here
[  652s]    |                                                      |
[  652s]    |                                                      the lifetime is elided here
[  652s]    |
[  652s]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[  652s]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[  652s] help: use `'_` for type paths
[  652s]    |
[  652s] 11 |     pub fn resolve_group_attribute_description(name: &str) -> Option<AttributeDescription<'_>> {
[  652s]    |                                                                                          ++++
[  652s] 
[  652s] warning: hiding a lifetime that's elided elsewhere is confusing
[  652s]   --> app/src/infra/attributes.rs:37:65
[  652s]    |
[  652s] 37 |     pub fn resolve_group_attribute_description_or_default(name: &str) -> AttributeDescription {
[  652s]    |                                                                 ^^^^     -------------------- the same lifetime is hidden here
[  652s]    |                                                                 |
[  652s]    |                                                                 the lifetime is elided here
[  652s]    |
[  652s]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[  652s] help: use `'_` for type paths
[  652s]    |
[  652s] 37 |     pub fn resolve_group_attribute_description_or_default(name: &str) -> AttributeDescription<'_> {
[  652s]    |                                                                                              ++++
[  652s] 
[  652s] warning: hiding a lifetime that's elided elsewhere is confusing
[  652s]   --> app/src/infra/attributes.rs:53:53
[  652s]    |
[  652s] 53 |     pub fn resolve_user_attribute_description(name: &str) -> Option<AttributeDescription> {
[  652s]    |                                                     ^^^^            -------------------- the same lifetime is hidden here
[  652s]    |                                                     |
[  652s]    |                                                     the lifetime is elided here
[  652s]    |
[  652s]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[  652s] help: use `'_` for type paths
[  652s]    |
[  652s] 53 |     pub fn resolve_user_attribute_description(name: &str) -> Option<AttributeDescription<'_>> {
[  652s]    |                                                                                         ++++
[  652s] 
[  652s] warning: hiding a lifetime that's elided elsewhere is confusing
[  652s]   --> app/src/infra/attributes.rs:99:64
[  652s]    |
[  652s] 99 |     pub fn resolve_user_attribute_description_or_default(name: &str) -> AttributeDescription {
[  652s]    |                                                                ^^^^     -------------------- the same lifetime is hidden here
[  652s]    |                                                                |
[  652s]    |                                                                the lifetime is elided here
[  652s]    |
[  652s]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[  652s] help: use `'_` for type paths
[  652s]    |
[  652s] 99 |     pub fn resolve_user_attribute_description_or_default(name: &str) -> AttributeDescription<'_> {
[  652s]    |                                                                                             ++++
[  652s] 
[  685s] warning: `lldap_app` (lib) generated 4 warnings

Kind Regards,
Johannes

Originally created by @johanneskastl on GitHub (Nov 6, 2025). Original GitHub issue: https://github.com/lldap/lldap/issues/1345 Originally assigned to: @nitnelave on GitHub. Dear maintainers, the openSUSE package for lldap 0.6.2 emits the following warning messages. Those do not seem to be critical, but I wanted to report them nevertheless. ``` [ 647s] Compiling url-escape v0.1.1 [ 647s] Compiling lldap_validation v0.6.0 (/home/abuild/rpmbuild/BUILD/lldap-0.6.2-build/lldap-0.6.2/crates/validation) [ 649s] Compiling lldap_app v0.6.2 (/home/abuild/rpmbuild/BUILD/lldap-0.6.2-build/lldap-0.6.2/app) [ 652s] warning: hiding a lifetime that's elided elsewhere is confusing [ 652s] --> app/src/infra/attributes.rs:11:54 [ 652s] | [ 652s] 11 | pub fn resolve_group_attribute_description(name: &str) -> Option<AttributeDescription> { [ 652s] | ^^^^ -------------------- the same lifetime is hidden here [ 652s] | | [ 652s] | the lifetime is elided here [ 652s] | [ 652s] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [ 652s] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [ 652s] help: use `'_` for type paths [ 652s] | [ 652s] 11 | pub fn resolve_group_attribute_description(name: &str) -> Option<AttributeDescription<'_>> { [ 652s] | ++++ [ 652s] [ 652s] warning: hiding a lifetime that's elided elsewhere is confusing [ 652s] --> app/src/infra/attributes.rs:37:65 [ 652s] | [ 652s] 37 | pub fn resolve_group_attribute_description_or_default(name: &str) -> AttributeDescription { [ 652s] | ^^^^ -------------------- the same lifetime is hidden here [ 652s] | | [ 652s] | the lifetime is elided here [ 652s] | [ 652s] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [ 652s] help: use `'_` for type paths [ 652s] | [ 652s] 37 | pub fn resolve_group_attribute_description_or_default(name: &str) -> AttributeDescription<'_> { [ 652s] | ++++ [ 652s] [ 652s] warning: hiding a lifetime that's elided elsewhere is confusing [ 652s] --> app/src/infra/attributes.rs:53:53 [ 652s] | [ 652s] 53 | pub fn resolve_user_attribute_description(name: &str) -> Option<AttributeDescription> { [ 652s] | ^^^^ -------------------- the same lifetime is hidden here [ 652s] | | [ 652s] | the lifetime is elided here [ 652s] | [ 652s] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [ 652s] help: use `'_` for type paths [ 652s] | [ 652s] 53 | pub fn resolve_user_attribute_description(name: &str) -> Option<AttributeDescription<'_>> { [ 652s] | ++++ [ 652s] [ 652s] warning: hiding a lifetime that's elided elsewhere is confusing [ 652s] --> app/src/infra/attributes.rs:99:64 [ 652s] | [ 652s] 99 | pub fn resolve_user_attribute_description_or_default(name: &str) -> AttributeDescription { [ 652s] | ^^^^ -------------------- the same lifetime is hidden here [ 652s] | | [ 652s] | the lifetime is elided here [ 652s] | [ 652s] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [ 652s] help: use `'_` for type paths [ 652s] | [ 652s] 99 | pub fn resolve_user_attribute_description_or_default(name: &str) -> AttributeDescription<'_> { [ 652s] | ++++ [ 652s] [ 685s] warning: `lldap_app` (lib) generated 4 warnings ``` Kind Regards, Johannes
kerem closed this issue 2026-02-27 08:17:27 +03:00
Author
Owner

@nitnelave commented on GitHub (Nov 16, 2025):

This looks like openSuse compiled LLDAP with a more recent rustc than our MSRV. That's totally fine, and I appreciate the report! I'll have a look when I can (or see if we can somewhat automate the fix).

<!-- gh-comment-id:3538509693 --> @nitnelave commented on GitHub (Nov 16, 2025): This looks like openSuse compiled LLDAP with a more recent `rustc` than our MSRV. That's totally fine, and I appreciate the report! I'll have a look when I can (or see if we can somewhat automate the fix).
Author
Owner

@nitnelave commented on GitHub (Nov 16, 2025):

Wow, copilot just fell on its face, I'm gonna fix it myself...

<!-- gh-comment-id:3538746650 --> @nitnelave commented on GitHub (Nov 16, 2025): Wow, copilot just fell on its face, I'm gonna fix it myself...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#472
No description provided.