Closed Bug 1680171 Opened 3 years ago Closed 3 years ago

error: attribute should be applied to a function or static

Categories

(Firefox :: Installer, defect)

defect

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

Building with rust 1.48 with warnings as errors (i.e. automation) fails with:

error: attribute should be applied to a function or static
   --> toolkit/mozapps/defaultagent/rust/src/lib.rs:111:5
    | 
111 |     #[no_mangle]
    |     ^^^^^^^^^^^^
112 |     static gWinEventLogSourceName: *const u16; 
    |     ------------------------------------------ not a function or static
    | 
    = note: `-D unused-attributes` implied by `-D warnings`
    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
error: aborting due to previous error
Blocks: 1680172
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/52c68bee8952
Remove unnecessary no_mangle attribute. r=nalexander
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: