We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dbc338 commit 016676dCopy full SHA for 016676d
1 file changed
cpp2rust/converter/converter.cpp
@@ -1763,7 +1763,8 @@ bool Converter::VisitImplicitCastExpr(clang::ImplicitCastExpr *expr) {
1763
case clang::CastKind::CK_NoOp: {
1764
Convert(sub_expr);
1765
if (expr->getType()->isPointerType() &&
1766
- sub_expr->getType()->isPointerType()) {
+ sub_expr->getType()->isPointerType() &&
1767
+ !clang::isa<clang::CXXThisExpr>(expr->IgnoreImplicit())) {
1768
switch (GetConstCastType(expr->getType()->getPointeeType(),
1769
sub_expr->getType()->getPointeeType())) {
1770
case ConstCastType::MutableToConst:
0 commit comments