Code Monkey home page Code Monkey logo

Comments (8)

braw-lee avatar braw-lee commented on May 23, 2024 1

I want to fix this

from gccrs.

braw-lee avatar braw-lee commented on May 23, 2024 1

yes, looks like async is supported

this makes me think there is an unhandled case for async token when we are inside a trait
I will look into it in a few days

from gccrs.

braw-lee avatar braw-lee commented on May 23, 2024

I added a check and test for async function inside a trait but gccrs fails to recognize async as a token inside trait impl
test.rs:6:5: error: unrecognised token ‘async’ for item in trait impl

6 | async fn f() -> u32 {
| ^~~~~
test.rs:6:5: error: failed to parse trait impl item in trait impl
test.rs:6:5: error: failed to parse item in crate

from gccrs.

braw-lee avatar braw-lee commented on May 23, 2024

is async token not fully supported yet? I was trying to step through the lexer with gdb to find out but for some reason it skips over some code even with -O0 flag enabled

from gccrs.

P-E-P avatar P-E-P commented on May 23, 2024

is async token not fully supported yet? I was trying to step through the lexer with gdb to find out but for some reason it skips over some code even with -O0 flag enabled

AFAIK async token is supported by the lexer, we already have multiple async nodes in our ast. For example the parse_async_item function make use of it indirectly.

from gccrs.

tschwinge avatar tschwinge commented on May 23, 2024

@P-E-P, @braw-lee, @CohenArthur, is it correct that this issue got closed via #2944 "Merge upstream, 2024-03-09" (why wasn't it then already closed via a GCC/Rust master branch commit?), or remains there work to be done here?

from gccrs.

braw-lee avatar braw-lee commented on May 23, 2024

#2779
the second commit of this PR fixed this issue

from gccrs.

braw-lee avatar braw-lee commented on May 23, 2024

I think it wasn't closed because I didn't mention the issue #2767 in the message

from gccrs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.