Closed Bug 1900504 Opened 5 months ago Closed 5 months ago

[rustc-1.80] Perma error[E0282]: type annotations needed for `Box<_>`

Categories

(Core :: General, defect, P5)

defect

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: afranchuk)

References

Details

Attachments

(1 file)

Filed by: mh [at] glandium.org
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=460933413&repo=toolchains
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/czPuVdNmQY6-koIczKTlbQ/runs/0/artifacts/public/logs/live_backing.log


[task 2024-06-03T23:15:26.138Z] 23:15:26    ERROR -  error[E0282]: type annotations needed for `Box<_>`
[task 2024-06-03T23:15:26.138Z] 23:15:26     INFO -    --> /opt/worker/tasks/task_171225436694629/checkouts/gecko/third_party/rust/time/src/format_description/parse/mod.rs:83:9
[task 2024-06-03T23:15:26.138Z] 23:15:26     INFO -     |
[task 2024-06-03T23:15:26.138Z] 23:15:26     INFO -  83 |     let items = format_items
[task 2024-06-03T23:15:26.138Z] 23:15:26     INFO -     |         ^^^^^
[task 2024-06-03T23:15:26.138Z] 23:15:26     INFO -  ...
[task 2024-06-03T23:15:26.138Z] 23:15:26     INFO -  86 |     Ok(items.into())
[task 2024-06-03T23:15:26.138Z] 23:15:26     INFO -     |              ---- type must be known at this point
[task 2024-06-03T23:15:26.138Z] 23:15:26     INFO -     |
[task 2024-06-03T23:15:26.138Z] 23:15:26     INFO -  help: consider giving `items` an explicit type, where the placeholders `_` are specified
[task 2024-06-03T23:15:26.139Z] 23:15:26     INFO -     |
[task 2024-06-03T23:15:26.139Z] 23:15:26     INFO -  83 |     let items: Box<_> = format_items
[task 2024-06-03T23:15:26.139Z] 23:15:26     INFO -     |              ++++++++
[task 2024-06-03T23:15:27.161Z] 23:15:27     INFO -  For more information about this error, try `rustc --explain E0282`.
[task 2024-06-03T23:15:27.180Z] 23:15:27     INFO -  warning: `time` (lib) generated 10 warnings
[task 2024-06-03T23:15:27.180Z] 23:15:27    ERROR -  error: could not compile `time` (lib) due to 1 previous error; 10 warnings emitted
Assignee: nobody → mh+mozilla
Blocks: rustc-1.80
Summary: Perma error[E0282]: type annotations needed for `Box<_>` → [rustc-1.80] Perma error[E0282]: type annotations needed for `Box<_>`

Alex, could you split the time update off bug 1743983 and bump it to 0.3.36? That would fix this issue.

Flags: needinfo?(afranchuk)
Assignee: mh+mozilla → afranchuk

Working on it now.

Flags: needinfo?(afranchuk)
Pushed by afranchuk@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a9a0b7c1e8a2 Update the time crate to version 0.3.36 r=glandium,supply-chain-reviewers
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch

Do you think this patch might cause the following regression?

Perfherder has detected a build_metrics performance change from push cd09151a1c46cba9d56b45684eebc6465a5e869c.

Regressions:

Ratio Test Platform Options Absolute values (old vs new)
0.13% installer size osx-aarch64-shippable aarch64 nightly 92,055,786.08 -> 92,175,068.50

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests. Please follow our guide to handling regression bugs and let us know your plans within 3 business days, or the patch(es) may be backed out in accordance with our regression policy.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 632

For more information on performance sheriffing please see our FAQ.

Flags: needinfo?(afranchuk)

It's hard to say (it's an update to third-party code after all), but based on the net ~2.5 kLOC change, I think it slightly unlikely (it's unlikely all that code is used by us, so it would be removed). Not that LOC is strictly a determining factor in binary size, but it can provide some guidance. If no other bugs seem a likely cause, then you can attribute that change to this bug (it is certainly a possible cause). However this won't be backed out, so we'd accept it as a necessary regression.

Flags: needinfo?(afranchuk)
Regressions: 1902249
No longer regressions: 1902249
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: