-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Make type annotation for consts optional #1110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This works very poorly with the current implementation of our type checker. I'll revisit this if I ever have time to revise that code. |
coastalwhite
pushed a commit
to coastalwhite/rust
that referenced
this issue
Aug 5, 2023
* Uncomment some i64-related instruction assertions now that LLVM supports the opcodes. * Fix the codegen for `{i,u}32x4_trunc_sat_f32x4`. This was originally introduced using `simd_cast` but that inherits LLVM's UB related to float-to-integer casts out of bounds. Since the original inception of these intrinsics in LLVM dedicated intrinsics for the wasm instructions have been added, so this swithces the implementation to using those. * Uncomment `f64x2_convert_low_i32x4` instruction assertion and add a test now that this is implemented in Wasmtime.
celinval
pushed a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
Kobzol
pushed a commit
to Kobzol/rust
that referenced
this issue
Dec 30, 2024
* Document inert vs active attributes This PR adds a subsection to the 'Syntax and AST' section describing inert vs active attributes. For consistency, I've also updated the '#[test] implementation' page to stop referring to `#[test]' as a 'built in' attribute, since that has a specific meaning defined on this page. * Update src/attributes.md Co-authored-by: Noah Lev <[email protected]> * Update src/attributes.md Co-authored-by: Noah Lev <[email protected]> * Update src/attributes.md Co-authored-by: Noah Lev <[email protected]> * Update src/attributes.md Co-authored-by: Noah Lev <[email protected]> * Update src/attributes.md Co-authored-by: pierwill <[email protected]> * Update src/test-implementation.md Co-authored-by: pierwill <[email protected]> * Update src/attributes.md Co-authored-by: pierwill <[email protected]> * Update src/test-implementation.md * Update src/test-implementation.md * Update src/test-implementation.md --------- Co-authored-by: Nilstrieb <[email protected]> Co-authored-by: Noah Lev <[email protected]> Co-authored-by: pierwill <[email protected]>
bors
pushed a commit
to rust-lang-ci/rust
that referenced
this issue
Jan 2, 2025
* Document inert vs active attributes This PR adds a subsection to the 'Syntax and AST' section describing inert vs active attributes. For consistency, I've also updated the '#[test] implementation' page to stop referring to `#[test]' as a 'built in' attribute, since that has a specific meaning defined on this page. * Update src/attributes.md Co-authored-by: Noah Lev <[email protected]> * Update src/attributes.md Co-authored-by: Noah Lev <[email protected]> * Update src/attributes.md Co-authored-by: Noah Lev <[email protected]> * Update src/attributes.md Co-authored-by: Noah Lev <[email protected]> * Update src/attributes.md Co-authored-by: pierwill <[email protected]> * Update src/test-implementation.md Co-authored-by: pierwill <[email protected]> * Update src/attributes.md Co-authored-by: pierwill <[email protected]> * Update src/test-implementation.md * Update src/test-implementation.md * Update src/test-implementation.md --------- Co-authored-by: Nilstrieb <[email protected]> Co-authored-by: Noah Lev <[email protected]> Co-authored-by: pierwill <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
const x: int = 10;
the compiler can figure out thatx
is anint
perfectly well on its own.The text was updated successfully, but these errors were encountered: