-
Notifications
You must be signed in to change notification settings - Fork 880
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
Flickering line break #6240
Comments
@boozook Thanks for the report. Please try to reduce this to a minimal reproducible example. |
@ytmimi, I honestly tried to get an isolated minimal reproducible example, but I can't, sorry. I suppose there is something complex 🤷🏻♂️ Also, just as little addition I've made neat video-demo in the IDE Untitled.mov |
Thanks for the video. You might try to copy the entire |
@ytmimi, done! Seems to it depends on length of ling lines inside the block. Important things in the config: hard_tabs = true
tab_spaces = 3 mod foo {
fn foo() {
artifacts.extract_if(|(art, roots)| {
let removed = roots.extract_if(|root| {
let ct =
determine_crate_types(cfg, art, target, tk.clone(), ck).collect::<Vec<_>>();
})
.inspect(|r| {
log::trace!(" excluded: {p}::{t} {:?}", match r.node().unit().platform {
CompileKind::Host => "host",
CompileKind::Target(ref kind) => kind.short_name(),
})
})
.count();
});
}
} Also there is one more problem - cases of
|
version:
rustfmt 1.7.1-nightly (ba1d7f4a 2024-06-29)
config: rustfmt.toml
Formatting is flickering for looooong chain like this:
from this
to this and back:
example as pr-annotation: boozook/playdate#399 (comment)
The text was updated successfully, but these errors were encountered: