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
dplassgit
changed the title
When trying to disable formatting around a test function it removes the function
When trying to disable formatting around a test function it segfaults
Dec 3, 2024
This is partially because it can't find the comment between the #[test] and the function, and partially because the NameDef isn't castable to a VerbatimNode. We'll disallow format disabling in this situation.
…and return an error from the ast_cloner. Since `struct` fields aren't AST nodes yet, it's currently infeasible to disable formatting in `struct`s.
Similar for certain ways of disabling formatting in and around functions.
#1756#1760
PiperOrigin-RevId: 707104604
To Reproduce
Try to format:
Expected behavior
Output = input
Actual behavior
segfault:
The text was updated successfully, but these errors were encountered: