You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enumE{V0{a:u8,#[cfg(feature = "f")]b:u8,c:u8,d:u8,},}fnfoo(){let e = E::V0{a:1,#[cfg(feature = "f")]b:1,d:1,};}
In above example use intention on E::V0 to add missing field c. Expectation is that it'll appear after b: 1, but it appears at the end after d: 1.
Interestingly, remove a field in above example and field will be added to the beginning 🤔
Ordering works correctly when no conditional compilation new field appears in correct spot.
P.S. Inspection would be also nice for ordering not matching definition.
The text was updated successfully, but these errors were encountered:
nazar-pc
changed the title
Add missing fields intention with conditional compilation doesn't order fields properly
"Add missing fields" intention with conditional compilation doesn't order fields properly
Aug 25, 2023
Hi! Thank you for reaching us.
This is a known problem, and we already have the same report. Please take a look at #10345. Unfortunately, we don’t have an estimated time to resolve it, and if we have any new information, we will add a reply to that ticket.
If you have any further suggestions, please let us know.
Environment
Problem description
Steps to reproduce
In above example use intention on
E::V0
to add missing fieldc
. Expectation is that it'll appear afterb: 1
, but it appears at the end afterd: 1
.Interestingly, remove
a
field in above example and field will be added to the beginning 🤔Ordering works correctly when no conditional compilation new field appears in correct spot.
P.S. Inspection would be also nice for ordering not matching definition.
The text was updated successfully, but these errors were encountered: