diff options
| author | yjhmelody <465402634@qq.com> | 2019-10-22 12:25:14 +0800 |
|---|---|---|
| committer | yjhmelody <465402634@qq.com> | 2019-10-22 12:25:14 +0800 |
| commit | 40f92b3b0595984f40aafd70ec4a5b9a3bdde47a (patch) | |
| tree | 3f6a6adf2a89459b37b4f8add4b7d3227cf6f984 /src/libsyntax/parse/parser.rs | |
| parent | fa0f7d0080d8e7e9eb20aa9cbf8013f96c81287f (diff) | |
| download | rust-40f92b3b0595984f40aafd70ec4a5b9a3bdde47a.tar.gz rust-40f92b3b0595984f40aafd70ec4a5b9a3bdde47a.zip | |
refactor maybe_append
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 9cb410a8ae3..d4d2f42446b 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -86,13 +86,6 @@ macro_rules! maybe_recover_from_interpolated_ty_qpath { } } -fn maybe_append(mut lhs: Vec<Attribute>, mut rhs: Option<Vec<Attribute>>) -> Vec<Attribute> { - if let Some(ref mut rhs) = rhs { - lhs.append(rhs); - } - lhs -} - #[derive(Debug, Clone, Copy, PartialEq)] enum PrevTokenKind { DocComment, |
