diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2019-10-23 17:14:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-23 17:14:42 +0900 |
| commit | 5bac3617769cec8080e304f2781971cf9113e188 (patch) | |
| tree | 7b79f562fff3508a64fc842fe46c97c4d05df907 /src/libsyntax/parse/parser.rs | |
| parent | 7fc6ce9db2bd69738acc7fece8c9f6b9b1ae505e (diff) | |
| parent | 40f92b3b0595984f40aafd70ec4a5b9a3bdde47a (diff) | |
| download | rust-5bac3617769cec8080e304f2781971cf9113e188.tar.gz rust-5bac3617769cec8080e304f2781971cf9113e188.zip | |
Rollup merge of #65686 - yjhmelody:yjhmelody-patch-1, r=Centril
refactor and move `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 6bbd8be0cb9..2ce0046ca27 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, |
