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 5cbf888 commit b9286a7Copy full SHA for b9286a7
src/comp/middle/trans.rs
@@ -404,8 +404,20 @@ fn sanitize(str s) -> str {
404
if (c == ('@' as u8)) {
405
result += "boxed_";
406
} else {
407
- auto v = vec(c);
408
- result += _str.from_bytes(v);
+ if (c == (',' as u8)) {
+ result += "_";
409
+ } else {
410
+ if (c == ('{' as u8) || c == ('(' as u8)) {
411
+ result += "_of_";
412
413
+ if (c != 10u8 && c != ('}' as u8) && c != (')' as u8) &&
414
+ c != (' ' as u8) && c != ('\t' as u8) &&
415
+ c != (';' as u8)) {
416
+ auto v = vec(c);
417
+ result += _str.from_bytes(v);
418
+ }
419
420
421
}
422
423
ret result;
0 commit comments