commit | 29c0fe747ae83d2519aaf9c9713e8716f7a3511b | [log] [tgz] |
---|---|---|
author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | Thu Apr 03 07:39:08 2025 +0200 |
committer | GitHub <noreply@github.com> | Thu Apr 03 07:39:08 2025 +0200 |
tree | bc77172f2a78653d09a16bce0f4150bb089fec7a | |
parent | 85c557e76eac68b1f94504f56c492b653706ee2c [diff] | |
parent | 62fcb9d585723f0ab6646ba0e7dbaa72867bf8a8 [diff] |
Rollup merge of #139294 - beetrees:fix-f16-f128-literal-feature-gate, r=fmease Fix the `f16`/`f128` feature gates on integer literals The feature gating logic for `f16`/`f128` currently only checks float literals, meaning this code currently compiles with no feature gates on stable ([playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=b0c0e285ccb822fc7e2abc595557886b)): ```rust fn main() { let a = 1f16; let b = 1f128; dbg!(a, b); } ``` This PR fixes that. Tracking issue: #116909
Website | Getting started | Learn | Documentation | Contributing
This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.
Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).
Read “Installation” from The Book.
If you really want to install from source (though this is not recommended), see INSTALL.md.
See https://www.rust-lang.org/community for a list of chat platforms and forums.
See CONTRIBUTING.md.
Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.
The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the “Rust Trademarks”).
If you want to use these names or brands, please read the Rust language trademark policy.
Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.