Closed Bug 1716470 Opened 3 years ago Closed 3 years ago

unresolved import `std::ptr::addr_of_mut` when building mozwer with rustc 1.48.0

Categories

(Toolkit :: Crash Reporting, defect)

defect

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox89 --- unaffected
firefox90 --- unaffected
firefox91 --- fixed

People

(Reporter: emilio, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

I had to do a win build today:

4:51.04    Compiling mozwer_s v0.1.0 (C:\mozilla-central\mozilla-unified\toolkit\crashreporter\mozwer-rust)
 4:51.12 error[E0432]: unresolved import `std::ptr::addr_of_mut`
 4:51.12   --> toolkit\crashreporter\mozwer-rust\lib.rs:20:16
 4:51.12    |
 4:51.12 20 | use std::ptr::{addr_of_mut, null, null_mut};
 4:51.12    |                ^^^^^^^^^^^ no `addr_of_mut` in `ptr`
 4:51.12 error: cannot determine resolution for the macro `addr_of_mut`
 4:51.12    --> toolkit\crashreporter\mozwer-rust\lib.rs:193:13
 4:51.12     |
 4:51.12 193 |             addr_of_mut!(data) as *mut _,
 4:51.12     |             ^^^^^^^^^^^
 4:51.12     |
 4:51.12     = note: import resolution is stuck, try simplifying macro imports
 4:51.12 error: cannot determine resolution for the macro `addr_of_mut`
 4:51.12    --> toolkit\crashreporter\mozwer-rust\lib.rs:228:13
 4:51.12     |
 4:51.12 228 |             addr_of_mut!(data) as *mut _,
 4:51.12     |             ^^^^^^^^^^^
 4:51.12     |
 4:51.12     = note: import resolution is stuck, try simplifying macro imports

It seems addr_of_mut is newer than that, but then probably configure should fail?

We're going to bump up to min 1.50 or 1.51 by the end of the week, hopefully: Bug 1715282

It needs to be 1.51 then, for addr_of_mut to be available, I guess :)

Regressed by: 1682518
No longer regressed by: 1711418
Has Regression Range: --- → yes
Depends on: 1715282

Set release status flags based on info from the regressing bug 1682518

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.