Skip to content

Update rustc_on_unimplemented docs #2357

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

Merged
merged 1 commit into from
May 24, 2025
Merged

Update rustc_on_unimplemented docs #2357

merged 1 commit into from
May 24, 2025

Conversation

mejrs
Copy link
Contributor

@mejrs mejrs commented Apr 27, 2025

Note that these docs reflect the current implementation but some fixes and updates have not percolated into the bootstrap compiler yet:

  • "{This}" is not supported
  • the "several values to match on" part works with _Self but not Self.

So I guess we should avoid merging this until the middle of May?

Rendered

@jieyouxu jieyouxu added S-blocked Status: this PR is blocked waiting for something T-compiler Relevant to compiler team labels Apr 29, 2025
@jieyouxu
Copy link
Member

jieyouxu commented Apr 29, 2025

Please ping me after the next beta bump, I'll merge this then.

@jieyouxu jieyouxu self-assigned this Apr 29, 2025
@jieyouxu
Copy link
Member

Let me know if this is now mergeable.

@jieyouxu jieyouxu added S-waiting-on-author Status: this PR is waiting for additional action by the OP and removed S-blocked Status: this PR is blocked waiting for something labels May 15, 2025
@mejrs
Copy link
Contributor Author

mejrs commented May 16, 2025

Not yet, I want to make a couple of changes.

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request May 22, 2025
rustc_on_unimplemented cleanups

Addresses some of the fixmes from rust-lang#139091 and rust-lang#140307.

- switch from `_Self` to `Self` in library
- properly validate that arguments in the `on` filter and the format strings are actually valid

See rust-lang/rustc-dev-guide#2357 for the relevant documentation.
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request May 23, 2025
Rollup merge of rust-lang#141130 - mejrs:use_self, r=compiler-errors

rustc_on_unimplemented cleanups

Addresses some of the fixmes from rust-lang#139091 and rust-lang#140307.

- switch from `_Self` to `Self` in library
- properly validate that arguments in the `on` filter and the format strings are actually valid

See rust-lang/rustc-dev-guide#2357 for the relevant documentation.
@rustbot

This comment has been minimized.

@mejrs
Copy link
Contributor Author

mejrs commented May 24, 2025

rust-lang/rust#141130 got merged, we're good now :)

@rustbot ready

@rustbot
Copy link
Collaborator

rustbot commented May 24, 2025

Error: The feature shortcut is not enabled in this repository.
To enable it add its section in the triagebot.toml in the root of the repository.

Please file an issue on GitHub at triagebot if there's a problem with this bot, or reach out on #t-infra on Zulip.

@jieyouxu
Copy link
Member

Huh, right, we should probably enable waiting-on-{review,author} flips

@@ -930,45 +922,61 @@ Would generate the following output:

```text
error[E0277]: message
--> <anon>:14:5
--> <file>>:10:19
Copy link
Member

Choose a reason for hiding this comment

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

Nit:

Suggested change
--> <file>>:10:19
--> <file>:10:19

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, thanks

Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

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

Thanks

@jieyouxu jieyouxu merged commit 476328a into rust-lang:master May 24, 2025
1 check passed
github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request May 26, 2025
rustc_on_unimplemented cleanups

Addresses some of the fixmes from rust-lang#139091 and rust-lang#140307.

- switch from `_Self` to `Self` in library
- properly validate that arguments in the `on` filter and the format strings are actually valid

See rust-lang/rustc-dev-guide#2357 for the relevant documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: this PR is waiting for additional action by the OP T-compiler Relevant to compiler team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants