Skip to content

Commit ba5b6c8

Browse files
committed
Fix warnings emitted when compiling as part of rustc
1 parent 6f0d8db commit ba5b6c8

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

crates/ra_parser/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
//!
1313
//! Tests for this crate live in `ra_syntax` crate.
1414
15+
#![allow(elided_lifetimes_in_paths)]
16+
1517
#[macro_use]
1618
mod token_set;
1719
#[macro_use]

crates/ra_syntax/src/algo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl<'a> SyntaxRewriter<'a> {
316316
}
317317
}
318318

319-
impl<'a> ops::AddAssign for SyntaxRewriter<'_> {
319+
impl ops::AddAssign for SyntaxRewriter<'_> {
320320
fn add_assign(&mut self, rhs: SyntaxRewriter) {
321321
assert!(rhs.f.is_none());
322322
self.replacements.extend(rhs.replacements)

crates/ra_syntax/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
//! [RFC]: <https://github.com/rust-lang/rfcs/pull/2256>
2020
//! [Swift]: <https://github.com/apple/swift/blob/13d593df6f359d0cb2fc81cfaac273297c539455/lib/Syntax/README.md>
2121
22+
#![allow(elided_lifetimes_in_paths)]
23+
2224
mod syntax_node;
2325
mod syntax_error;
2426
mod parsing;

0 commit comments

Comments
 (0)