mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
Starting with Rust 1.83 this benign warning is show when compiling the pest dependency:
```
warning: elided lifetime has a name
--> pest/src/iterators/pairs.rs:330:70
|
89 | impl<'i, R: RuleType> Pairs<'i, R> {
| -- lifetime `'i` declared here
...
330 | ) -> Filter<FlatPairs<'i, R>, impl FnMut(&Pair<'i, R>) -> bool + '_> {
| ^^ this elided lifetime gets resolved as `'i`
|
= note: `#[warn(elided_named_lifetimes)]` on by default
```
Meson, at least as of version 1.7.0, unfortunately does not suppress warnings originating in dependencies.
Upstream has resolved the warning in 2.8.0, so update to that.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34368>
21 lines
367 B
Meson
21 lines
367 B
Meson
project(
|
|
'pest',
|
|
'rust',
|
|
version : '2.8.0',
|
|
license :'MIT OR Apache-2.0',
|
|
)
|
|
|
|
ucd = subproject('ucd-trie').get_variable('lib')
|
|
|
|
lib = static_library(
|
|
'pest',
|
|
'src/lib.rs',
|
|
override_options : ['rust_std=2021', 'build.rust_std=2021'],
|
|
link_with : [ucd],
|
|
rust_abi : 'rust',
|
|
native : true,
|
|
)
|
|
|
|
dep_pest = declare_dependency(
|
|
link_with : [lib, ucd],
|
|
)
|