Rip out legacy reactivity from the typechecker and HackC
[hiphop-php.git] / hphp / hack / src / oxidized / manual / global_options_impl.rs
blob5fcc8948e2bc94e6d3f4b12a6f1e98e525747a43
1 // Copyright (c) Facebook, Inc. and its affiliates.
2 //
3 // This source code is licensed under the MIT license found in the
4 // LICENSE file in the "hack" directory of this source tree.
6 use crate::{gen::global_options::GlobalOptions, i_set, s_map, s_set};
8 impl Default for GlobalOptions {
9     fn default() -> Self {
10         Self {
11             tco_experimental_features: s_set::SSet::new(),
12             tco_migration_flags: s_set::SSet::new(),
13             tco_dynamic_view: false,
14             tco_num_local_workers: None,
15             tco_parallel_type_checking_threshold: 10,
16             tco_max_typechecker_worker_memory_mb: None,
17             tco_defer_class_declaration_threshold: None,
18             tco_defer_class_memory_mb_threshold: None,
19             tco_max_times_to_defer_type_checking: None,
20             tco_prefetch_deferred_files: false,
21             tco_remote_type_check_threshold: None,
22             tco_remote_type_check: true,
23             tco_remote_worker_key: None,
24             tco_remote_check_id: None,
25             tco_remote_max_batch_size: 8000,
26             tco_remote_min_batch_size: 5000,
27             tco_num_remote_workers: 0,
28             so_remote_version_specifier: None,
29             so_remote_worker_vfs_checkout_threshold: 0,
30             so_naming_sqlite_path: None,
31             po_auto_namespace_map: vec![],
32             po_codegen: false,
33             po_deregister_php_stdlib: false,
34             po_disallow_toplevel_requires: false,
35             po_disable_nontoplevel_declarations: false,
36             po_disable_static_closures: true,
37             po_allow_unstable_features: false,
38             tco_log_inference_constraints: false,
39             tco_disallow_array_typehint: false,
40             tco_disallow_array_literal: false,
41             tco_language_feature_logging: false,
42             tco_disallow_scrutinee_case_value_type_mismatch: false,
43             tco_timeout: 0,
44             tco_disallow_invalid_arraykey: false,
45             tco_disallow_byref_dynamic_calls: false,
46             tco_disallow_byref_calls: true,
47             allowed_fixme_codes_strict: i_set::ISet::new(),
48             allowed_fixme_codes_partial: i_set::ISet::new(),
49             codes_not_raised_partial: i_set::ISet::new(),
50             log_levels: s_map::SMap::new(),
51             po_disable_lval_as_an_expression: false,
52             tco_shallow_class_decl: false,
53             po_rust_parser_errors: false,
54             tco_like_type_hints: false,
55             tco_union_intersection_type_hints: false,
56             tco_coeffects: true,
57             tco_coeffects_local: true,
58             tco_strict_contexts: true,
59             tco_like_casts: false,
60             tco_simple_pessimize: 0.0,
61             tco_complex_coercion: false,
62             tco_disable_partially_abstract_typeconsts: false,
63             error_codes_treated_strictly: i_set::ISet::new(),
64             tco_check_xhp_attribute: false,
65             tco_check_redundant_generics: false,
66             tco_disallow_unresolved_type_variables: false,
67             tco_disallow_trait_reuse: false,
68             tco_disallow_invalid_arraykey_constraint: false,
69             po_enable_class_level_where_clauses: false,
70             po_disable_legacy_soft_typehints: true,
71             po_allowed_decl_fixme_codes: i_set::ISet::new(),
72             po_allow_new_attribute_syntax: false,
73             tco_global_inference: false,
74             tco_gi_reinfer_types: vec![],
75             tco_ordered_solving: false,
76             tco_const_static_props: false,
77             po_disable_legacy_attribute_syntax: false,
78             tco_const_attribute: false,
79             po_const_default_func_args: false,
80             po_const_default_lambda_args: false,
81             po_disallow_silence: false,
82             po_abstract_static_props: false,
83             po_disable_unset_class_const: false,
84             po_parser_errors_only: false,
85             tco_check_attribute_locations: true,
86             po_disallow_func_ptrs_in_constants: false,
87             tco_error_php_lambdas: false,
88             tco_disallow_discarded_nullable_awaitables: false,
89             po_enable_xhp_class_modifier: false,
90             po_disable_xhp_element_mangling: false,
91             po_disable_xhp_children_declarations: false,
92             glean_service: String::new(),
93             glean_hostname: String::new(),
94             glean_port: 0,
95             glean_reponame: String::new(),
96             symbol_write_root_path: String::new(),
97             symbol_write_hhi_path: String::new(),
98             symbol_write_ignore_paths: vec![],
99             symbol_write_index_paths: vec![],
100             symbol_write_include_hhi: true,
101             po_enable_enum_classes: false,
102             po_disable_modes: false,
103             po_disable_hh_ignore_error: false,
104             po_disable_array: false,
105             po_disable_array_typehint: false,
106             tco_enable_systemlib_annotations: false,
107             tco_higher_kinded_types: false,
108             tco_method_call_inference: false,
109             tco_report_pos_from_reason: false,
110             tco_typecheck_sample_rate: 1.0,
111             tco_enable_sound_dynamic: false,
112             po_disallow_hash_comments: false,
113             po_disallow_fun_and_cls_meth_pseudo_funcs: false,
114             po_disallow_inst_meth: false,
115             tco_use_direct_decl_parser: false,
116             tco_ifc_enabled: vec![],
117             po_enable_enum_supertyping: false,
118             po_array_unification: false,
119             po_interpret_soft_types_as_like_types: false,
120             tco_enable_strict_string_concat_interp: false,
121             tco_ignore_unsafe_cast: false,
122             tco_readonly: false,
123         }
124     }
127 impl Eq for GlobalOptions {}
129 impl std::hash::Hash for GlobalOptions {
130     fn hash<H>(&self, _: &mut H) {
131         unimplemented!()
132     }
135 impl Ord for GlobalOptions {
136     fn cmp(&self, _: &Self) -> std::cmp::Ordering {
137         unimplemented!()
138     }