https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119641
Bug ID: 119641
Summary: narrowing Warning during bootstrap in
Rust::BIR::PlaceDB::lookup_or_add_variable
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rust
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
CC: dkm at gcc dot gnu.org, gcc-rust at gcc dot gnu.org,
pierre-emmanuel.patry at embecosm dot com
Target Milestone: ---
```
/home/apinski/src/upstream-gcc-match/gcc/gcc/rust/checks/errors/borrowck/rust-bir-place.h:
In member function ‘Rust::BIR::PlaceId
Rust::BIR::PlaceDB::lookup_or_add_variable(Rust::NodeId,
Rust::TyTy::BaseType*)’:
/home/apinski/src/upstream-gcc-match/gcc/gcc/rust/checks/errors/borrowck/rust-bir-place.h:422:28:
warning: narrowing conversion of
‘(((Rust::BIR::PlaceDB*)this)->Rust::BIR::PlaceDB::places.Rust::BIR::IndexVec<Rust::BIR::PlaceId,
Rust::BIR::Place>::size() - 1)’ from ‘size_t’ {aka ‘long unsigned int’} to
‘uint32_t’ {aka ‘unsigned int’} [-Wnarrowing]
422 | return {places.size () - 1};
| ~~~~~~~~~~~~~~~^~~
```
It would be useful to get this fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.