diff --git a/parsley/shared/src/main/scala/parsley/errors/combinator.scala b/parsley/shared/src/main/scala/parsley/errors/combinator.scala index f586c0e3f..4f6876560 100644 --- a/parsley/shared/src/main/scala/parsley/errors/combinator.scala +++ b/parsley/shared/src/main/scala/parsley/errors/combinator.scala @@ -5,8 +5,6 @@ */ package parsley.errors -import scala.annotation.nowarn - import parsley.Parsley import parsley.internal.deepembedding.{frontend, singletons} @@ -496,7 +494,7 @@ object combinator { * @return a parser which returns the result of this parser applied to pf, if possible. * @see [[parsley.Parsley.collect `collect`]], which is a basic version of this same combinator with no customised error message. * @see [[guardAgainst `guardAgainst`]], which is similar to `collectMsg`, except it does not transform the data. - * @see [[filterWithMsg `filterWithMsg`]], which is similar to `collectMsg`, except uses a `A => Either[Seq[String], B]` function. + * @see [[mapFilterMsg `mapFilterMsg`]], which is similar to `collectMsg`, except uses a `A => Either[Seq[String], B]` function. * @note $autoAmend * @note implemented in terms of [[collectWith `collectWith`]]. * @group filter @@ -536,7 +534,7 @@ object combinator { def mapFilterMsg[B](f: A => Either[Seq[String], B]): Parsley[B] = { this.mapFilterWith(new SpecializedGen[A] { override def messages(x: A) = { - val Left(errs) = f(x): @nowarn + val Left(errs) = f(x): @unchecked errs } })(x => f(x).toOption)