FTBFS thunderbird using rust 1.89.0
Categories
(Thunderbird :: Untriaged, defect)
Tracking
(Not tracked)
People
(Reporter: rautyrauty, Unassigned)
Details
Attachments
(1 file)
|
359.64 KB,
text/x-log
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0
Steps to reproduce:
Bug is not reproducible with rust 1.88.0
See thunderbird-142.0-alt1-build.log
Actual results:
See thunderbird-142.0-alt1-build.log
2:57.62 error: implicit autoref creates a reference to the dereference of a raw pointer
2:57.62 --> /usr/src/RPM/BUILD/thunderbird-142.0/third_party/rust/allocator-api2/src/stable/vec/mod.rs:1902:30
2:57.62 |
2:57.62 1902 | let count = unsafe { (*other).len() };
2:57.62 | ^^-----^^^^^^^
2:57.62 | |
2:57.62 | this raw pointer has type *const [T]
2:57.62 |
2:57.62 = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements
2:57.62 note: autoref is being applied to this expression, resulting in: &[T]
2:57.62 --> /usr/src/RPM/BUILD/thunderbird-142.0/third_party/rust/allocator-api2/src/stable/vec/mod.rs:1902:30
2:57.62 |
2:57.62 1902 | let count = unsafe { (*other).len() };
2:57.62 | ^^^^^^^^
2:57.62 note: method calls to len require a reference
2:57.62 --> /usr/src/RPM/BUILD/rust-1.89.0/library/core/src/slice/mod.rs:116:5
2:57.62 = note: #[deny(dangerous_implicit_autorefs)] on by default
2:57.63 help: try using a raw pointer method instead; or if this reference is intentional, make it explicit
2:57.63 |
2:57.63 1902 | let count = unsafe { (&(*other)).len() };
2:57.63 | ++ +
2:57.71 error: could not compile allocator-api2 (lib) due to 1 previous error
2:57.71 warning: build failed, waiting for other jobs to finish...
2:59.34 gmake[4]: Entering directory '/usr/src/RPM/BUILD/thunderbird-142.0/objdir/comm/third_party/bzip2'
2:59.34 comm/third_party/bzip2
Expected results:
The build was successful.
Updated•1 year ago
|
Description
•