Add implementations for `unbounded_shl`/`unbounded_shr`
Tracking Issue: https://github.com/rust-lang/rust/issues/129375
This implements unbounded_shl and unbounded_shr under the feature gate unbounded_shifts
r? @scottmcm
rustbot has assigned @scottmcm. They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.
Use r? to explicitly pick a reviewer
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.853 Building wheels for collected packages: reuse
#13 2.854 Building wheel for reuse (pyproject.toml): started
#13 3.099 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.100 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.100 Stored in directory: /tmp/pip-ephem-wheel-cache-_we88zhs/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.103 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.532 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.533 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.074 Collecting virtualenv
#13 4.074 Collecting virtualenv
#13 4.124 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.366 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 23.7 MB/s eta 0:00:00
#13 4.427 Collecting filelock<4,>=3.12.2
#13 4.434 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.468 Collecting platformdirs<5,>=3.9.1
#13 4.476 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.498 Collecting distlib<1,>=0.3.7
#13 4.517 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 47.8 MB/s eta 0:00:00
#13 4.517 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 47.8 MB/s eta 0:00:00
#13 4.599 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.787 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.9s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 194496 kB
DirectMap2M: 6096896 kB
DirectMap1G: 12582912 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/6b678c57b63b3062fb97130b3617b82657f59c80/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-6b678c57b63b3062fb97130b3617b82657f59c80-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
fmt check
Diff in /checkout/library/core/src/num/int_macros.rs:1313:
}
/// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, and `0` is returned.
/// # Examples
Diff in /checkout/library/core/src/num/int_macros.rs:1321:
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(4), 0x10);")]
Diff in /checkout/library/core/src/num/int_macros.rs:1438:
/// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, which yields `0` for a positive number,
/// and `-1` for a negative number.
Diff in /checkout/library/core/src/num/int_macros.rs:1446:
/// # Examples
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shl(4), 0x1);")]
Diff in /checkout/library/core/src/num/uint_macros.rs:1502:
/// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, and `0` is returned.
/// # Examples
Diff in /checkout/library/core/src/num/uint_macros.rs:1510:
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(4), 0x10);")]
Diff in /checkout/library/core/src/num/uint_macros.rs:1627:
/// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, and `0` is returned.
/// # Examples
Diff in /checkout/library/core/src/num/uint_macros.rs:1635:
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(4), 0x10);")]
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/src/tools/rustc-perf-wrapper/src/config.rs" "/checkout/src/tools/bump-stage0/src/main.rs" "/checkout/library/core/src/num/flt2dec/decoder.rs" "/checkout/library/core/src/num/flt2dec/strategy/dragon.rs" "/checkout/library/core/src/num/flt2dec/strategy/grisu.rs" "/checkout/library/core/src/num/flt2dec/mod.rs" "/checkout/library/core/src/num/flt2dec/estimator.rs" "/checkout/library/core/src/num/int_macros.rs" "/checkout/library/core/src/num/error.rs" "/checkout/library/core/src/num/diy_float.rs" "/checkout/src/tools/miropt-test-tools/src/lib.rs" "/checkout/src/tools/lint-docs/src/main.rs" "/checkout/src/tools/lint-docs/src/groups.rs" "/checkout/src/tools/lint-docs/src/lib.rs" "/checkout/library/core/src/num/shells/int_macros.rs" "/checkout/library/core/src/num/shells/isize.rs" "/checkout/library/core/src/num/shells/i128.rs" "/checkout/library/core/src/num/shells/u128.rs" "/checkout/library/core/src/num/shells/u32.rs" "/checkout/library/core/src/num/shells/u16.rs" "/checkout/library/core/src/num/shells/i16.rs" "/checkout/library/core/src/num/shells/u64.rs" "/checkout/library/core/src/num/shells/u8.rs" "/checkout/library/core/src/num/shells/i8.rs" "/checkout/library/core/src/num/shells/usize.rs" "/checkout/library/core/src/num/shells/i32.rs" "/checkout/library/core/src/num/shells/i64.rs" "/checkout/library/core/src/num/bignum.rs" "/checkout/library/core/src/num/f128.rs" "/checkout/library/core/src/num/mod.rs" "/checkout/library/core/src/num/uint_macros.rs" "/checkout/library/core/src/num/wrapping.rs" "/checkout/library/core/src/num/f32.rs" "/checkout/src/tools/lld-wrapper/src/main.rs" "/checkout/library/core/src/num/dec2flt/table.rs" "/checkout/library/core/src/num/dec2flt/decimal.rs" "/checkout/library/core/src/num/dec2flt/float.rs" "/checkout/library/core/src/num/dec2flt/mod.rs" "/checkout/library/core/src/num/dec2flt/common.rs" "/checkout/library/core/src/num/dec2flt/lemire.rs" "/checkout/library/core/src/num/dec2flt/fpu.rs" "/checkout/library/core/src/num/dec2flt/slow.rs" "/checkout/library/core/src/num/dec2flt/parse.rs" "/checkout/library/core/src/num/dec2flt/number.rs" "/checkout/library/core/src/num/f16.rs" "/checkout/library/core/src/num/int_log10.rs" "/checkout/library/core/src/num/nonzero.rs" "/checkout/library/core/src/num/overflow_panic.rs" "/checkout/library/core/src/num/saturating.rs" "/checkout/library/core/src/num/fmt.rs" "/checkout/library/core/src/num/f64.rs" "/checkout/src/tools/generate-copyright/src/main.rs" "/checkout/src/tools/generate-copyright/src/cargo_metadata.rs" "/checkout/library/core/src/ptr/metadata.rs" "/checkout/library/core/src/ptr/mod.rs" "/checkout/library/core/src/ptr/unique.rs" "/checkout/library/core/src/ptr/const_ptr.rs" "/checkout/library/core/src/ptr/mut_ptr.rs" "/checkout/library/core/src/ptr/non_null.rs" "/checkout/library/core/src/ptr/alignment.rs" "/checkout/src/tools/replace-version-placeholder/src/main.rs" "/checkout/library/rustc-std-workspace-std/lib.rs" "/checkout/library/unwind/src/unwinding.rs" "/checkout/src/tools/rustc-perf-wrapper/src/main.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Wed Aug 21 21:05:49 UTC 2024
network time: Wed, 21 Aug 2024 21:05:50 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.853 Building wheels for collected packages: reuse
#13 2.854 Building wheel for reuse (pyproject.toml): started
#13 3.094 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.095 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.096 Stored in directory: /tmp/pip-ephem-wheel-cache-spqbpi_v/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.098 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.494 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.495 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.013 Collecting virtualenv
#13 4.013 Collecting virtualenv
#13 4.064 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.268 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 28.1 MB/s eta 0:00:00
#13 4.323 Collecting platformdirs<5,>=3.9.1
#13 4.330 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.365 Collecting filelock<4,>=3.12.2
#13 4.391 Collecting distlib<1,>=0.3.7
#13 4.423 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.433 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 60.6 MB/s eta 0:00:00
#13 4.433 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 60.6 MB/s eta 0:00:00
#13 4.512 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.696 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.8s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 217024 kB
DirectMap2M: 8171520 kB
DirectMap1G: 10485760 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/6b678c57b63b3062fb97130b3617b82657f59c80/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-6b678c57b63b3062fb97130b3617b82657f59c80-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
fmt check
Diff in /checkout/library/core/src/num/int_macros.rs:1313:
}
/// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, and `0` is returned.
/// # Examples
Diff in /checkout/library/core/src/num/int_macros.rs:1321:
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(4), 0x10);")]
Diff in /checkout/library/core/src/num/int_macros.rs:1438:
/// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, which yields `0` for a positive number,
/// and `-1` for a negative number.
Diff in /checkout/library/core/src/num/int_macros.rs:1446:
/// # Examples
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shl(4), 0x1);")]
Diff in /checkout/library/core/src/num/uint_macros.rs:1502:
/// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, and `0` is returned.
/// # Examples
Diff in /checkout/library/core/src/num/uint_macros.rs:1510:
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(4), 0x10);")]
Diff in /checkout/library/core/src/num/uint_macros.rs:1627:
/// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, and `0` is returned.
/// # Examples
Diff in /checkout/library/core/src/num/uint_macros.rs:1635:
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(4), 0x10);")]
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/library/core/src/net/socket_addr.rs" "/checkout/src/tools/rust-installer/src/generator.rs" "/checkout/src/tools/rust-installer/src/tarballer.rs" "/checkout/library/core/src/net/mod.rs" "/checkout/library/core/src/net/display_buffer.rs" "/checkout/library/core/src/net/ip_addr.rs" "/checkout/library/core/src/net/parser.rs" "/checkout/library/core/src/escape.rs" "/checkout/library/core/src/num/flt2dec/decoder.rs" "/checkout/library/core/src/num/flt2dec/strategy/dragon.rs" "/checkout/library/core/src/num/flt2dec/strategy/grisu.rs" "/checkout/library/core/src/num/flt2dec/mod.rs" "/checkout/library/core/src/num/flt2dec/estimator.rs" "/checkout/library/core/src/num/int_macros.rs" "/checkout/library/core/src/num/error.rs" "/checkout/library/core/src/num/diy_float.rs" "/checkout/library/core/src/num/shells/int_macros.rs" "/checkout/library/core/src/num/shells/isize.rs" "/checkout/library/core/src/num/shells/i128.rs" "/checkout/library/core/src/num/shells/u128.rs" "/checkout/library/core/src/num/shells/u32.rs" "/checkout/library/core/src/num/shells/u16.rs" "/checkout/library/core/src/num/shells/i16.rs" "/checkout/library/core/src/num/shells/u64.rs" "/checkout/library/core/src/num/shells/u8.rs" "/checkout/library/core/src/num/shells/i8.rs" "/checkout/library/core/src/num/shells/usize.rs" "/checkout/library/core/src/num/shells/i32.rs" "/checkout/library/core/src/num/shells/i64.rs" "/checkout/library/core/src/num/bignum.rs" "/checkout/library/core/src/num/f128.rs" "/checkout/library/core/src/num/mod.rs" "/checkout/library/core/src/num/uint_macros.rs" "/checkout/library/core/src/num/wrapping.rs" "/checkout/library/core/src/num/f32.rs" "/checkout/library/core/src/num/dec2flt/table.rs" "/checkout/library/core/src/num/dec2flt/decimal.rs" "/checkout/library/core/src/num/dec2flt/float.rs" "/checkout/library/core/src/num/dec2flt/mod.rs" "/checkout/library/core/src/num/dec2flt/common.rs" "/checkout/library/core/src/num/dec2flt/lemire.rs" "/checkout/library/core/src/num/dec2flt/fpu.rs" "/checkout/library/core/src/num/dec2flt/slow.rs" "/checkout/library/core/src/num/dec2flt/parse.rs" "/checkout/library/core/src/num/dec2flt/number.rs" "/checkout/library/core/src/num/f16.rs" "/checkout/library/core/src/num/int_log10.rs" "/checkout/library/core/src/num/nonzero.rs" "/checkout/library/core/src/num/overflow_panic.rs" "/checkout/library/core/src/num/saturating.rs" "/checkout/library/core/src/num/fmt.rs" "/checkout/library/core/src/num/f64.rs" "/checkout/library/core/src/ptr/metadata.rs" "/checkout/library/core/src/ptr/mod.rs" "/checkout/library/core/src/ptr/unique.rs" "/checkout/library/core/src/ptr/const_ptr.rs" "/checkout/library/core/src/ptr/mut_ptr.rs" "/checkout/library/core/src/ptr/non_null.rs" "/checkout/library/core/src/ptr/alignment.rs" "/checkout/library/rustc-std-workspace-std/lib.rs" "/checkout/library/unwind/src/unwinding.rs" "/checkout/library/unwind/src/libunwind.rs" "/checkout/library/unwind/src/lib.rs" "/checkout/src/tools/rust-installer/src/util.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Wed Aug 21 21:22:57 UTC 2024
network time: Wed, 21 Aug 2024 21:22:57 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.748 Building wheels for collected packages: reuse
#13 2.749 Building wheel for reuse (pyproject.toml): started
#13 2.994 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 2.995 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 2.995 Stored in directory: /tmp/pip-ephem-wheel-cache-rtg592q2/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 2.998 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.384 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.384 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 3.910 Collecting virtualenv
#13 3.910 Collecting virtualenv
#13 3.961 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.184 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 25.7 MB/s eta 0:00:00
#13 4.247 Collecting filelock<4,>=3.12.2
#13 4.254 Downloading filelock-3.15.4-py3-none-any.whl (16 kB)
#13 4.287 Collecting platformdirs<5,>=3.9.1
#13 4.294 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.317 Collecting distlib<1,>=0.3.7
#13 4.335 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 52.6 MB/s eta 0:00:00
#13 4.335 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 52.6 MB/s eta 0:00:00
#13 4.415 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.598 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.7s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 235456 kB
DirectMap2M: 9201664 kB
DirectMap1G: 9437184 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.06s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/6b678c57b63b3062fb97130b3617b82657f59c80/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-6b678c57b63b3062fb97130b3617b82657f59c80-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
fmt check
Diff in /checkout/library/core/src/num/uint_macros.rs:1502:
}
/// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, and `0` is returned.
/// # Examples
Diff in /checkout/library/core/src/num/uint_macros.rs:1510:
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(4), 0x10);")]
Diff in /checkout/library/core/src/num/uint_macros.rs:1627:
/// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, and `0` is returned.
/// # Examples
Diff in /checkout/library/core/src/num/uint_macros.rs:1635:
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(4), 0x10);")]
Diff in /checkout/library/core/src/num/int_macros.rs:1313:
/// Unbounded shift left. Computes `self << rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, and `0` is returned.
/// # Examples
Diff in /checkout/library/core/src/num/int_macros.rs:1321:
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x1", stringify!($SelfT), ".unbounded_shl(4), 0x10);")]
Diff in /checkout/library/core/src/num/int_macros.rs:1438:
/// Unbounded shift right. Computes `self >> rhs`, without bounding the value of `rhs`
- ///
- /// If `rhs` is larger or equal to the number of bits in `self`,
+ ///
+ /// If `rhs` is larger or equal to the number of bits in `self`,
/// the entire value is shifted out, which yields `0` for a positive number,
/// and `-1` for a negative number.
Diff in /checkout/library/core/src/num/int_macros.rs:1446:
/// # Examples
- ///
+ ///
+ ///
/// Basic usage:
/// ```
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shl(4), 0x1);")]
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/library/core/src/cell/lazy.rs" "/checkout/library/core/src/cell/once.rs" "/checkout/library/core/src/io/borrowed_buf.rs" "/checkout/library/core/src/io/mod.rs" "/checkout/library/core/src/task/mod.rs" "/checkout/library/core/src/task/ready.rs" "/checkout/library/core/src/task/poll.rs" "/checkout/library/core/src/task/wake.rs" "/checkout/library/core/src/result.rs" "/checkout/src/tools/generate-copyright/src/main.rs" "/checkout/src/tools/generate-copyright/src/cargo_metadata.rs" "/checkout/src/tools/replace-version-placeholder/src/main.rs" "/checkout/library/core/src/ffi/c_str.rs" "/checkout/library/core/src/ffi/va_list.rs" "/checkout/library/core/src/ffi/mod.rs" "/checkout/library/core/src/char/mod.rs" "/checkout/library/core/src/char/decode.rs" "/checkout/library/core/src/char/methods.rs" "/checkout/library/core/src/char/convert.rs" "/checkout/library/core/src/borrow.rs" "/checkout/library/core/src/hint.rs" "/checkout/library/core/src/pin.rs" "/checkout/library/core/src/net/socket_addr.rs" "/checkout/library/core/src/net/mod.rs" "/checkout/library/core/src/net/display_buffer.rs" "/checkout/library/core/src/net/ip_addr.rs" "/checkout/library/core/src/net/parser.rs" "/checkout/library/core/src/escape.rs" "/checkout/src/tools/compiletest/src/main.rs" "/checkout/src/tools/compiletest/src/errors/tests.rs" "/checkout/src/tools/compiletest/src/errors.rs" "/checkout/src/tools/compiletest/src/command-list.rs" "/checkout/src/tools/compiletest/src/runtest.rs" "/checkout/src/tools/compiletest/src/util/tests.rs" "/checkout/src/tools/compiletest/src/common.rs" "/checkout/src/tools/compiletest/src/read2/tests.rs" "/checkout/src/tools/compiletest/src/runtest/debugger.rs" "/checkout/src/tools/compiletest/src/runtest/coverage.rs" "/checkout/src/tools/compiletest/src/runtest/tests.rs" "/checkout/src/tools/compiletest/src/lib.rs" "/checkout/library/core/src/num/flt2dec/decoder.rs" "/checkout/library/core/src/num/flt2dec/strategy/dragon.rs" "/checkout/library/core/src/num/flt2dec/strategy/grisu.rs" "/checkout/library/core/src/num/flt2dec/mod.rs" "/checkout/library/core/src/num/flt2dec/estimator.rs" "/checkout/library/core/src/num/int_macros.rs" "/checkout/library/core/src/num/error.rs" "/checkout/library/core/src/num/diy_float.rs" "/checkout/src/tools/compiletest/src/header/test-auxillary/known_directive.rs" "/checkout/src/tools/compiletest/src/header/test-auxillary/unknown_directive.rs" "/checkout/src/tools/compiletest/src/header/test-auxillary/error_annotation.rs" "/checkout/src/tools/compiletest/src/header/test-auxillary/known_legacy_directive.rs" "/checkout/src/tools/compiletest/src/header/needs.rs" "/checkout/src/tools/compiletest/src/header/tests.rs" "/checkout/src/tools/compiletest/src/header/cfg.rs" "/checkout/src/tools/compiletest/src/header.rs" "/checkout/src/tools/compiletest/src/json.rs" "/checkout/src/tools/compiletest/src/read2.rs" "/checkout/src/tools/compiletest/src/util.rs" "/checkout/src/tools/compiletest/src/raise_fd_limit.rs" "/checkout/src/tools/compiletest/src/tests.rs" "/checkout/src/tools/compiletest/src/compute_diff.rs" "/checkout/library/core/src/num/shells/int_macros.rs" "/checkout/src/tools/lld-wrapper/src/main.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Wed Aug 21 21:30:19 UTC 2024
network time: Wed, 21 Aug 2024 21:30:19 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
#16 2.684 Building wheels for collected packages: reuse
#16 2.685 Building wheel for reuse (pyproject.toml): started
#16 2.934 Building wheel for reuse (pyproject.toml): finished with status 'done'
#16 2.935 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#16 2.936 Stored in directory: /tmp/pip-ephem-wheel-cache-hcyu103g/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#16 2.938 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#16 3.328 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#16 3.328 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#16 DONE 3.4s
---
failures:
---- core/src/num/mod.rs - num::i128::unbounded_shl (line 379) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:380:20
|
4 | assert_eq!(0x1i128.unbounded_shl(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:381:20
|
5 | assert_eq!(0x1i128.unbounded_shl(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::i128::unbounded_shr (line 380) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:381:21
|
4 | assert_eq!(0x10i128.unbounded_shl(4), 0x1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:382:21
|
5 | assert_eq!(0x10i128.unbounded_shr(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:383:22
|
6 | assert_eq!(i128::MIN.unbounded_shr(129), -1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::i16::unbounded_shl (line 310) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:311:19
|
4 | assert_eq!(0x1i16.unbounded_shl(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:312:19
|
5 | assert_eq!(0x1i16.unbounded_shl(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::i16::unbounded_shr (line 311) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:312:20
|
4 | assert_eq!(0x10i16.unbounded_shl(4), 0x1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:313:20
|
5 | assert_eq!(0x10i16.unbounded_shr(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:314:21
|
6 | assert_eq!(i16::MIN.unbounded_shr(129), -1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::i32::unbounded_shl (line 333) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:334:19
|
4 | assert_eq!(0x1i32.unbounded_shl(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:335:19
|
5 | assert_eq!(0x1i32.unbounded_shl(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::i32::unbounded_shr (line 334) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:335:20
|
4 | assert_eq!(0x10i32.unbounded_shl(4), 0x1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:336:20
|
5 | assert_eq!(0x10i32.unbounded_shr(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:337:21
|
6 | assert_eq!(i32::MIN.unbounded_shr(129), -1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::i64::unbounded_shl (line 356) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:357:19
|
4 | assert_eq!(0x1i64.unbounded_shl(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:358:19
|
5 | assert_eq!(0x1i64.unbounded_shl(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::i64::unbounded_shr (line 357) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:358:20
|
4 | assert_eq!(0x10i64.unbounded_shl(4), 0x1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:359:20
|
5 | assert_eq!(0x10i64.unbounded_shr(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:360:21
|
6 | assert_eq!(i64::MIN.unbounded_shr(129), -1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::i8::unbounded_shl (line 287) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:288:18
|
4 | assert_eq!(0x1i8.unbounded_shl(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:289:18
|
5 | assert_eq!(0x1i8.unbounded_shl(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::i8::unbounded_shr (line 288) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:289:19
|
4 | assert_eq!(0x10i8.unbounded_shl(4), 0x1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:290:19
|
5 | assert_eq!(0x10i8.unbounded_shr(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:291:20
|
6 | assert_eq!(i8::MIN.unbounded_shr(129), -1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::isize::unbounded_shl (line 453) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:454:21
|
4 | assert_eq!(0x1isize.unbounded_shl(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:455:21
|
5 | assert_eq!(0x1isize.unbounded_shl(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::isize::unbounded_shr (line 454) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:455:22
|
4 | assert_eq!(0x10isize.unbounded_shl(4), 0x1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:456:22
|
5 | assert_eq!(0x10isize.unbounded_shr(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:457:23
|
6 | assert_eq!(isize::MIN.unbounded_shr(129), -1);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::u128::unbounded_shl (line 1191) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:1192:20
|
4 | assert_eq!(0x1u128.unbounded_shl(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:1193:20
|
5 | assert_eq!(0x1u128.unbounded_shl(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::u128::unbounded_shr (line 1191) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:1192:21
|
4 | assert_eq!(0x10u128.unbounded_shr(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:1193:21
|
5 | assert_eq!(0x10u128.unbounded_shr(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::u16::unbounded_shl (line 1094) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:1095:19
|
4 | assert_eq!(0x1u16.unbounded_shl(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:1096:19
|
5 | assert_eq!(0x1u16.unbounded_shl(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::u16::unbounded_shr (line 1094) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:1095:20
|
4 | assert_eq!(0x10u16.unbounded_shr(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:1096:20
|
5 | assert_eq!(0x10u16.unbounded_shr(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::u32::unbounded_shl (line 1143) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:1144:19
|
4 | assert_eq!(0x1u32.unbounded_shl(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:1145:19
|
5 | assert_eq!(0x1u32.unbounded_shl(129), 0);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.
Couldn't compile the test.
---- core/src/num/mod.rs - num::u32::unbounded_shr (line 1143) stdout ----
error[E0658]: use of unstable library feature 'unbounded_shifts'
##[error] --> core/src/num/mod.rs:1144:20
|
4 | assert_eq!(0x10u32.unbounded_shr(4), 0x10);
|
= note: see issue #129375 <https://github.com/rust-lang/rust/issues/129375> for more information
= help: add `#![feature(unbounded_shifts)]` to the crate attributes to enable
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
= note: this compiler was built on 2024-07-25; consider upgrading it if it is out of date
error[E0658]: use of unstable library feature 'unbounded_shifts'
The job mingw-check-tidy failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check/validate-error-codes.sh /scripts/
# NOTE: intentionally uses python2 for x.py so we can test it still works.
# validate-toolstate only runs in our CI, so it's ok for it to only support python3.
ENV SCRIPT TIDY_PRINT_DIFF=1 python2.7 ../x.py test \
--stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#13 2.800 Building wheels for collected packages: reuse
#13 2.801 Building wheel for reuse (pyproject.toml): started
#13 3.042 Building wheel for reuse (pyproject.toml): finished with status 'done'
#13 3.043 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#13 3.044 Stored in directory: /tmp/pip-ephem-wheel-cache-2cci7xm6/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#13 3.046 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#13 3.437 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#13 3.437 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#13 4.082 Collecting virtualenv
#13 4.082 Collecting virtualenv
#13 4.134 Downloading virtualenv-20.26.3-py3-none-any.whl (5.7 MB)
#13 4.336 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 28.4 MB/s eta 0:00:00
#13 4.392 Collecting platformdirs<5,>=3.9.1
#13 4.400 Downloading platformdirs-4.2.2-py3-none-any.whl (18 kB)
#13 4.442 Collecting filelock<4,>=3.12.2
#13 4.467 Collecting distlib<1,>=0.3.7
#13 4.474 Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
#13 4.484 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 58.7 MB/s eta 0:00:00
#13 4.484 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 KB 58.7 MB/s eta 0:00:00
#13 4.564 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#13 4.748 Successfully installed distlib-0.3.8 filelock-3.15.4 platformdirs-4.2.2 virtualenv-20.26.3
#13 DONE 4.8s
#14 [7/8] COPY host-x86_64/mingw-check/validate-toolstate.sh /scripts/
#14 DONE 0.0s
---
DirectMap4k: 206784 kB
DirectMap2M: 7133184 kB
DirectMap1G: 11534336 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
+ TIDY_PRINT_DIFF=1 python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py:lint,cpp:fmt
Finished `dev` profile [unoptimized] target(s) in 0.04s
##[endgroup]
downloading https://ci-artifacts.rust-lang.org/rustc-builds-alt/6b678c57b63b3062fb97130b3617b82657f59c80/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
extracting /checkout/obj/build/cache/llvm-6b678c57b63b3062fb97130b3617b82657f59c80-true/rust-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm
---
Compiling tidy v0.1.0 (/checkout/src/tools/tidy)
Finished `release` profile [optimized] target(s) in 27.94s
##[endgroup]
fmt check
Diff in /checkout/library/core/src/num/int_macros.rs:1452:
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shl(4), 0x1);")]
#[doc = concat!("assert_eq!(0x10", stringify!($SelfT), ".unbounded_shr(129), 0);")]
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.unbounded_shr(129), -1);")]
- /// ```
+ /// ```
#[unstable(feature = "unbounded_shifts", issue = "129375")]
#[rustc_allow_const_fn_unstable(unchecked_shifts)]
#[must_use = "this returns the result of the operation, \
fmt error: Running `"/checkout/obj/build/x86_64-unknown-linux-gnu/rustfmt/bin/rustfmt" "--config-path" "/checkout" "--edition" "2021" "--unstable-features" "--skip-children" "--check" "/checkout/library/core/src/cell/once.rs" "/checkout/library/core/src/io/borrowed_buf.rs" "/checkout/library/core/src/io/mod.rs" "/checkout/src/tools/compiletest/src/header/test-auxillary/known_directive.rs" "/checkout/src/tools/compiletest/src/header/test-auxillary/unknown_directive.rs" "/checkout/src/tools/compiletest/src/header/test-auxillary/error_annotation.rs" "/checkout/src/tools/compiletest/src/header/test-auxillary/known_legacy_directive.rs" "/checkout/src/tools/compiletest/src/header/needs.rs" "/checkout/src/tools/compiletest/src/header/tests.rs" "/checkout/src/tools/compiletest/src/header/cfg.rs" "/checkout/src/tools/compiletest/src/header.rs" "/checkout/src/tools/compiletest/src/json.rs" "/checkout/src/tools/compiletest/src/read2.rs" "/checkout/library/core/src/task/mod.rs" "/checkout/src/tools/compiletest/src/util.rs" "/checkout/library/core/src/task/ready.rs" "/checkout/src/tools/compiletest/src/raise_fd_limit.rs" "/checkout/library/core/src/task/poll.rs" "/checkout/src/tools/compiletest/src/tests.rs" "/checkout/library/core/src/task/wake.rs" "/checkout/src/tools/compiletest/src/compute_diff.rs" "/checkout/library/core/src/result.rs" "/checkout/src/tools/x/src/main.rs" "/checkout/library/core/src/ffi/c_str.rs" "/checkout/library/core/src/ffi/va_list.rs" "/checkout/library/core/src/ffi/mod.rs" "/checkout/library/core/src/char/mod.rs" "/checkout/library/core/src/char/decode.rs" "/checkout/library/core/src/char/methods.rs" "/checkout/library/core/src/char/convert.rs" "/checkout/library/core/src/borrow.rs" "/checkout/library/core/src/hint.rs" "/checkout/library/core/src/pin.rs" "/checkout/library/core/src/net/socket_addr.rs" "/checkout/library/core/src/net/mod.rs" "/checkout/library/core/src/net/display_buffer.rs" "/checkout/library/core/src/net/ip_addr.rs" "/checkout/library/core/src/net/parser.rs" "/checkout/library/core/src/escape.rs" "/checkout/library/core/src/num/flt2dec/decoder.rs" "/checkout/library/core/src/num/flt2dec/strategy/dragon.rs" "/checkout/library/core/src/num/flt2dec/strategy/grisu.rs" "/checkout/library/core/src/num/flt2dec/mod.rs" "/checkout/library/core/src/num/flt2dec/estimator.rs" "/checkout/library/core/src/num/int_macros.rs" "/checkout/library/core/src/num/error.rs" "/checkout/library/core/src/num/diy_float.rs" "/checkout/library/core/src/num/shells/int_macros.rs" "/checkout/library/core/src/num/shells/isize.rs" "/checkout/library/core/src/num/shells/i128.rs" "/checkout/library/core/src/num/shells/u128.rs" "/checkout/library/core/src/num/shells/u32.rs" "/checkout/library/core/src/num/shells/u16.rs" "/checkout/library/core/src/num/shells/i16.rs" "/checkout/library/core/src/num/shells/u64.rs" "/checkout/library/core/src/num/shells/u8.rs" "/checkout/library/core/src/num/shells/i8.rs" "/checkout/library/core/src/num/shells/usize.rs" "/checkout/library/core/src/num/shells/i32.rs" "/checkout/library/core/src/num/shells/i64.rs" "/checkout/library/core/src/num/bignum.rs" "/checkout/library/core/src/num/f128.rs" "/checkout/library/core/src/num/mod.rs" "/checkout/library/core/src/cell/lazy.rs"` failed.
If you're running `tidy`, try again with `--bless`. Or, if you just want to format code, run `./x.py fmt` instead.
local time: Wed Aug 21 23:28:15 UTC 2024
network time: Wed, 21 Aug 2024 23:28:15 GMT
##[error]Process completed with exit code 1.
Post job cleanup.
The job mingw-check failed! Check out the build log: (web) (plain)
Click to see the possible cause of the failure (guessed by this bot)
#16 2.854 Building wheels for collected packages: reuse
#16 2.855 Building wheel for reuse (pyproject.toml): started
#16 3.098 Building wheel for reuse (pyproject.toml): finished with status 'done'
#16 3.099 Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132715 sha256=dfa09868353292d98f811d3efdb0d54d07389e808efc71d68e3b93c514bf8bec
#16 3.099 Stored in directory: /tmp/pip-ephem-wheel-cache-cb33_6rk/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#16 3.102 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#16 3.499 Successfully installed attrs-23.2.0 binaryornot-0.4.4 boolean-py-4.0 chardet-5.2.0 jinja2-3.1.4 license-expression-30.3.0 markupsafe-2.1.5 python-debian-0.1.49 reuse-4.0.3 tomlkit-0.13.0
#16 3.500 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#16 DONE 3.6s
Also, don't know whether I need to do this now, but rustc-dev-guide apparently wants this for new rustc_allow_const_fn_unstable uses, so CC: @rust-lang/wg-const-eval.
Thanks! I'm glad to have these, since I think they're the only good shifts :)
@bors r+ rollup
:pushpin: Commit f4dc7830ed64a713ef7d4e3c63032b9002c2040a has been approved by scottmcm
It is now in the queue for this repository.