Closed Bug 1901905 Opened 5 months ago Closed 4 months ago

[rustc 1.80] Perma error: struct `Promise` is never constructed

Categories

(Core :: XPCOM, defect, P5)

defect

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

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

References

Details

Attachments

(1 file)

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


[task 2024-06-11T21:25:39.030Z] 21:25:39    ERROR -  error: struct `Promise` is never constructed
[task 2024-06-11T21:25:39.030Z] 21:25:39     INFO -    --> xpcom/rust/xpcom/src/promise.rs:26:12
[task 2024-06-11T21:25:39.031Z] 21:25:39     INFO -     |
[task 2024-06-11T21:25:39.031Z] 21:25:39     INFO -  26 | pub struct Promise {
[task 2024-06-11T21:25:39.032Z] 21:25:39     INFO -     |            ^^^^^^^
[task 2024-06-11T21:25:39.032Z] 21:25:39     INFO -     |
[task 2024-06-11T21:25:39.032Z] 21:25:39     INFO -     = note: `-D dead-code` implied by `-D warnings`
[task 2024-06-11T21:25:39.032Z] 21:25:39     INFO -     = help: to override `-D warnings` add `#[allow(dead_code)]`
[task 2024-06-11T21:25:39.033Z] 21:25:39    ERROR -  error: function `DomPromise_AddRef` is never used
[task 2024-06-11T21:25:39.033Z] 21:25:39     INFO -    --> xpcom/rust/xpcom/src/promise.rs:18:16
[task 2024-06-11T21:25:39.033Z] 21:25:39     INFO -     |
[task 2024-06-11T21:25:39.034Z] 21:25:39     INFO -  18 |         pub fn DomPromise_AddRef(promise: *const Promise);
[task 2024-06-11T21:25:39.034Z] 21:25:39     INFO -     |                ^^^^^^^^^^^^^^^^^
[task 2024-06-11T21:25:39.034Z] 21:25:39    ERROR -  error: function `DomPromise_Release` is never used
[task 2024-06-11T21:25:39.034Z] 21:25:39     INFO -    --> xpcom/rust/xpcom/src/promise.rs:19:16
[task 2024-06-11T21:25:39.034Z] 21:25:39     INFO -     |
[task 2024-06-11T21:25:39.035Z] 21:25:39     INFO -  19 |         pub fn DomPromise_Release(promise: *const Promise);
[task 2024-06-11T21:25:39.035Z] 21:25:39     INFO -     |                ^^^^^^^^^^^^^^^^^^
[task 2024-06-11T21:25:39.035Z] 21:25:39    ERROR -  error: function `DomPromise_RejectWithVariant` is never used
[task 2024-06-11T21:25:39.035Z] 21:25:39     INFO -    --> xpcom/rust/xpcom/src/promise.rs:20:16
[task 2024-06-11T21:25:39.036Z] 21:25:39     INFO -     |
[task 2024-06-11T21:25:39.036Z] 21:25:39     INFO -  20 |         pub fn DomPromise_RejectWithVariant(promise: *const Promise, variant: *const nsIVariant);
[task 2024-06-11T21:25:39.036Z] 21:25:39     INFO -     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2024-06-11T21:25:39.037Z] 21:25:39    ERROR -  error: function `DomPromise_ResolveWithVariant` is never used
[task 2024-06-11T21:25:39.037Z] 21:25:39     INFO -    --> xpcom/rust/xpcom/src/promise.rs:21:16
[task 2024-06-11T21:25:39.037Z] 21:25:39     INFO -     |
[task 2024-06-11T21:25:39.038Z] 21:25:39     INFO -  21 |         pub fn DomPromise_ResolveWithVariant(promise: *const Promise, variant: *const nsIVariant);
[task 2024-06-11T21:25:39.038Z] 21:25:39     INFO -     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Blocks: rustc-1.80
Assignee: nobody → mh+mozilla
Summary: Perma error: struct `Promise` is never constructed → [rustc 1.80] Perma error: struct `Promise` is never constructed

Rustc 1.80 complains it's dead code because it's never constructed, but
it's a type that is constructed from the C++'s end.

Attachment #9407092 - Attachment description: Bug 1901905 - Mark xpcom::Promise as dead code. → Bug 1901905 - Mark xpcom::Promise as allowed dead code.
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/81380415b358 Mark xpcom::Promise as allowed dead code. r=xpcom-reviewers,emilio
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: