Skip to content

Commit 41601a8

Browse files
committed
Auto merge of #67104 - Centril:rollup-07vahh9, r=Centril
Rollup of 10 pull requests Successful merges: - #66606 (Add feature gate for mut refs in const fn) - #66841 (Add `{f32,f64}::approx_unchecked_to<Int>` unsafe methods) - #67009 (Emit coercion suggestions in more places) - #67052 (Ditch `parse_in_attr`) - #67071 (Do not ICE on closure typeck) - #67078 (accept union inside enum if not followed by identifier) - #67090 (Change "either" to "any" in Layout::from_size_align's docs) - #67092 (Fix comment typos in src/libcore/alloc.rs) - #67094 (get rid of __ in field names) - #67102 (Add note to src/ci/docker/README.md about multiple docker images) Failed merges: - #67101 (use `#[allow(unused_attributes)]` to paper over incr.comp problem) r? @ghost
2 parents ae1b871 + dbc9f30 commit 41601a8

File tree

80 files changed

+1278
-688
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1278
-688
lines changed

src/ci/docker/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ for example:
1616

1717
Images will output artifacts in an `obj` dir at the root of a repository.
1818

19+
**NOTE**: Re-using the same `obj` dir with different docker images with
20+
the same target triple (e.g. `dist-x86_64-linux` and `dist-various-1`)
21+
may result in strange linker errors, due shared library versions differing between platforms.
22+
23+
If you encounter any issues when using multiple Docker images, try deleting your `obj` directory
24+
before running your command.
25+
1926
## Filesystem layout
2027

2128
- Each directory, excluding `scripts` and `disabled`, corresponds to a docker image

src/libcore/alloc.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub struct Layout {
5353

5454
impl Layout {
5555
/// Constructs a `Layout` from a given `size` and `align`,
56-
/// or returns `LayoutErr` if either of the following conditions
56+
/// or returns `LayoutErr` if any of the following conditions
5757
/// are not met:
5858
///
5959
/// * `align` must not be zero,
@@ -137,7 +137,7 @@ impl Layout {
137137
#[inline]
138138
pub fn for_value<T: ?Sized>(t: &T) -> Self {
139139
let (size, align) = (mem::size_of_val(t), mem::align_of_val(t));
140-
// See rationale in `new` for why this us using an unsafe variant below
140+
// See rationale in `new` for why this is using an unsafe variant below
141141
debug_assert!(Layout::from_size_align(size, align).is_ok());
142142
unsafe {
143143
Layout::from_size_align_unchecked(size, align)
@@ -196,7 +196,7 @@ impl Layout {
196196
// valid.
197197
//
198198
// 2. `len + align - 1` can overflow by at most `align - 1`,
199-
// so the &-mask wth `!(align - 1)` will ensure that in the
199+
// so the &-mask with `!(align - 1)` will ensure that in the
200200
// case of overflow, `len_rounded_up` will itself be 0.
201201
// Thus the returned padding, when added to `len`, yields 0,
202202
// which trivially satisfies the alignment `align`.

src/libcore/convert.rs renamed to src/libcore/convert/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@
4040
4141
#![stable(feature = "rust1", since = "1.0.0")]
4242

43+
mod num;
44+
45+
#[unstable(feature = "convert_float_to_int", issue = "67057")]
46+
pub use num::FloatToInt;
47+
4348
/// The identity function.
4449
///
4550
/// Two things are important to note about this function:

0 commit comments

Comments
 (0)