Re: [PATCH 10/17] rust: Silence a clang warning in borrow-checker-diagnostics

2025-06-26 Thread Martin Jambor
On Wed, Jun 25 2025, Martin Jambor wrote: > Hi, > > when compiling > gcc/rust/checks/errors/borrowck/rust-borrow-checker-diagnostics.cc > with clang, it emits the following warning: > > gcc/rust/checks/errors/borrowck/rust-borrow-checker-diagnostics.cc:145:46: > warning: non-constant-expression

[PATCH 10/17] rust: Silence a clang warning in borrow-checker-diagnostics

2025-06-25 Thread Martin Jambor
Hi, when compiling gcc/rust/checks/errors/borrowck/rust-borrow-checker-diagnostics.cc with clang, it emits the following warning: gcc/rust/checks/errors/borrowck/rust-borrow-checker-diagnostics.cc:145:46: warning: non-constant-expression cannot be narrowed from type 'Polonius::Loan' (aka 'uns