From 9b5cc10595a3b2142c1eec7638e37d1dbfa220eb Mon Sep 17 00:00:00 2001 From: philippus Date: Sun, 29 Sep 2024 12:36:35 +0200 Subject: [PATCH] Silence specific category --- .../scala/util/parsing/combinator/PackratParsersTest.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/src/test/scala/scala/util/parsing/combinator/PackratParsersTest.scala b/shared/src/test/scala/scala/util/parsing/combinator/PackratParsersTest.scala index 3918b4f8..07df04ec 100644 --- a/shared/src/test/scala/scala/util/parsing/combinator/PackratParsersTest.scala +++ b/shared/src/test/scala/scala/util/parsing/combinator/PackratParsersTest.scala @@ -222,7 +222,7 @@ private object grammars3 extends StandardTokenParsers with PackratParsers { | success(Nil) ) - @annotation.nowarn // Some(xs) in pattern isn't exhaustive + @annotation.nowarn("cat=other-match-analysis") def repMany1[T](p: => Parser[T], q: => Parser[T]): Parser[List[T]] = p~opt(repMany(p,q))~q ^^ {case x~Some(xs)~y => x::xs:::(y::Nil)}