-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #4285 What this does: - Adds the necessary information in `Shape` for `FnSignature`'s `Format` implementation, to always format as a `Function`. This bug occurred because `FnSignature` always inherited the parent type's `ExprKind`, meaning it will format correctly so long as the parent type (`ItemFn`) exists. Otherwise it will default to the normal format. - Adds tests for `ItemAbi` & `ItemTrait` - Removes an unnecessary indentation from `ItemImpl` --------- Co-authored-by: Chris O'Brien <[email protected]> Co-authored-by: Sophie Dankel <[email protected]>
- Loading branch information
1 parent
66a4abc
commit 53fd58d
Showing
4 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters