Comments (3)
It appears that this happens because the parser consider 0.0 as floating point number rather than two index operators. Do we need to parse indices differently (by disabling float checking, disallowing index beginning with 0, etc.)?
https://doc.rust-lang.org/reference/tokens.html#tuple-index
from gccrs.
It appears that this happens because the parser consider 0.0 as floating point number rather than two index operators. Do we need to parse indices differently (by disabling float checking, disallowing index beginning with 0, etc.)? https://doc.rust-lang.org/reference/tokens.html#tuple-index
We should look if #2694 fixes the issue then
from gccrs.
#2694 Indeed fixes a part of this code, here is the updated error message (afbd2a4):
./test.rs:5:22: error: expecting ‘;’ but ‘integer literal’ found
5 | let _ = tuple.0. 0;
| ^
./test.rs:5:5: error: failed to parse statement or expression in block expression
5 | let _ = tuple.0. 0;
| ^~~
./test.rs:5:22: error: unrecognised token ‘integer literal’ for start of item
5 | let _ = tuple.0. 0;
from gccrs.
Related Issues (20)
- Impl block after macro expansion triggers macro expansion recursion limit HOT 1
- Unknown reference for resolved name `Self` in impl of `Clone` for `!`
- ICE when implementing `Default` for `()`
- Add `va_list` lang item
- Name resolve `#[fundamental]` attribute properly
- Handle list of const intrinsics properly for 1.49
- Add `discriminant_kind` lang item
- Add `#[rustc_specialization_trait]` attribute HOT 1
- Add `#[rustc_unsafe_specialization_marker]` attribute
- Prevent `#[may_dangle]` attribute from being used in safe impl
- ICE when on invalid-code when construction enum
- Do not link with `-ldl` and `-lpthread` unless necessary
- Handle outer attributes properly for inline assembly
- Improve `-ldl -lpthread` checks in `./configure`
- Safe guard InlineAsm-related structs
- Remove unnecessary #include from rust-expr.h HOT 2
- Fully incorporate tl::expected into InlineAsm parsing
- asm! macro failed to exhaustively parse all of options(), clobber_abis() and register operands
- Typechecking of asm! failed in `let _` HOT 1
- Add ExprType::InlineAsm variant to ExprType enum HOT 1
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.