3895: Fix warnings emitted when compiling as part of rustc r=matklad a=matklad



bors r+
🤖

Co-authored-by: Luca Barbieri <luca@luca-barbieri.com>
This commit is contained in:
bors[bot] 2020-04-08 14:15:54 +00:00 committed by GitHub
commit 4762c6d9c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -316,7 +316,7 @@ fn rewrite_self(
}
}
impl<'a> ops::AddAssign for SyntaxRewriter<'_> {
impl ops::AddAssign for SyntaxRewriter<'_> {
fn add_assign(&mut self, rhs: SyntaxRewriter) {
assert!(rhs.f.is_none());
self.replacements.extend(rhs.replacements)