diff options
Diffstat (limited to 'src/comp/front')
| -rw-r--r-- | src/comp/front/parser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 7bd34fdf..32bcf6ef 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -1818,8 +1818,8 @@ impure fn parse_item_native_mod(parser p) -> @ast.item { auto abi = ast.native_abi_cdecl; if (p.peek() != token.MOD) { auto t = parse_str_lit(p); - if (t == "cdecl") { - } else if (t == "rust") { + if (_str.eq(t, "cdecl")) { + } else if (_str.eq(t, "rust")) { abi = ast.native_abi_rust; } else { p.err("unsupported abi: " + t); |