Correct typo
This commit is contained in:
parent
85fc39c1e3
commit
1770693771
4 changed files with 4 additions and 4 deletions
|
@ -1442,7 +1442,7 @@ Compatibility Notes
|
||||||
- [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831]
|
- [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831]
|
||||||
- [Previously unsound code is no longer permitted where different constructors in branches
|
- [Previously unsound code is no longer permitted where different constructors in branches
|
||||||
could require different lifetimes.][85574]
|
could require different lifetimes.][85574]
|
||||||
- As previously mentioned the [`std::arch` intrinsic now uses stricter const checking][83278]
|
- As previously mentioned the [`std::arch` intrinsics now uses stricter const checking][83278]
|
||||||
than before and may reject some previously accepted code.
|
than before and may reject some previously accepted code.
|
||||||
- [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow
|
- [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow
|
||||||
when compiled with `codegen-units = 1`.][86063]
|
when compiled with `codegen-units = 1`.][86063]
|
||||||
|
|
|
@ -203,7 +203,7 @@ pub(crate) fn codegen_intrinsic_call<'tcx>(
|
||||||
sym::transmute => {
|
sym::transmute => {
|
||||||
crate::base::codegen_panic(fx, "Transmuting to uninhabited type.", source_info);
|
crate::base::codegen_panic(fx, "Transmuting to uninhabited type.", source_info);
|
||||||
}
|
}
|
||||||
_ => unimplemented!("unsupported intrinsics {}", intrinsic),
|
_ => unimplemented!("unsupported intrinsic {}", intrinsic),
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
|
@ -2321,7 +2321,7 @@ impl<T> [T] {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Binary searches this slice for a given element.
|
/// Binary searches this slice for a given element.
|
||||||
/// This behaves similar to [`contains`] if this slice is sorted.
|
/// This behaves similarly to [`contains`] if this slice is sorted.
|
||||||
///
|
///
|
||||||
/// If the value is found then [`Result::Ok`] is returned, containing the
|
/// If the value is found then [`Result::Ok`] is returned, containing the
|
||||||
/// index of the matching element. If there are multiple matches, then any
|
/// index of the matching element. If there are multiple matches, then any
|
||||||
|
|
|
@ -44,7 +44,7 @@ mod shims {
|
||||||
}
|
}
|
||||||
|
|
||||||
// On 32-bit x86 MSVC these functions aren't defined, so we just define shims
|
// On 32-bit x86 MSVC these functions aren't defined, so we just define shims
|
||||||
// which promote everything for f64, perform the calculation, and then demote
|
// which promote everything to f64, perform the calculation, and then demote
|
||||||
// back to f32. While not precisely correct should be "correct enough" for now.
|
// back to f32. While not precisely correct should be "correct enough" for now.
|
||||||
#[cfg(all(target_env = "msvc", target_arch = "x86"))]
|
#[cfg(all(target_env = "msvc", target_arch = "x86"))]
|
||||||
mod shims {
|
mod shims {
|
||||||
|
|
Loading…
Add table
Reference in a new issue