Skip to content

Commit 723db5a

Browse files
committed
Don't use cpp2rust:: inside the cpp2rust namespace
1 parent 1428206 commit 723db5a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

cpp2rust/converter/models/converter_refcount.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ static std::vector<const char *> printf2fmt(std::string &format) {
824824
}
825825
}
826826
}
827-
cpp2rust::verrs() << "Unknown printf format: " << format << "\n";
827+
verrs() << "Unknown printf format: " << format << "\n";
828828
assert(0);
829829
}
830830
return types;
@@ -838,9 +838,9 @@ void ConverterRefCount::ConvertPrintf(clang::CallExpr *expr) {
838838
expr->getArg(is_fprintf)->IgnoreImplicit())) {
839839
format = GetEscapedStringLiteral(str);
840840
} else {
841-
cpp2rust::verrs() << "Uknown fprintf format: ";
842-
expr->getArg(1)->dump(cpp2rust::verrs(), ctx_);
843-
cpp2rust::verrs() << "\n";
841+
verrs() << "Uknown fprintf format: ";
842+
expr->getArg(1)->dump(verrs(), ctx_);
843+
verrs() << "\n";
844844
exit(1);
845845
}
846846
bool ends_newline = format.ends_with("\\n\"");
@@ -851,7 +851,7 @@ void ConverterRefCount::ConvertPrintf(clang::CallExpr *expr) {
851851
} else if (fd == "stderr" || fd == "__stderrp") {
852852
StrCat(ends_newline ? "eprintln!(" : "eprint!(");
853853
} else {
854-
cpp2rust::verrs() << "Uknown fprintf fd: " << fd << "\n";
854+
verrs() << "Uknown fprintf fd: " << fd << "\n";
855855
exit(1);
856856
}
857857
if (ends_newline) {

cpp2rust/converter/plugins/emplace_back.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ bool Converter::emplace_back_plugin_convert(clang::CallExpr *call) {
183183
StrCat(GetUnsafeTypeAsString(elem_ty));
184184
}
185185
} else {
186-
call->dump(cpp2rust::verrs(), ctx_);
186+
call->dump(verrs(), ctx_);
187187
assert(0 && "no ctor and no pod type");
188188
return false;
189189
}

0 commit comments

Comments
 (0)