Closed Bug 1432514 Opened 8 years ago Closed 8 years ago

Can't compile bindings.rs for the style crate due to an empty extern declaration

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
blocker

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: hsivonen, Unassigned)

Details

Steps to reproduce: 1) On Ubuntu 16.04, run ./mach bootstrap to have the latest clang and rustc. 2) ./mach build Actual results: 3:18.64 Compiling style v0.0.1 (file:///opt/Projects/gecko/servo/components/style) 3:22.80 Compiling webrender_bindings v0.1.0 (file:///opt/Projects/gecko/gfx/webrender_bindings) 4:02.31 error: expected one of `crate`, `fn`, `pub`, `static`, `type`, or `}`, found `;` 4:02.31 --> /opt/Projects/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/x86_64-unknown-linux-gnu/debug/build/style-b3a45225c6162ac0/out/gecko/bindings.rs:588:5 4:02.31 | 4:02.31 587 | extern "C" { 4:02.31 | - expected one of `crate`, `fn`, `pub`, `static`, `type`, or `}` here 4:02.31 588 | ; 4:02.31 | ^ unexpected token 4:02.31 4:02.65 error: Could not compile `style`. The generated source has this: extern "C" { ; }
Might be old rustfmt. I'll check.
Fixed by upgrading rustfmt.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.