-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed 'Comment removed between type name and =' issue (#4448)
* Fixed Comment removed between type name and = issue * Fixed where clause issue and pass the full span * has_where condition inline * Fixed indentation error on where clause * Removed tmp file
- Loading branch information
Showing
4 changed files
with
78 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
pub struct SS {} | ||
|
||
pub type A /* A Comment */ = SS; | ||
|
||
pub type B // Comment | ||
// B | ||
= SS; | ||
|
||
pub type C | ||
/* Comment C */ = SS; | ||
|
||
pub trait D <T> { | ||
type E /* Comment E */ = SS; | ||
} | ||
|
||
type F<'a: 'static, T: Ord + 'static>: Eq + PartialEq where T: 'static + Copy /* x */ = Vec<u8>; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
pub struct SS {} | ||
|
||
pub type A /* A Comment */ = SS; | ||
|
||
pub type B // Comment | ||
// B | ||
= SS; | ||
|
||
pub type C | ||
/* Comment C */ | ||
= SS; | ||
|
||
pub trait D<T> { | ||
type E /* Comment E */ = SS; | ||
} | ||
|
||
type F<'a: 'static, T: Ord + 'static>: Eq + PartialEq | ||
where | ||
T: 'static + Copy, /* x */ | ||
= Vec<u8>; |