mirror of
https://github.com/servo/servo.git
synced 2025-06-10 01:23:13 +00:00
Do not allow unreachable_code in codegen anymore
This commit is contained in:
parent
3c1c315838
commit
cf6975f2a3
2 changed files with 2 additions and 6 deletions
|
@ -1625,10 +1625,6 @@ class CGImports(CGWrapper):
|
||||||
"""
|
"""
|
||||||
if ignored_warnings is None:
|
if ignored_warnings is None:
|
||||||
ignored_warnings = [
|
ignored_warnings = [
|
||||||
# Allow unreachable_code because we use 'break' in a way that
|
|
||||||
# sometimes produces two 'break's in a row. See for example
|
|
||||||
# CallbackMember.getArgConversions.
|
|
||||||
'unreachable_code',
|
|
||||||
'non_camel_case_types',
|
'non_camel_case_types',
|
||||||
'non_upper_case_globals',
|
'non_upper_case_globals',
|
||||||
'unused_imports',
|
'unused_imports',
|
||||||
|
|
|
@ -168,12 +168,12 @@ pub mod codegen {
|
||||||
pub mod PrototypeList {
|
pub mod PrototypeList {
|
||||||
include!(concat!(env!("OUT_DIR"), "/PrototypeList.rs"));
|
include!(concat!(env!("OUT_DIR"), "/PrototypeList.rs"));
|
||||||
}
|
}
|
||||||
#[allow(unreachable_code, non_camel_case_types, non_upper_case_globals,
|
#[allow(non_camel_case_types, non_upper_case_globals,
|
||||||
unused_imports, unused_variables, unused_assignments)]
|
unused_imports, unused_variables, unused_assignments)]
|
||||||
pub mod RegisterBindings {
|
pub mod RegisterBindings {
|
||||||
include!(concat!(env!("OUT_DIR"), "/RegisterBindings.rs"));
|
include!(concat!(env!("OUT_DIR"), "/RegisterBindings.rs"));
|
||||||
}
|
}
|
||||||
#[allow(unreachable_code, non_camel_case_types, non_upper_case_globals,
|
#[allow(non_camel_case_types, non_upper_case_globals,
|
||||||
unused_imports, unused_variables, unused_assignments)]
|
unused_imports, unused_variables, unused_assignments)]
|
||||||
pub mod UnionTypes {
|
pub mod UnionTypes {
|
||||||
include!(concat!(env!("OUT_DIR"), "/UnionTypes.rs"));
|
include!(concat!(env!("OUT_DIR"), "/UnionTypes.rs"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue