-
Notifications
You must be signed in to change notification settings - Fork 898
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
rustfmt eats dyn_star syntax #5542
Comments
Thanks for the report. Any chance you could link me to more info about I can confirm that I'm able to reproduce the issue on the playground, however when running with the latest master (ef91154) this is the output that I get: #![feature(dyn_star)]
#![allow(incomplete_features)]
use core::fmt::Debug;
fn main() {
let i = 42;
let dyn_i = i as dyn * Debug;
dbg!(dyn_i);
} |
It was introduced with rust-lang/rust#101212
Ah if it's fixed already that's great. 🙂 |
Thanks for linking the |
|
I took a look at this again. The latest rustfmt master is using nightly-2022-08-06, which doesn't know about the new In order to resolve this we'll need to do a subtree sync with Changes will ultimately need to be made to the Lines 662 to 682 in ef91154
The fix should be pretty straightforward once we've done the sync. |
Playground
Given:
This is formatted to:
After formatting, this code no longer compiles.
The text was updated successfully, but these errors were encountered: