Closed Bug 1731708 Opened 3 years ago Closed 3 years ago

[rust 1.56] error: trailing semicolon in macro used in expression position

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

[task 2021-09-21T01:42:22.080Z] error: trailing semicolon in macro used in expression position
[task 2021-09-21T01:42:22.080Z]     --> wrench/src/yaml_frame_reader.rs:33:10
[task 2021-09-21T01:42:22.080Z]      |
[task 2021-09-21T01:42:22.080Z] 33   |           };
[task 2021-09-21T01:42:22.080Z]      |            ^
[task 2021-09-21T01:42:22.080Z] ...
[task 2021-09-21T01:42:22.080Z] 1006 |           info.clip_rect = try_intersect!(
[task 2021-09-21T01:42:22.080Z]      |  __________________________-
[task 2021-09-21T01:42:22.080Z] 1007 | |             item["bounds"].as_rect().expect("hit-test type must have bounds"),
[task 2021-09-21T01:42:22.080Z] 1008 | |             &info.clip_rect
[task 2021-09-21T01:42:22.080Z] 1009 | |         );
[task 2021-09-21T01:42:22.080Z]      | |_________- in this macro invocation
[task 2021-09-21T01:42:22.080Z]      |
[task 2021-09-21T01:42:22.081Z]      = note: `-D semicolon-in-expressions-from-macros` implied by `-D warnings`
[task 2021-09-21T01:42:22.081Z]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[task 2021-09-21T01:42:22.081Z]      = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
[task 2021-09-21T01:42:22.081Z]      = note: this error originates in the macro `try_intersect` (in Nightly builds, run with -Z macro-backtrace for more info)
[task 2021-09-21T01:42:22.081Z] 
[task 2021-09-21T01:42:22.081Z] error: trailing semicolon in macro used in expression position
[task 2021-09-21T01:42:22.081Z]     --> wrench/src/yaml_frame_reader.rs:33:10
[task 2021-09-21T01:42:22.081Z]      |
[task 2021-09-21T01:42:22.081Z] 33   |           };
[task 2021-09-21T01:42:22.081Z]      |            ^
[task 2021-09-21T01:42:22.081Z] ...
[task 2021-09-21T01:42:22.081Z] 2215 |           info.clip_rect = try_intersect!(
[task 2021-09-21T01:42:22.081Z]      |  __________________________-
[task 2021-09-21T01:42:22.081Z] 2216 | |             self.resolve_rect(&item["bounds"]),
[task 2021-09-21T01:42:22.081Z] 2217 | |             &info.clip_rect
[task 2021-09-21T01:42:22.081Z] 2218 | |         );
[task 2021-09-21T01:42:22.081Z]      | |_________- in this macro invocation
[task 2021-09-21T01:42:22.081Z]      |
[task 2021-09-21T01:42:22.081Z]      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
[task 2021-09-21T01:42:22.081Z]      = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
[task 2021-09-21T01:42:22.081Z]      = note: this error originates in the macro `try_intersect` (in Nightly builds, run with -Z macro-backtrace for more info)
[task 2021-09-21T01:42:22.081Z] 
[task 2021-09-21T01:42:22.552Z] error: could not compile `wrench` due to 2 previous errors
[task 2021-09-21T01:42:22.552Z] 
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/9bf043a24e6a
Remove semicolon in try_intersect macro. r=gfx-reviewers,jrmuizel
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
Blocks: 1736459
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: