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

feat: Object safe trait nightly test #661

Merged
merged 10 commits into from
Jul 24, 2024

Conversation

devanbenz
Copy link
Contributor

  • Adds test_crate and output for trait_no_longer_object_safe lint
  • This is a +nightly rustdoc feature currently so will remain open as a draft PR until the feature is moved in to stable

@obi1kenobi
Copy link
Owner

Reminder to self:

  • Rust 1.77 is the first one to ship trait dyn-safety in rustdoc JSON.
  • The test cases here were checked and valid on Rust 1.77 beta and 1.78 nightly circa 2024-02-11. They are extremely unlikely to drift.
  • Merge this PR when Rust 1.77 is our lower bound.

@obi1kenobi
Copy link
Owner

@devanbenz if you don't mind, could you remove the lint file and macro invocation change, and add the trailing newlines to all the test files here?

@devanbenz
Copy link
Contributor Author

devanbenz commented Feb 13, 2024 via email

@obi1kenobi
Copy link
Owner

Looks good, thanks!

@devanbenz
Copy link
Contributor Author

https://releases.rs/ - when will 1.77 be lower bound? I know as of right now its stable.

@obi1kenobi
Copy link
Owner

Right now I'm thinking probably in another 3-4 Rust releases or so (~4-6 months), unless there's a huge burst of breaking changes in rustdoc JSON formats in consecutive Rust releases that causes more maintenance burden.

Any particular reason you're asking?

I'm under the impression that only the test case is left outstanding, all the rest of the work is merged and the Rust community already benefits from the new lint if they use Rust 1.77+. Is that also how you see it? Just wanted to make sure I'm not making some incorrect starting assumption here.

@devanbenz
Copy link
Contributor Author

Right now I'm thinking probably in another 3-4 Rust releases or so (~4-6 months), unless there's a huge burst of breaking changes in rustdoc JSON formats in consecutive Rust releases that causes more maintenance burden.

Any particular reason you're asking?

I'm under the impression that only the test case is left outstanding, all the rest of the work is merged and the Rust community already benefits from the new lint if they use Rust 1.77+. Is that also how you see it? Just wanted to make sure I'm not making some incorrect starting assumption here.

Nope, no specific reason! I've been just doing some spring cleaning on my PRs and issues in GitHub 😆

@obi1kenobi
Copy link
Owner

Thanks for keeping an eye on this and checking in!

@obi1kenobi obi1kenobi marked this pull request as ready for review July 24, 2024 21:23
@obi1kenobi
Copy link
Owner

obi1kenobi commented Jul 24, 2024

I just released v0.33.0 of cargo-semver-checks, and that's the last release that will support Rust older than 1.77. After the release, I also merged a PR to drop Rust versions prior to 1.77 from the test matrix.

That means this PR is finally ready to merge!

Thanks for your patience, and for helping build this functionality!

@obi1kenobi obi1kenobi merged commit 239fcdc into obi1kenobi:main Jul 24, 2024
32 checks passed
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.

2 participants