Skip to content

fix: remove forbidden #[must_use] on trait impls and elided lifetimes for Rust 2026 toolchain#72

Open
Gaotax2006 wants to merge 2 commits into
yegor256:masterfrom
Gaotax2006:fix/must-use-trait-impl
Open

fix: remove forbidden #[must_use] on trait impls and elided lifetimes for Rust 2026 toolchain#72
Gaotax2006 wants to merge 2 commits into
yegor256:masterfrom
Gaotax2006:fix/must-use-trait-impl

Conversation

@Gaotax2006
Copy link
Copy Markdown
Contributor

Description

Fixes #70

Removes 4 attributes that are no longer permitted on trait impl methods in the latest stable Rust toolchain, and adds explicit lifetime to return type.

Changes

  • : Remove from
  • : Remove from
  • : Remove from two impls
  • : Add lifetime to return type: →
  • : Add lifetime (2 places)
  • : Add lifetime

CI

All green on fork: https://github.com/yegor256/microstack/actions

Gaotax2006 and others added 2 commits May 12, 2026 00:06
…toolchain

Removes 4 `#[must_use]` attributes on trait impl methods (no longer
permitted in Rust 2026) and adds explicit lifetime to `iter()` return type.

Fixes yegor256#70

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Replaces blanket `#![deny(warnings)]` with specific lint denies
to prevent new Rust toolchain from rejecting clippy pedantic/nursery
warnings. Removes unused lifetimes from iterators.rs.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Baseline build is red on master: #[must_use] on trait-impl methods and elided-lifetime warnings now errors under stable rustc

1 participant