about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2019-10-23 17:14:42 +0900
committerGitHub <noreply@github.com>2019-10-23 17:14:42 +0900
commit5bac3617769cec8080e304f2781971cf9113e188 (patch)
tree7b79f562fff3508a64fc842fe46c97c4d05df907 /src/libsyntax/parse/parser.rs
parent7fc6ce9db2bd69738acc7fece8c9f6b9b1ae505e (diff)
parent40f92b3b0595984f40aafd70ec4a5b9a3bdde47a (diff)
downloadrust-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.rs7
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,