libsyntax: Allow + to separate trait bounds from objects.
RFC #27. After a snapshot, the old syntax will be removed. This can break some code that looked like `foo as &Trait:Send`. Now you will need to write `foo as (&Trait+Send)`. Closes #12778. [breaking-change]
This commit is contained in:
committed by
Alex Crichton
parent
03ec8e5cc9
commit
9b9ef44233
@@ -192,6 +192,7 @@ pub trait Folder {
|
||||
})
|
||||
}
|
||||
TyTup(ref tys) => TyTup(tys.iter().map(|&ty| self.fold_ty(ty)).collect()),
|
||||
TyParen(ref ty) => TyParen(self.fold_ty(*ty)),
|
||||
TyPath(ref path, ref bounds, id) => {
|
||||
let id = self.new_id(id);
|
||||
TyPath(self.fold_path(path),
|
||||
|
||||
Reference in New Issue
Block a user