mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Merge pull request #387 from Douglasj/master
Includes unused_variable in Codegen
This commit is contained in:
commit
c1cfe575b7
2 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ rust: $(CFG_RUSTC)
|
||||||
|
|
||||||
define DEF_SUBMODULE_VARS
|
define DEF_SUBMODULE_VARS
|
||||||
DEPS_$(1) =
|
DEPS_$(1) =
|
||||||
CFLAGS_$(1) = -O2
|
CFLAGS_$(1) = $$(CFLAGS)
|
||||||
# any "done" dummy files must be named libSOMETHING.dummy.
|
# any "done" dummy files must be named libSOMETHING.dummy.
|
||||||
#
|
#
|
||||||
# We can't auto-compute this, because some modules have lib* prefix in
|
# We can't auto-compute this, because some modules have lib* prefix in
|
||||||
|
|
|
@ -2142,7 +2142,7 @@ class CGImports(CGWrapper):
|
||||||
# TODO imports to cover descriptors, etc.
|
# TODO imports to cover descriptors, etc.
|
||||||
|
|
||||||
def _useString(imports):
|
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,
|
CGWrapper.__init__(self, child,
|
||||||
declarePre=_useString(sorted(declareImports)))
|
declarePre=_useString(sorted(declareImports)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue