Auto merge of #8966 - GuillaumeGomez:patch-1, r=nox

Fix invalid dictionary inheritance

Needed by #8882.

cc @nox

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8966)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-12-14 17:08:23 +05:30
commit 201b5c9820

View file

@ -1011,7 +1011,8 @@ def getJSToNativeConversionInfo(type, descriptorProvider, failureCode=None,
# There are no nullable dictionaries
assert not type.nullable()
typeName = CGDictionary.makeDictionaryName(type.inner)
typeName = "%s::%s" % (CGDictionary.makeModuleName(type.inner),
CGDictionary.makeDictionaryName(type.inner))
declType = CGGeneric(typeName)
template = ("match %s::new(cx, ${val}) {\n"
" Ok(dictionary) => dictionary,\n"