Skip to content

Commit 57f4088

Browse files
committed
[Demangle][Rust] Speculative fix for bot build failure
> error: ‘InType’ is not a class, namespace, or enumeration
1 parent 4fedb3a commit 57f4088

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Demangle/RustDemangle.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ bool Demangler::demangle(StringView Mangled) {
110110
}
111111
Input = Mangled;
112112

113-
demanglePath(InType::No);
113+
demanglePath(rust_demangle::InType::No);
114114

115115
// FIXME parse optional <instantiating-crate>.
116116

@@ -160,15 +160,15 @@ void Demangler::demanglePath(InType InType) {
160160
print("<");
161161
demangleType();
162162
print(" as ");
163-
demanglePath(InType::Yes);
163+
demanglePath(rust_demangle::InType::Yes);
164164
print(">");
165165
break;
166166
}
167167
case 'Y': {
168168
print("<");
169169
demangleType();
170170
print(" as ");
171-
demanglePath(InType::Yes);
171+
demanglePath(rust_demangle::InType::Yes);
172172
print(">");
173173
break;
174174
}
@@ -211,7 +211,7 @@ void Demangler::demanglePath(InType InType) {
211211
case 'I': {
212212
demanglePath(InType);
213213
// Omit "::" when in a type, where it is optional.
214-
if (InType == InType::No)
214+
if (InType == rust_demangle::InType::No)
215215
print("::");
216216
print("<");
217217
for (size_t I = 0; !Error && !consumeIf('E'); ++I) {
@@ -456,7 +456,7 @@ void Demangler::demangleType() {
456456
}
457457
default:
458458
Position = Start;
459-
demanglePath(InType::Yes);
459+
demanglePath(rust_demangle::InType::Yes);
460460
break;
461461
}
462462
}

0 commit comments

Comments
 (0)