Comments (8)
I want to fix this
from gccrs.
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.
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.
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.
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.
@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.
#2779
the second commit of this PR fixed this issue
from gccrs.
I think it wasn't closed because I didn't mention the issue #2767 in the message
from gccrs.
Related Issues (20)
- Code to replace path separators on DOS-based filesystems is invalid HOT 2
- `#[cfg]` attribute is not handled properly on struct fields
- `#[cfg]` attribute is not handled correctly on struct field instantiations
- Handle `#[prelude_import]` attribute
- Issues when resolving public unloaded modules HOT 1
- Cannot derive both `Clone` and `Copy` on an empty struct
- PartialOrd
- PartialEq
- Ord
- Hash
- Eq
- Default
- Debug
- Copy
- Clone
- Unresolved import with external module in name resolution 2.0
- Unknown lang item: `alloc_layout`
- Unknown attribute `#[rustc_const_unstable]`
- name resolution 2.0 fails on impl function call
- Generic arguments are not disambiguated on error propagation expressions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gccrs.