Closed
Bug 1727475
Opened 3 years ago
Closed 3 years ago
[rust 1.55] error: unused borrow that must be used
Categories
(Core :: Internationalization, defect, P3)
Core
Internationalization
Tracking
()
RESOLVED
FIXED
93 Branch
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Building with rustc 1.55 beta 7 fails with
[task 2021-08-25T05:46:08.008Z] 05:46:08 INFO - --> intl/encoding_glue/src/lib.rs:366:9
[task 2021-08-25T05:46:08.008Z] 05:46:08 INFO - |
[task 2021-08-25T05:46:08.008Z] 05:46:08 INFO - 366 | / &mut (handle.as_mut_slice())[..already_validated]
[task 2021-08-25T05:46:08.008Z] 05:46:08 INFO - 367 | | .copy_from_slice(&bytes[..already_validated]);
[task 2021-08-25T05:46:08.008Z] 05:46:08 INFO - | |_________________________________________________________^
[task 2021-08-25T05:46:08.008Z] 05:46:08 INFO - |
[task 2021-08-25T05:46:08.008Z] 05:46:08 INFO - = note: `-D unused-must-use` implied by `-D warnings`
[task 2021-08-25T05:46:08.008Z] 05:46:08 INFO - error: unused borrow that must be used
[task 2021-08-25T05:46:08.008Z] 05:46:08 INFO - --> intl/encoding_glue/src/lib.rs:543:9
[task 2021-08-25T05:46:08.008Z] 05:46:08 INFO - |
[task 2021-08-25T05:46:08.009Z] 05:46:08 INFO - 543 | &mut (handle.as_mut_slice())[..valid_up_to].copy_from_slice(&bytes[..valid_up_to]);
[task 2021-08-25T05:46:08.009Z] 05:46:08 INFO - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2021-08-25T05:46:08.009Z] 05:46:08 INFO - error: could not compile `encoding_glue` due to 2 previous errors
Assignee | ||
Comment 1•3 years ago
|
||
Updated•3 years ago
|
Severity: -- → S3
Priority: -- → P3
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/760b42a1ddf5
Remove unused mut borrow. r=hsivonen
Comment 3•3 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 3 years ago
status-firefox93:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•