diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-28 16:16:08 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:34 +0100 |
commit | 030786a9680b0206480ebda372c1fb5d2aa19a59 (patch) | |
tree | be0406f0986bdfac63f9fff1827c2da9ccfb68cb /gcc | |
parent | 5c9b490bc281f0819a3c2e199f5e7048694ce6cc (diff) | |
download | gcc-030786a9680b0206480ebda372c1fb5d2aa19a59.zip gcc-030786a9680b0206480ebda372c1fb5d2aa19a59.tar.gz gcc-030786a9680b0206480ebda372c1fb5d2aa19a59.tar.bz2 |
gccrs: collector: Fix abi output
Abi did output as several tokens instead of a fixed string.
gcc/rust/ChangeLog:
* ast/rust-ast-collector.cc (TokenCollector::visit): Fix abit
output format.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
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 ())); } } } |