We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d59191b commit 89d8572Copy full SHA for 89d8572
1 file changed
cpp2rust/converter/converter.cpp
@@ -3048,7 +3048,7 @@ std::string Converter::GetDefaultAsStringFallback(clang::QualType qual_type) {
3048
if (auto record = qual_type->getAsRecordDecl();
3049
record && in_const_initializer_) {
3050
if (auto cxx = clang::dyn_cast<clang::CXXRecordDecl>(record)) {
3051
- assert(GetUserDefinedDefaultConstructor(cxx) == nullptr &&
+ ENSURE(GetUserDefinedDefaultConstructor(cxx) == nullptr &&
3052
"Default initializing globals using default constructor is not "
3053
"supported");
3054
}
0 commit comments