Skip to content

fix: fix format string highlighting for todo! and unimplemented! #10400

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 2 commits into from
Sep 30, 2021
Merged

fix: fix format string highlighting for todo! and unimplemented! #10400

merged 2 commits into from
Sep 30, 2021

Conversation

jonas-schievink
Copy link
Contributor

Part of #10394

These macros require us to see through the const_format_args! invocation the panic macros generate, for that we have to add it to our supported built-in macros.

I've also made the macros in the test #[macro_export] (turns out they didn't all resolve correctly before this), which changes the output slightly.

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 30, 2021

Canceled.

@jonas-schievink
Copy link
Contributor Author

bors r+

bors bot added a commit that referenced this pull request Sep 30, 2021
10400: fix: fix format string highlighting for `todo!` and `unimplemented!` r=jonas-schievink a=jonas-schievink

Part of #10394

These macros require us to see through the `const_format_args!` invocation the panic macros generate, for that we have to add it to our supported built-in macros.

I've also made the macros in the test `#[macro_export]` (turns out they didn't all resolve correctly before this), which changes the output slightly.

bors r+

Co-authored-by: Jonas Schievink <[email protected]>
@bors
Copy link
Contributor

bors bot commented Sep 30, 2021

Canceled.

@jonas-schievink
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 30, 2021

@bors bors bot merged commit 7a36993 into rust-lang:master Sep 30, 2021
@jonas-schievink jonas-schievink deleted the const-format-args branch September 30, 2021 15:41
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.

1 participant