Auto merge of - matthiaskrgr:rollup-85y28av, r=matthiaskrgr

Rollup of 3 pull requests

Successful merges:

 -  (Remove unused cargo-platform dependency from tidy)
 -  (Remove `From` impls for unstable types that break inference)
 -  (fix typo in pin.rs)

r? `@ghost`
`@rustbot` modify labels: rollup
This commit is contained in:
bors 2024-04-12 13:13:50 +00:00
commit bd71213cf0
5 changed files with 12 additions and 5 deletions
Cargo.lock
library/core/src
src/tools/tidy
tests/ui/inference

View file

@ -5579,7 +5579,6 @@ dependencies = [
name = "tidy" name = "tidy"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"cargo-platform",
"cargo_metadata 0.15.4", "cargo_metadata 0.15.4",
"ignore", "ignore",
"lazy_static", "lazy_static",

View file

@ -165,8 +165,8 @@ impl_from!(u16 => f64, #[stable(feature = "lossless_float_conv", since = "1.6.0"
impl_from!(u32 => f64, #[stable(feature = "lossless_float_conv", since = "1.6.0")]); impl_from!(u32 => f64, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
// float -> float // float -> float
impl_from!(f16 => f32, #[stable(feature = "lossless_float_conv", since = "1.6.0")]); // FIXME(f16_f128): adding additional `From` impls for existing types breaks inference. See
impl_from!(f16 => f64, #[stable(feature = "lossless_float_conv", since = "1.6.0")]); // <https://github.com/rust-lang/rust/issues/123824>
impl_from!(f16 => f128, #[stable(feature = "lossless_float_conv", since = "1.6.0")]); impl_from!(f16 => f128, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
impl_from!(f32 => f64, #[stable(feature = "lossless_float_conv", since = "1.6.0")]); impl_from!(f32 => f64, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);
impl_from!(f32 => f128, #[stable(feature = "lossless_float_conv", since = "1.6.0")]); impl_from!(f32 => f128, #[stable(feature = "lossless_float_conv", since = "1.6.0")]);

View file

@ -1198,7 +1198,7 @@ impl<Ptr: Deref<Target: Unpin>> Pin<Ptr> {
/// Unwraps this `Pin<Ptr>`, returning the underlying pointer. /// Unwraps this `Pin<Ptr>`, returning the underlying pointer.
/// ///
/// Doing this operation safely requires that the data pointed at by this pinning pointer /// Doing this operation safely requires that the data pointed at by this pinning pointer
/// implemts [`Unpin`] so that we can ignore the pinning invariants when unwrapping it. /// implements [`Unpin`] so that we can ignore the pinning invariants when unwrapping it.
/// ///
/// # Examples /// # Examples
/// ///

View file

@ -6,7 +6,6 @@ autobins = false
[dependencies] [dependencies]
cargo_metadata = "0.15" cargo_metadata = "0.15"
cargo-platform = "0.1.2"
regex = "1" regex = "1"
miropt-test-tools = { path = "../miropt-test-tools" } miropt-test-tools = { path = "../miropt-test-tools" }
lazy_static = "1" lazy_static = "1"

View file

@ -0,0 +1,9 @@
//@ check-pass
// issue: rust-lang/rust#123824
// This test is a sanity check and does not enforce any stable API, so may be
// removed at a future point.
fn main() {
let x = f32::from(3.14);
let y = f64::from(3.14);
}