Closed
Bug 1966563
Opened 1 year ago
Closed 1 year ago
[rustc 1.89] Perma error: implicit autoref creates a reference to the dereference of a raw pointer
Categories
(Firefox Build System :: General, defect, P5)
Firefox Build System
General
Tracking
(firefox140 fixed)
RESOLVED
FIXED
140 Branch
| Tracking | Status | |
|---|---|---|
| firefox140 | --- | fixed |
People
(Reporter: intermittent-bug-filer, Assigned: glandium)
References
Details
Attachments
(1 external file)
Filed by: mh [at] glandium.org
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=508294463&repo=toolchains
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/F9pX--KlSiqHr3vk3qQ9lw/runs/0/artifacts/public/logs/live_backing.log
[task 2025-05-15T00:38:34.929Z] 00:38:34 ERROR - error: implicit autoref creates a reference to the dereference of a raw pointer
[task 2025-05-15T00:38:34.930Z] 00:38:34 INFO - --> third_party/rust/allocator-api2/src/stable/vec/mod.rs:1902:30
[task 2025-05-15T00:38:34.930Z] 00:38:34 INFO - |
[task 2025-05-15T00:38:34.930Z] 00:38:34 INFO - 1902 | let count = unsafe { (*other).len() };
[task 2025-05-15T00:38:34.930Z] 00:38:34 INFO - | ^^^^^^^^^^^^^^
[task 2025-05-15T00:38:34.930Z] 00:38:34 INFO - |
[task 2025-05-15T00:38:34.931Z] 00:38:34 INFO - = note: creating a reference requires the pointer target to be valid and imposes aliasing requirements
[task 2025-05-15T00:38:34.931Z] 00:38:34 INFO - = note: `-D dangerous-implicit-autorefs` implied by `-D warnings`
[task 2025-05-15T00:38:34.931Z] 00:38:34 INFO - = help: to override `-D warnings` add `#[allow(dangerous_implicit_autorefs)]`
[task 2025-05-15T00:38:34.931Z] 00:38:34 INFO - help: try using a raw pointer method instead; or if this reference is intentional, make it explicit
[task 2025-05-15T00:38:34.932Z] 00:38:34 INFO - |
[task 2025-05-15T00:38:34.932Z] 00:38:34 INFO - 1902 | let count = unsafe { (&(*other)).len() };
[task 2025-05-15T00:38:34.932Z] 00:38:34 INFO - | ++ +
[task 2025-05-15T00:38:34.932Z] 00:38:34 ERROR - error: could not compile `allocator-api2` (lib) due to 1 previous error
| Assignee | ||
Comment 1•1 year ago
|
||
Because we're patching the third-party rure crate, it's considered
first-party, and warnings are turned into errors, but what we really
want is for warnings to be ignored like other third party crates.
Updated•1 year ago
|
Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
| Assignee | ||
Updated•1 year ago
|
Blocks: rustc-1.89
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/9718326ac449
Allow warnings in allocator-api2. r=firefox-build-system-reviewers,ahochheiden
Comment 3•1 year ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox140:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•