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)

defect

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

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
Severity: -- → S3
Priority: -- → P3
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: