From da5d6cc6e1a7ab82094345b0f4eb3d7206437c0a Mon Sep 17 00:00:00 2001 From: Douglas Johnson Date: Sat, 20 Apr 2013 12:34:52 -0600 Subject: [PATCH 1/2] Allow unused_variable in Codegen output. Issue #386 --- src/servo/dom/bindings/codegen/CodegenRust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servo/dom/bindings/codegen/CodegenRust.py b/src/servo/dom/bindings/codegen/CodegenRust.py index 7bd217569ea..fc59fea93b0 100644 --- a/src/servo/dom/bindings/codegen/CodegenRust.py +++ b/src/servo/dom/bindings/codegen/CodegenRust.py @@ -2142,7 +2142,7 @@ class CGImports(CGWrapper): # TODO imports to cover descriptors, etc. def _useString(imports): - return '#[allow(unused_imports)];' + ''.join(['use %s;\n' % i for i in imports]) + '\n' + return '#[allow(unused_imports,unused_variable)];' + ''.join(['use %s;\n' % i for i in imports]) + '\n' CGWrapper.__init__(self, child, declarePre=_useString(sorted(declareImports))) From 37ad708a1ffd3a5cb2bf095294370439fd7d360d Mon Sep 17 00:00:00 2001 From: Douglas Johnson Date: Sat, 20 Apr 2013 15:42:14 -0600 Subject: [PATCH 2/2] Allow environment set CFLAGS to propagate to sub components Issue #168 --- Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 5bb15c760dd..13e96c37d95 100644 --- a/Makefile.in +++ b/Makefile.in @@ -93,7 +93,7 @@ rust: $(CFG_RUSTC) define DEF_SUBMODULE_VARS DEPS_$(1) = -CFLAGS_$(1) = -O2 +CFLAGS_$(1) = $$(CFLAGS) # any "done" dummy files must be named libSOMETHING.dummy. # # We can't auto-compute this, because some modules have lib* prefix in