Skip to content

Commit 7f75bfa

Browse files
committed
Auto merge of #134931 - matthiaskrgr:rollup-b47ly73, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #132477 (Add illumos target documentation) - #134871 (Add codegen test for issue 63646) - #134911 (chore: fix typos) - #134922 (Fix typos) - #134924 (ci: Cleanup docker build logs in CI) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 2061630 + 05c0cd3 commit 7f75bfa

File tree

17 files changed

+90
-18
lines changed

17 files changed

+90
-18
lines changed

src/bootstrap/src/core/build_steps/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,7 @@ fn prepare_cargo_test(
26372637
) -> BootstrapCommand {
26382638
let mut cargo = cargo.into();
26392639

2640-
// Propegate `--bless` if it has not already been set/unset
2640+
// Propagate `--bless` if it has not already been set/unset
26412641
// Any tools that want to use this should bless if `RUSTC_BLESS` is set to
26422642
// anything other than `0`.
26432643
if builder.config.cmd.bless() && !cargo.get_envs().any(|v| v.0 == "RUSTC_BLESS") {

src/bootstrap/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ Executed at: {executed_at}"#,
16911691
}
16921692
}
16931693
if let Ok(()) = fs::hard_link(&src, dst) {
1694-
// Attempt to "easy copy" by creating a hard link (symlinks are priviledged on windows),
1694+
// Attempt to "easy copy" by creating a hard link (symlinks are privileged on windows),
16951695
// but if that fails just fall back to a slow `copy` operation.
16961696
} else {
16971697
if let Err(e) = fs::copy(&src, dst) {

src/bootstrap/src/utils/tarball.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Facilitates the management and generation of tarballs.
22
//!
33
//! Tarballs efficiently hold Rust compiler build artifacts and
4-
//! capture a snapshot of each boostrap stage.
4+
//! capture a snapshot of each bootstrap stage.
55
//! In uplifting, a tarball from Stage N captures essential components
66
//! to assemble Stage N + 1 compiler.
77

src/ci/docker/run.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
7676
# Include cache version. Can be used to manually bust the Docker cache.
7777
echo "2" >> $hash_key
7878

79-
echo "Image input"
79+
echo "::group::Image checksum input"
8080
cat $hash_key
81+
echo "::endgroup::"
8182

8283
cksum=$(sha512sum $hash_key | \
8384
awk '{print $1}')

src/ci/scripts/install-clang.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LLVM_VERSION="18.1.4"
1515

1616
if isMacOS; then
1717
# FIXME: This is the latest pre-built version of LLVM that's available for
18-
# x86_64 MacOS. We may want to consider bulding our own LLVM binaries
18+
# x86_64 MacOS. We may want to consider building our own LLVM binaries
1919
# instead, or set `USE_XCODE_CLANG` like AArch64 does.
2020
LLVM_VERSION="15.0.7"
2121

src/doc/rustc/src/SUMMARY.md

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
- [csky-unknown-linux-gnuabiv2\*](platform-support/csky-unknown-linux-gnuabiv2.md)
5757
- [hexagon-unknown-linux-musl](platform-support/hexagon-unknown-linux-musl.md)
5858
- [hexagon-unknown-none-elf](platform-support/hexagon-unknown-none-elf.md)
59+
- [illumos](platform-support/illumos.md)
5960
- [loongarch\*-unknown-linux-\*](platform-support/loongarch-linux.md)
6061
- [loongarch\*-unknown-none\*](platform-support/loongarch-none.md)
6162
- [m68k-unknown-linux-gnu](platform-support/m68k-unknown-linux-gnu.md)

src/doc/rustc/src/platform-support.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ target | notes
102102
[`riscv64gc-unknown-linux-musl`](platform-support/riscv64gc-unknown-linux-musl.md) | RISC-V Linux (kernel 4.20, musl 1.2.3)
103103
[`s390x-unknown-linux-gnu`](platform-support/s390x-unknown-linux-gnu.md) | S390x Linux (kernel 3.2, glibc 2.17)
104104
[`x86_64-unknown-freebsd`](platform-support/freebsd.md) | 64-bit amd64 FreeBSD
105-
`x86_64-unknown-illumos` | illumos
105+
[`x86_64-unknown-illumos`](platform-support/illumos.md) | illumos
106106
`x86_64-unknown-linux-musl` | 64-bit Linux with musl 1.2.3
107107
[`x86_64-unknown-netbsd`](platform-support/netbsd.md) | NetBSD/amd64
108108

@@ -255,7 +255,7 @@ target | std | host | notes
255255
[`aarch64-nintendo-switch-freestanding`](platform-support/aarch64-nintendo-switch-freestanding.md) | * | | ARM64 Nintendo Switch, Horizon
256256
[`aarch64-unknown-freebsd`](platform-support/freebsd.md) | ✓ | ✓ | ARM64 FreeBSD
257257
[`aarch64-unknown-hermit`](platform-support/hermit.md) | ✓ | | ARM64 Hermit
258-
`aarch64-unknown-illumos` | ✓ | ✓ | ARM64 illumos
258+
[`aarch64-unknown-illumos`](platform-support/illumos.md) | ✓ | ✓ | ARM64 illumos
259259
`aarch64-unknown-linux-gnu_ilp32` | ✓ | ✓ | ARM64 Linux (ILP32 ABI)
260260
[`aarch64-unknown-netbsd`](platform-support/netbsd.md) | ✓ | ✓ | ARM64 NetBSD
261261
[`aarch64-unknown-nto-qnx700`](platform-support/nto-qnx.md) | ? | | ARM64 QNX Neutrino 7.0 RTOS |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# `aarch64-unknown-illumos` and `x86_64-unknown-illumos`
2+
3+
**Tier: 2/3**
4+
5+
[illumos](https://www.illumos.org/), is a Unix operating system which provides next-generation features for downstream distributions,
6+
including advanced system debugging, next generation filesystem, networking, and virtualization options.
7+
8+
## Target maintainers
9+
10+
- Joshua M. Clulow ([@jclulow](https://github.com/jclulow))
11+
- Patrick Mooney ([@pfmooney](https://github.com/pfmooney))
12+
13+
## Requirements
14+
15+
The target supports host tools.
16+
17+
The illumos target supports `std` and uses the standard ELF file format.
18+
19+
`x86_64-unknown-illumos` is a tier 2 target with host tools.
20+
`aarch64-unknown-illumos` is a tier 3 target.
21+
22+
## Building the target
23+
24+
These targets can be built by adding `aarch64-unknown-illumos` and
25+
`x86_64-unknown-illumos` as targets in the rustc list.
26+
27+
## Building Rust programs
28+
29+
Rust ships pre-compiled artifacts for the `x86_64-unknown-illumos` target.
30+
Rust does not ship pre-compiled artifacts for `aarch64-unknown-illumos`,
31+
it requires building the target either as shown above or using `-Zbuild-std`.
32+
33+
## Testing
34+
35+
Tests can be run in the same way as a regular binary.
36+
37+
## Cross-compilation toolchains and C code
38+
39+
The target supports C code.
40+
41+
The illumos project makes available [prebuilt sysroot artefacts](https://github.com/illumos/sysroot) which can be used for cross compilation.
42+
The official Rust binaries are cross-compiled using these artefacts.

src/etc/test-float-parse/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
These are tests designed to test decimal to float conversions (`dec2flt`) used
44
by the standard library.
55

6-
It consistes of a collection of test generators that each generate a set of
6+
It consists of a collection of test generators that each generate a set of
77
patterns intended to test a specific property. In addition, there are exhaustive
88
tests (for <= `f32`) and fuzzers (for anything that can't be run exhaustively).
99

src/etc/test-float-parse/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const DEFAULT_MAX_FAILURES: u64 = 20;
3535
/// Register exhaustive tests only for <= 32 bits. No more because it would take years.
3636
const MAX_BITS_FOR_EXHAUUSTIVE: u32 = 32;
3737

38-
/// If there are more tests than this threashold, the test will be defered until after all
38+
/// If there are more tests than this threshold, the test will be deferred until after all
3939
/// others run (so as to avoid thread pool starvation). They also can be excluded with
4040
/// `--skip-huge`.
4141
const HUGE_TEST_CUTOFF: u64 = 5_000_000;
@@ -109,7 +109,7 @@ pub fn run(cfg: Config, include: &[String], exclude: &[String]) -> ExitCode {
109109
ui::finish(&tests, elapsed, &cfg)
110110
}
111111

112-
/// Enumerate tests to run but don't actaully run them.
112+
/// Enumerate tests to run but don't actually run them.
113113
pub fn register_tests(cfg: &Config) -> Vec<TestInfo> {
114114
let mut tests = Vec::new();
115115

@@ -120,7 +120,7 @@ pub fn register_tests(cfg: &Config) -> Vec<TestInfo> {
120120
tests.sort_unstable_by_key(|t| (t.float_name, t.gen_name));
121121
for i in 0..(tests.len() - 1) {
122122
if tests[i].gen_name == tests[i + 1].gen_name {
123-
panic!("dupliate test name {}", tests[i].gen_name);
123+
panic!("duplicate test name {}", tests[i].gen_name);
124124
}
125125
}
126126

@@ -295,7 +295,7 @@ enum Update {
295295
fail: CheckFailure,
296296
/// String for which parsing was attempted.
297297
input: Box<str>,
298-
/// The parsed & decomposed `FloatRes`, aleady stringified so we don't need generics here.
298+
/// The parsed & decomposed `FloatRes`, already stringified so we don't need generics here.
299299
float_res: Box<str>,
300300
},
301301
/// Exited with an unexpected condition.

src/tools/linkchecker/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
//!
99
//! Currently uses a combination of HTML parsing to
1010
//! extract the `href` and `id` attributes,
11-
//! and regex search on the orignal markdown to handle intra-doc links.
11+
//! and regex search on the original markdown to handle intra-doc links.
1212
//!
1313
//! These values are then translated to file URLs if possible and then the
1414
//! destination is asserted to exist.

src/tools/nix-dev-shell/envrc-flake

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# If you want to use this as an .envrc file to create a shell with necessery components
1+
# If you want to use this as an .envrc file to create a shell with necessary components
22
# to develop rustc, use the following command in the root of the rusr checkout:
33
#
44
# ln -s ./src/tools/nix-dev-shell/envrc-flake ./.envrc && nix flake update --flake ./src/tools/nix-dev-shell

src/tools/nix-dev-shell/envrc-shell

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# If you want to use this as an .envrc file to create a shell with necessery components
1+
# If you want to use this as an .envrc file to create a shell with necessary components
22
# to develop rustc, use the following command in the root of the rusr checkout:
33
#
44
# ln -s ./src/tools/nix-dev-shell/envrc-shell ./.envrc

src/tools/suggest-tests/src/static_suggestions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::sync::OnceLock;
22

33
use crate::{Suggestion, sug};
44

5-
// FIXME: perhaps this could use `std::lazy` when it is stablizied
5+
// FIXME: perhaps this could use `std::lazy` when it is stabilized
66
macro_rules! static_suggestions {
77
($( [ $( $glob:expr ),* $(,)? ] => [ $( $suggestion:expr ),* $(,)? ] ),* $(,)? ) => {
88
pub(crate) fn static_suggestions() -> &'static [(Vec<&'static str>, Vec<Suggestion>)]

tests/codegen/range_to_inclusive.rs

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//! Test that `RangeTo` and `RangeToInclusive` generate identical
2+
//! (and optimal) code; #63646
3+
//@ compile-flags: -O -Zmerge-functions=disabled
4+
#![crate_type = "lib"]
5+
6+
#[no_mangle]
7+
// CHECK-LABEL: range_to(
8+
pub fn range_to(a: i32, mut b: i32) -> i32 {
9+
// CHECK: %1 = and i32 %0, %a
10+
// CHECK-NEXT: ret i32 %1
11+
for _ in 0..65 {
12+
b &= a;
13+
}
14+
15+
b
16+
}
17+
18+
#[no_mangle]
19+
// CHECK-LABEL: range_to_inclusive(
20+
pub fn range_to_inclusive(a: i32, mut b: i32) -> i32 {
21+
// CHECK: %1 = and i32 %0, %a
22+
// CHECK-NEXT: ret i32 %1
23+
for _ in 0..=64 {
24+
b &= a;
25+
}
26+
27+
b
28+
}

tests/ui/associated-types/associated-types-eq-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn baz<I: Tr1>(_x: &<I as Tr1<A=Bar>>::A) {}
3333
trait Tr2<T1, T2, T3> {
3434
}
3535

36-
// Test for when wrongly specifed equality constraint's ident
36+
// Test for when wrongly specified equality constraint's ident
3737
// matches some generic param's ident
3838
// (Note: E0229 is emitted only for the first erroneous equality
3939
// constraint (T2) not for any subequent ones (e.g. T3))

tests/ui/associated-types/project-defer-unification.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ where Pix: Pixel<Subpixel=u8> + 'static,
9393

9494
let mut indices: ImageBuffer<_,Vec<_>> = loop { };
9595
for (pixel, idx) in image.pixels().zip(indices.pixels_mut()) {
96-
// failured occurred here ^^ because we were requiring that we
96+
// failure occurred here ^^ because we were requiring that we
9797
// could project Pixel or Subpixel from `T_indices` (type of
9898
// `indices`), but the type is insufficiently constrained
9999
// until we reach the return below.

0 commit comments

Comments
 (0)