-
Notifications
You must be signed in to change notification settings - Fork 1k
Unable to format include! files #3619
Copy link
Copy link
Open
Labels
A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)Area: macros (procedural macros, macro_rules! macros, etc.)C-feature-requestCategory: a feature request (not decided/implemented)Category: a feature request (not decided/implemented)P-lowLow priorityLow priorityfun!:):)
Milestone
Metadata
Metadata
Assignees
Labels
A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)Area: macros (procedural macros, macro_rules! macros, etc.)C-feature-requestCategory: a feature request (not decided/implemented)Category: a feature request (not decided/implemented)P-lowLow priorityLow priorityfun!:):)
Type
Fields
Give feedbackNo fields configured for issues without a type.
I have a use-case in which I have sometimes very large mathematical expressions which, for the sake of code clarity, are contained in a separate file and included into the code with the
include!macro.It would be nice if rustfmt could format these included files as well. Currently it is unable to do so as they are not valid rust code on their own.
A very simple example would be:
func.inc.rsmain.rsIs there any way that
rustfmtcould formatfunc.inc.rs? Or could this be implemented in the future?