-
Notifications
You must be signed in to change notification settings - Fork 940
Open
Tracking Issue
0 / 20 of 2 issues completed
Listed in 2 issues
Copy link
Labels
unstable optiontracking issue of an unstable optiontracking issue of an unstable option
Description
Tracking issue for unstable option: imports_granularity
.
See Processes.md, "Stabilising an Option":
- Is the default value correct?The design and implementation of the option are sound and clean.The option is well tested, both in unit tests and, optimally, in real usage.There is no open bug about the option that prevents its use.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel.
remi-dupre, Nutomic, gluxon, Zingam, kraktus and 126 moreproski, panarch, ruancomelli, brannondorsey, ctron and 1 more
Sub-issues
Collapse Sub-issuesSub-issues
- Manage this item control⌃ shift⇧ uU
- Manage this item control⌃ shift⇧ uU
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
Metadata
Metadata
Assignees
Labels
unstable optiontracking issue of an unstable optiontracking issue of an unstable option
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
Tamschi commentedon Oct 10, 2021
When using
,
cargo +nightly fmt
will currently remove comments like this:(I wasn't sure whether this deserves its own issue.)
calebcartwright commentedon Oct 10, 2021
The dropping of comments with the various options that manipulate imports is a known issue, and one of the hurdles that will have to be overcome before the options, including this one, can be stabilized.
It is good to have an inline example here too though, so thank you @Tamschi
imports_granularity=Item
removes#[cfg()]
attribute from imports #5030Make formatting of imports consistent
Make formatting of imports consistent (#95)
imports_granularity
#5082Xuanwo commentedon Feb 18, 2022
Hi, is there any progress to make this option stable?
calebcartwright commentedon Feb 19, 2022
The absence of updates should be explicitly interpreted as meaning that there are no updates. The process and requirements for stabilizing an option are both linked, and enumerated with checkboxes, in the issue description and will be updated as-and-when there are updates to share
I appreciate the interest folks have in being able to use an option on stable. However, this remains a relatively new option with many well known bugs, and as stated above, is not going to be eligible for stabilization any time soon.
Nutomic commentedon Feb 21, 2022
For what its worth, we have been using
imports_granularity="Crate"
in Lemmy for over a year without any problems. Though we dont put any comments around imports.65 remaining items
rustfmt
when it is stable foundry-rs/starknet-foundry#18769999years commentedon Apr 10, 2024
I've added a list of open issues regarding
imports_granularity
to the original ticket. Please let me know if there's others to add to the list.imports_granularity = "Module"
doesn't work if module path is too long #6164yanchith commentedon Jun 4, 2024
Hi all. I hope I am not too late with the feedback. I would like to use
imports_granularity = "Module"
, as in theory it is exactly what I'd like to see.However, I have a couple of issues with how it works as of nightly-2024-05-13.
... becomes ...
... becomes ...
... becomes ...
mnkhouri commentedon Jun 11, 2024
@yanchith I filed #6191 so that your point 3. can be discussed, since I also expected the same result you described
use
statements arounds comments, changing their meaning #6241Blub commentedon Apr 16, 2025
Is there any reason not to stabilize parts of this? Eg. we'd like to use
Item
as it seems quite straightforward and the most merge-conflict-friendly option of them all. (Anything that re-flows entire blocks of imports is a PITA forgit merge
& manual reviews)Crate
granularity chainwayxyz/clementine#844