Upgrade to rustc 0.8-pre (0ac3e02 2013-08-30 05:45:45 -0700)

This commit is contained in:
Simon Sapin 2013-08-30 17:15:21 +01:00
parent 7ea10ff8af
commit 0c726b4581
11 changed files with 30 additions and 24 deletions

View file

@ -1247,10 +1247,10 @@ for (uint32_t i = 0; i < length; ++i) {
dataLoc = "${declName}"
#XXXjdm conversionBehavior should be used
template = (
"match JSValConvertible::from_jsval::<%s>(${val}) {\n"
"match JSValConvertible::from_jsval(${val}) {\n"
" None => return 0,\n"
" Some(v) => %s = v\n"
"}" % (typeName, dataLoc))
"}" % (dataLoc,))
declType = CGGeneric(typeName)
if (defaultValue is not None and
# We already handled IDLNullValue, so just deal with the other ones