}
const Resolver::PathProbeCandidate *selectedCandidate = nullptr;
- rust_debug_loc (expr_locus, "resolved to %lu candidates", candidates.size ());
+ rust_debug_loc (expr_locus, "resolved to %lu candidates",
+ (unsigned long) candidates.size ());
// filter for the possible case of non fn type items
std::set<Resolver::PathProbeCandidate> filteredFunctionCandidates;
if (array == nullptr)
return {};
- rust_debug ("Found %lu procedural macros", array->length);
+ rust_debug ("Found %lu procedural macros", (unsigned long) array->length);
return std::vector<ProcMacro::Procmacro> (array->macros,
array->macros + array->length);
auto candidate = *candidates.begin ();
rust_debug_loc (expr.get_method_name ().get_locus (),
- "resolved method to: {%u} {%s} with [%zu] adjustments",
+ "resolved method to: {%u} {%s} with [%lu] adjustments",
candidate.candidate.ty->get_ref (),
candidate.candidate.ty->debug_str ().c_str (),
- candidate.adjustments.size ());
+ (unsigned long) candidate.adjustments.size ());
// Get the adjusted self
Adjuster adj (receiver_tyty);