diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast-collector.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/rust/ast/rust-ast-collector.cc b/gcc/rust/ast/rust-ast-collector.cc index f1306e7..fcd9521 100644 --- a/gcc/rust/ast/rust-ast-collector.cc +++ b/gcc/rust/ast/rust-ast-collector.cc @@ -366,10 +366,8 @@ TokenCollector::visit (FunctionQualifiers &qualifiers) push (Rust::Token::make (EXTERN_TOK, qualifiers.get_locus ())); if (qualifiers.has_abi ()) { - push (Rust::Token::make (DOUBLE_QUOTE, Location ())); - auto abi = qualifiers.get_extern_abi (); - push (Rust::Token::make_identifier (Location (), std::move (abi))); - push (Rust::Token::make (DOUBLE_QUOTE, Location ())); + push (Rust::Token::make_string (Location (), + qualifiers.get_extern_abi ())); } } } |