Lines Matching refs:other

236   def same_flags(self, other):  argument
240 return (not self.errors and not other.errors and
241 self.edition == other.edition and
242 self.cap_lints == other.cap_lints and
243 self.emit_list == other.emit_list and
244 self.core_externs == other.core_externs and
245 self.codegens == other.codegens and
246 self.features == other.features and
247 self.static_libs == other.static_libs and
248 self.shared_libs == other.shared_libs and self.cfgs == other.cfgs)
250 def merge_host_device(self, other): argument
252 return (self.crate_name == other.crate_name and
253 self.crate_types == other.crate_types and
254 self.main_src == other.main_src and
256 (self.stem == other.stem or self.crate_types == ['test']) and
257 self.root_pkg == other.root_pkg and not self.skip_crate() and
258 self.same_flags(other))
260 def merge_test(self, other): argument
265 return (self.crate_types == other.crate_types and
266 self.crate_types == ['test'] and self.root_pkg == other.root_pkg and
268 other.crate_name == test_base_name(other.main_src) and
271 self.host_supported == other.host_supported and
272 self.device_supported == other.device_supported) and
273 self.same_flags(other))
275 def merge(self, other, outf_name): argument
280 should_merge_host_device = self.merge_host_device(other)
283 should_merge_test = self.merge_test(other)
288 other.outf = outf
289 self.do_merge(other, should_merge_test)
293 def do_merge(self, other, should_merge_test): argument
299 other.dump_debug_info()
301 self.has_warning = self.has_warning or other.has_warning
303 self.target = other.target
308 self.srcs.append(other.main_src)