]> gcc.gnu.org Git - gcc.git/commit
gccrs: format-parser: Add `is_some_and` method for Option<T>
authorArthur Cohen <arthur.cohen@embecosm.com>
Mon, 26 Feb 2024 10:55:47 +0000 (11:55 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 1 Aug 2024 11:11:29 +0000 (13:11 +0200)
commit433fbb156898c256c38a9ee137a51a42fe9177ee
treea5f85705861683401996ad0455856487c6518a12
parentf7dafa7d4bba993a32f8883967babddf8510772c
gccrs: format-parser: Add `is_some_and` method for Option<T>

Workaround for Ubuntu 18.04, since we still use it for the GCC 4.8 CI.
The default Rust package is 1.65 (and unlikely to change I assume?),
but the generic format parser library uses `is_some_and` which was
introduced in 1.70. So this is a simple reimplementation, directly taken
from the standard library sources.

libgrust/ChangeLog:

* libformat_parser/generic_format_parser/src/lib.rs: Add IsSomeAnd<T>
trait, impl it for Option<T>.
libgrust/libformat_parser/generic_format_parser/src/lib.rs
This page took 0.057866 seconds and 5 git commands to generate.