From 4c99a85c736c54f9ecddbcb1a577309c4be38edf Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 14 Dec 2015 00:53:21 +0100 Subject: [PATCH] Fix invalid dictionary inheritance --- components/script/dom/bindings/codegen/CodegenRust.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py index f947b0b2f80..1e8033c7347 100644 --- a/components/script/dom/bindings/codegen/CodegenRust.py +++ b/components/script/dom/bindings/codegen/CodegenRust.py @@ -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"