[dev-servo] Feature `debugmozjs` includes `js/debugmozjs` which is neither a dependency nor another feature

2014-10-24 Thread Josh Matthews
A recently merged PR enabled optional debug SpiderMonkey builds, but it also requires you to bootstrap your Cargo again before you can continue building master. ../mach bootstrap-cargo --force Sorry about the inconvenience. Cheers, Josh ___ dev-serv

Re: [dev-servo] Question about a certain line of code in Servo

2014-10-24 Thread Simon Sapin
On 24/10/14 17:19, Gilles Leblanc wrote: Declaration_(Declaration{ location: l, name: n, value: v, important: i}) => { The code is doing some pattern matching. `_` normally matches against every other case. `_` here is part of the `Declaration_` name, not a pattern of its own. `Declaration_`

Re: [dev-servo] Question about a certain line of code in Servo

2014-10-24 Thread Josh Matthews
This is an example of the lengths to which pattern matching can be taken in Rust. There's an enum variant named Declaration_ which contains a value of type Declaration. The code you quoted is equivalent to the following: Declaration_(decl) => { let l = decl.location; let n = decl.name; l

[dev-servo] Question about a certain line of code in Servo

2014-10-24 Thread Gilles Leblanc
Hello, I'm having some problems understanding the following line of code in the servo codebase: https://github.com/servo/servo/blob/master/components/style/properties/mod.rs.mako#L1524 Declaration_(Declaration{ location: l, name: n, value: v, important: i}) => { The code is doing some pattern ma