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

macros: fix trait_method breaking change detection #6308

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

ik1ne
Copy link
Contributor

@ik1ne ik1ne commented Jan 26, 2024

Motivation

Context: #6307
The test trait_method was designed to prevent breaking changes for #[tokio::main] on trait methods.
However, previous implementation didn't access self so it was unable to catch some case of breaking changes.

Solution

Created another method g(self) and called it to access self.

@ik1ne ik1ne marked this pull request as ready for review January 26, 2024 06:24
@maminrayej maminrayej added the A-tokio Area: The main tokio crate label Jan 26, 2024
Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Darksonn Darksonn merged commit b6d0c90 into tokio-rs:master Jan 26, 2024
79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants