Skip to content

Hir item kind field order #141740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 31, 2025
Merged

Conversation

nnethercote
Copy link
Contributor

@nnethercote nnethercote commented May 29, 2025

A follow-up to #141675.

r? @fee1-dead

@rustbot rustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels May 29, 2025
@rustbot
Copy link
Collaborator

rustbot commented May 29, 2025

HIR ty lowering was modified

cc @fmease

Some changes occurred in src/tools/clippy

cc @rust-lang/clippy

Some changes occurred in compiler/rustc_passes/src/check_attr.rs

cc @jdonszelmann

Specifically `TyAlias`, `Enum`, `Struct`, `Union`. So the fields match
the textual order in the source code.

The interesting part of the change is in
`compiler/rustc_hir/src/hir.rs`. The rest is extremely mechanical
refactoring.
In `Fn`, put `ident` next to `generics` as is common in many other
types.

In `print_fn`, make the argument order match the printing order.
@nnethercote nnethercote force-pushed the hir-ItemKind-field-order branch from 976e31b to aa3009d Compare May 29, 2025 16:34
@rust-log-analyzer
Copy link
Collaborator

A job failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
info: removing rustup binaries
info: rustup is uninstalled
##[group]Image checksum input
mingw-check-tidy
# We use the ghcr base image because ghcr doesn't have a rate limit
# and the mingw-check-tidy job doesn't cache docker images in CI.
FROM ghcr.io/rust-lang/ubuntu:22.04

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
  g++ \
---

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,cpp
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
#    pip-compile --allow-unsafe --generate-hashes reuse-requirements.in
---
#8 6.490 Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#8 6.492 Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#8 6.582 Ign:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#8 7.112 Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
#8 10.50 Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#8 10.50   Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable)
#8 10.59 Err:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#8 10.59   Unable to connect to archive.ubuntu.com:80:
#8 10.59 Err:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#8 10.59   Unable to connect to archive.ubuntu.com:80:
#8 11.11 Err:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
#8 11.11   Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable)
#8 11.12 Reading package lists...
#8 11.13 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable)
#8 11.13 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Unable to connect to archive.ubuntu.com:80:
#8 11.13 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Unable to connect to archive.ubuntu.com:80:
#8 11.13 W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable)
#8 11.13 W: Some index files failed to download. They have been ignored, or old ones used instead.
#8 11.13 Reading package lists...
#8 11.14 Building dependency tree...
#8 11.14 Reading state information...
#8 11.14 Package ca-certificates is not available, but is referred to by another package.
#8 11.14 This may mean that the package is missing, has been obsoleted, or
#8 11.14 is only available from another source
#8 11.14 
#8 11.14 Package xz-utils is not available, but is referred to by another package.
#8 11.14 This may mean that the package is missing, has been obsoleted, or
#8 11.14 is only available from another source
#8 11.14 
#8 11.14 E: Unable to locate package make
#8 11.14 E: Unable to locate package ninja-build
#8 11.14 E: Unable to locate package file
#8 11.14 E: Unable to locate package curl
#8 11.14 E: Package 'ca-certificates' has no installation candidate
#8 11.14 E: Unable to locate package python2.7
#8 11.14 E: Couldn't find any package by glob 'python2.7'
#8 11.14 E: Couldn't find any package by regex 'python2.7'
#8 11.14 E: Unable to locate package python3
#8 11.14 E: Unable to locate package python3-pip
#8 11.14 E: Unable to locate package python3-pkg-resources
#8 11.14 E: Unable to locate package git
#8 11.14 E: Unable to locate package cmake
#8 11.14 E: Unable to locate package sudo
#8 11.14 E: Unable to locate package gdb
#8 11.14 E: Package 'xz-utils' has no installation candidate
#8 11.14 E: Unable to locate package libssl-dev
#8 11.14 E: Unable to locate package pkg-config
#8 11.14 E: Unable to locate package mingw-w64
#8 ERROR: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends   g++   make   ninja-build   file   curl   ca-certificates   python2.7   python3   python3-pip   python3-pkg-resources   git   cmake   sudo   gdb   xz-utils   libssl-dev   pkg-config   mingw-w64   && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
------
 > importing cache manifest from ghcr.io/rust-lang/rust-ci-cache:0d26f39b56766d0227661c8d43f2d69cb88e356bc073d1b71bae7950b4d6d378eea4b5456aca131729e17e9fadbcbdd2d9e663cc0aa3aa2e0fbca2993743babd:
------
------
 > [2/8] RUN apt-get update && apt-get install -y --no-install-recommends   g++   make   ninja-build   file   curl   ca-certificates   python2.7   python3   python3-pip   python3-pkg-resources   git   cmake   sudo   gdb   xz-utils   libssl-dev   pkg-config   mingw-w64   && rm -rf /var/lib/apt/lists/*:
11.14 E: Unable to locate package python3-pip
11.14 E: Unable to locate package python3-pkg-resources
11.14 E: Unable to locate package git
11.14 E: Unable to locate package cmake
11.14 E: Unable to locate package sudo
11.14 E: Unable to locate package gdb
11.14 E: Package 'xz-utils' has no installation candidate
11.14 E: Unable to locate package libssl-dev
11.14 E: Unable to locate package pkg-config
11.14 E: Unable to locate package mingw-w64
------

 1 warning found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 39)
Dockerfile:6
---
#7 6.960 Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#7 7.044 Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#7 7.046 Ign:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#7 7.473 Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
#7 10.97 Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#7 10.97   Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable)
#7 11.05 Err:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#7 11.05   Unable to connect to archive.ubuntu.com:80:
#7 11.13 Err:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#7 11.13   Unable to connect to archive.ubuntu.com:80:
#7 11.56 Err:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
#7 11.56   Could not connect to security.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable)
#7 11.56 Reading package lists...
#7 11.57 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable)
#7 11.57 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Unable to connect to archive.ubuntu.com:80:
#7 11.57 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Unable to connect to archive.ubuntu.com:80:
#7 11.57 W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Could not connect to security.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable)
#7 11.57 W: Some index files failed to download. They have been ignored, or old ones used instead.
#7 11.58 Reading package lists...
#7 11.58 Building dependency tree...
#7 11.58 Reading state information...
#7 11.58 Package ca-certificates is not available, but is referred to by another package.
#7 11.58 This may mean that the package is missing, has been obsoleted, or
#7 11.58 is only available from another source
#7 11.58 
#7 11.58 Package xz-utils is not available, but is referred to by another package.
#7 11.58 This may mean that the package is missing, has been obsoleted, or
#7 11.58 is only available from another source
#7 11.58 
#7 11.58 E: Unable to locate package make
#7 11.58 E: Unable to locate package ninja-build
#7 11.58 E: Unable to locate package file
#7 11.58 E: Unable to locate package curl
#7 11.58 E: Package 'ca-certificates' has no installation candidate
#7 11.58 E: Unable to locate package python2.7
#7 11.58 E: Couldn't find any package by glob 'python2.7'
#7 11.58 E: Couldn't find any package by regex 'python2.7'
#7 11.58 E: Unable to locate package python3
#7 11.58 E: Unable to locate package python3-pip
#7 11.58 E: Unable to locate package python3-pkg-resources
#7 11.58 E: Unable to locate package git
#7 11.58 E: Unable to locate package cmake
#7 11.58 E: Unable to locate package sudo
#7 11.58 E: Unable to locate package gdb
#7 11.58 E: Package 'xz-utils' has no installation candidate
#7 11.58 E: Unable to locate package libssl-dev
#7 11.58 E: Unable to locate package pkg-config
#7 11.58 E: Unable to locate package mingw-w64
#7 ERROR: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends   g++   make   ninja-build   file   curl   ca-certificates   python2.7   python3   python3-pip   python3-pkg-resources   git   cmake   sudo   gdb   xz-utils   libssl-dev   pkg-config   mingw-w64   && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
------
 > importing cache manifest from ghcr.io/rust-lang/rust-ci-cache:0d26f39b56766d0227661c8d43f2d69cb88e356bc073d1b71bae7950b4d6d378eea4b5456aca131729e17e9fadbcbdd2d9e663cc0aa3aa2e0fbca2993743babd:
------
------
 > [2/8] RUN apt-get update && apt-get install -y --no-install-recommends   g++   make   ninja-build   file   curl   ca-certificates   python2.7   python3   python3-pip   python3-pkg-resources   git   cmake   sudo   gdb   xz-utils   libssl-dev   pkg-config   mingw-w64   && rm -rf /var/lib/apt/lists/*:
11.58 E: Unable to locate package python3-pip
11.58 E: Unable to locate package python3-pkg-resources
11.58 E: Unable to locate package git
11.58 E: Unable to locate package cmake
11.58 E: Unable to locate package sudo
11.58 E: Unable to locate package gdb
11.58 E: Package 'xz-utils' has no installation candidate
11.58 E: Unable to locate package libssl-dev
11.58 E: Unable to locate package pkg-config
11.58 E: Unable to locate package mingw-w64
------

 1 warning found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 39)
Dockerfile:6
---
#7 6.328 Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#7 6.413 Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#7 6.415 Ign:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#7 7.570 Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
#7 10.33 Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#7 10.33   Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable)
#7 10.42 Err:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#7 10.42   Unable to connect to archive.ubuntu.com:80:
#7 10.50 Err:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#7 10.50   Unable to connect to archive.ubuntu.com:80:
#7 11.65 Err:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
#7 11.65   Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable)
#7 11.66 Reading package lists...
#7 11.67 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable)
#7 11.67 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Unable to connect to archive.ubuntu.com:80:
#7 11.67 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Unable to connect to archive.ubuntu.com:80:
#7 11.67 W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable)
#7 11.67 W: Some index files failed to download. They have been ignored, or old ones used instead.
#7 11.67 Reading package lists...
#7 11.68 Building dependency tree...
#7 11.68 Reading state information...
#7 11.68 Package ca-certificates is not available, but is referred to by another package.
#7 11.68 This may mean that the package is missing, has been obsoleted, or
#7 11.68 is only available from another source
#7 11.68 
#7 11.68 Package xz-utils is not available, but is referred to by another package.
#7 11.68 This may mean that the package is missing, has been obsoleted, or
#7 11.68 is only available from another source
#7 11.68 
#7 11.68 E: Unable to locate package make
#7 11.68 E: Unable to locate package ninja-build
#7 11.68 E: Unable to locate package file
#7 11.68 E: Unable to locate package curl
#7 11.68 E: Package 'ca-certificates' has no installation candidate
#7 11.68 E: Unable to locate package python2.7
#7 11.68 E: Couldn't find any package by glob 'python2.7'
#7 11.68 E: Couldn't find any package by regex 'python2.7'
#7 11.68 E: Unable to locate package python3
#7 11.68 E: Unable to locate package python3-pip
#7 11.68 E: Unable to locate package python3-pkg-resources
#7 11.68 E: Unable to locate package git
#7 11.68 E: Unable to locate package cmake
#7 11.68 E: Unable to locate package sudo
#7 11.68 E: Unable to locate package gdb
#7 11.68 E: Package 'xz-utils' has no installation candidate
#7 11.68 E: Unable to locate package libssl-dev
#7 11.68 E: Unable to locate package pkg-config
#7 11.68 E: Unable to locate package mingw-w64
#7 ERROR: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends   g++   make   ninja-build   file   curl   ca-certificates   python2.7   python3   python3-pip   python3-pkg-resources   git   cmake   sudo   gdb   xz-utils   libssl-dev   pkg-config   mingw-w64   && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
------
 > importing cache manifest from ghcr.io/rust-lang/rust-ci-cache:0d26f39b56766d0227661c8d43f2d69cb88e356bc073d1b71bae7950b4d6d378eea4b5456aca131729e17e9fadbcbdd2d9e663cc0aa3aa2e0fbca2993743babd:
------
------
 > [2/8] RUN apt-get update && apt-get install -y --no-install-recommends   g++   make   ninja-build   file   curl   ca-certificates   python2.7   python3   python3-pip   python3-pkg-resources   git   cmake   sudo   gdb   xz-utils   libssl-dev   pkg-config   mingw-w64   && rm -rf /var/lib/apt/lists/*:
11.68 E: Unable to locate package python3-pip
11.68 E: Unable to locate package python3-pkg-resources
11.68 E: Unable to locate package git
11.68 E: Unable to locate package cmake
11.68 E: Unable to locate package sudo
11.68 E: Unable to locate package gdb
11.68 E: Package 'xz-utils' has no installation candidate
11.68 E: Unable to locate package libssl-dev
11.68 E: Unable to locate package pkg-config
11.68 E: Unable to locate package mingw-w64
------

 1 warning found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 39)
Dockerfile:6
---
#7 6.371 Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#7 6.373 Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#7 6.380 Ign:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#7 7.377 Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
#7 10.38 Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#7 10.38   Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable)
#7 10.38 Err:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#7 10.38   Unable to connect to archive.ubuntu.com:80:
#7 10.46 Err:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#7 10.46   Unable to connect to archive.ubuntu.com:80:
#7 11.38 Err:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
#7 11.38   Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable)
#7 11.38 Reading package lists...
#7 11.39 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable)
#7 11.39 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Unable to connect to archive.ubuntu.com:80:
#7 11.39 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Unable to connect to archive.ubuntu.com:80:
#7 11.39 W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable)
#7 11.39 W: Some index files failed to download. They have been ignored, or old ones used instead.
#7 11.40 Reading package lists...
#7 11.41 Building dependency tree...
#7 11.41 Reading state information...
#7 11.41 Package ca-certificates is not available, but is referred to by another package.
#7 11.41 This may mean that the package is missing, has been obsoleted, or
#7 11.41 is only available from another source
#7 11.41 
#7 11.41 Package xz-utils is not available, but is referred to by another package.
#7 11.41 This may mean that the package is missing, has been obsoleted, or
#7 11.41 is only available from another source
#7 11.41 
#7 11.41 E: Unable to locate package make
#7 11.41 E: Unable to locate package ninja-build
#7 11.41 E: Unable to locate package file
#7 11.41 E: Unable to locate package curl
#7 11.41 E: Package 'ca-certificates' has no installation candidate
#7 11.41 E: Unable to locate package python2.7
#7 11.41 E: Couldn't find any package by glob 'python2.7'
#7 11.41 E: Couldn't find any package by regex 'python2.7'
#7 11.41 E: Unable to locate package python3
#7 11.41 E: Unable to locate package python3-pip
#7 11.41 E: Unable to locate package python3-pkg-resources
#7 11.41 E: Unable to locate package git
#7 11.41 E: Unable to locate package cmake
#7 11.41 E: Unable to locate package sudo
#7 11.41 E: Unable to locate package gdb
#7 11.41 E: Package 'xz-utils' has no installation candidate
#7 11.41 E: Unable to locate package libssl-dev
#7 11.41 E: Unable to locate package pkg-config
#7 11.41 E: Unable to locate package mingw-w64
#7 ERROR: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends   g++   make   ninja-build   file   curl   ca-certificates   python2.7   python3   python3-pip   python3-pkg-resources   git   cmake   sudo   gdb   xz-utils   libssl-dev   pkg-config   mingw-w64   && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
------
 > importing cache manifest from ghcr.io/rust-lang/rust-ci-cache:0d26f39b56766d0227661c8d43f2d69cb88e356bc073d1b71bae7950b4d6d378eea4b5456aca131729e17e9fadbcbdd2d9e663cc0aa3aa2e0fbca2993743babd:
------
------
 > [2/8] RUN apt-get update && apt-get install -y --no-install-recommends   g++   make   ninja-build   file   curl   ca-certificates   python2.7   python3   python3-pip   python3-pkg-resources   git   cmake   sudo   gdb   xz-utils   libssl-dev   pkg-config   mingw-w64   && rm -rf /var/lib/apt/lists/*:
11.41 E: Unable to locate package python3-pip
11.41 E: Unable to locate package python3-pkg-resources
11.41 E: Unable to locate package git
11.41 E: Unable to locate package cmake
11.41 E: Unable to locate package sudo
11.41 E: Unable to locate package gdb
11.41 E: Package 'xz-utils' has no installation candidate
11.41 E: Unable to locate package libssl-dev
11.41 E: Unable to locate package pkg-config
11.41 E: Unable to locate package mingw-w64
------

 1 warning found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 39)
Dockerfile:6
---
#7 6.386 Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#7 6.479 Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#7 6.481 Ign:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#7 7.536 Ign:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
#7 10.41 Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease
#7 10.41   Could not connect to archive.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable)
#7 10.48 Err:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
#7 10.48   Unable to connect to archive.ubuntu.com:80:
#7 10.48 Err:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
#7 10.48   Unable to connect to archive.ubuntu.com:80:
#7 11.62 Err:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
#7 11.62   Could not connect to security.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable)
#7 11.63 Reading package lists...
#7 11.63 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease  Could not connect to archive.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to archive.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable)
#7 11.63 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease  Unable to connect to archive.ubuntu.com:80:
#7 11.63 W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease  Unable to connect to archive.ubuntu.com:80:
#7 11.63 W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease  Could not connect to security.ubuntu.com:80 (185.125.190.36). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.81). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (185.125.190.39). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::103). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.83). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::16). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (185.125.190.82). - connect (111: Connection refused) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::101). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (2620:2d:4000:1::102). - connect (101: Network is unreachable)
#7 11.63 W: Some index files failed to download. They have been ignored, or old ones used instead.
#7 11.64 Reading package lists...
#7 11.65 Building dependency tree...
#7 11.65 Reading state information...
#7 11.65 Package ca-certificates is not available, but is referred to by another package.
#7 11.65 This may mean that the package is missing, has been obsoleted, or
#7 11.65 is only available from another source
#7 11.65 
#7 11.65 Package xz-utils is not available, but is referred to by another package.
#7 11.65 This may mean that the package is missing, has been obsoleted, or
#7 11.65 is only available from another source
#7 11.65 
#7 11.65 E: Unable to locate package make
#7 11.65 E: Unable to locate package ninja-build
#7 11.65 E: Unable to locate package file
#7 11.65 E: Unable to locate package curl
#7 11.65 E: Package 'ca-certificates' has no installation candidate
#7 11.65 E: Unable to locate package python2.7
#7 11.65 E: Couldn't find any package by glob 'python2.7'
#7 11.65 E: Couldn't find any package by regex 'python2.7'
#7 11.65 E: Unable to locate package python3
#7 11.65 E: Unable to locate package python3-pip
#7 11.65 E: Unable to locate package python3-pkg-resources
#7 11.65 E: Unable to locate package git
#7 11.65 E: Unable to locate package cmake
#7 11.65 E: Unable to locate package sudo
#7 11.65 E: Unable to locate package gdb
#7 11.65 E: Package 'xz-utils' has no installation candidate
#7 11.65 E: Unable to locate package libssl-dev
#7 11.65 E: Unable to locate package pkg-config
#7 11.65 E: Unable to locate package mingw-w64
#7 ERROR: process "/bin/sh -c apt-get update && apt-get install -y --no-install-recommends   g++   make   ninja-build   file   curl   ca-certificates   python2.7   python3   python3-pip   python3-pkg-resources   git   cmake   sudo   gdb   xz-utils   libssl-dev   pkg-config   mingw-w64   && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
------
 > importing cache manifest from ghcr.io/rust-lang/rust-ci-cache:0d26f39b56766d0227661c8d43f2d69cb88e356bc073d1b71bae7950b4d6d378eea4b5456aca131729e17e9fadbcbdd2d9e663cc0aa3aa2e0fbca2993743babd:
------
------
 > [2/8] RUN apt-get update && apt-get install -y --no-install-recommends   g++   make   ninja-build   file   curl   ca-certificates   python2.7   python3   python3-pip   python3-pkg-resources   git   cmake   sudo   gdb   xz-utils   libssl-dev   pkg-config   mingw-w64   && rm -rf /var/lib/apt/lists/*:
11.65 E: Unable to locate package python3-pip
11.65 E: Unable to locate package python3-pkg-resources
11.65 E: Unable to locate package git
11.65 E: Unable to locate package cmake
11.65 E: Unable to locate package sudo
11.65 E: Unable to locate package gdb
11.65 E: Package 'xz-utils' has no installation candidate
11.65 E: Unable to locate package libssl-dev
11.65 E: Unable to locate package pkg-config
11.65 E: Unable to locate package mingw-w64
------

 1 warning found (use docker --debug to expand):
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 39)
Dockerfile:6

Copy link
Member

@fee1-dead fee1-dead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kinda wonder why these enum variants can't use struct style instead of tuple style. But that is separate from this PR.

@fee1-dead
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented May 31, 2025

📌 Commit aa3009d has been approved by fee1-dead

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 31, 2025
bors added a commit that referenced this pull request May 31, 2025
Rollup of 8 pull requests

Successful merges:

 - #140787 (Note expr being cast when encounter NonScalar cast error)
 - #141112 (std: note that `std::str::from_utf8*` functions are aliases to `<str>::from_utf8*` methods)
 - #141646 (Document what `distcheck` is intended to exercise)
 - #141740 (Hir item kind field order)
 - #141793 (`tests/ui`: A New Order [1/N])
 - #141805 (Update `compiler-builtins` to 0.1.160)
 - #141815 (Enable non-leaf Frame Pointers for mingw-w64 Arm64 Windows)
 - #141819 (Fixes for building windows-gnullvm hosts)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 387170c into rust-lang:master May 31, 2025
16 of 17 checks passed
@rustbot rustbot added this to the 1.89.0 milestone May 31, 2025
rust-timer added a commit that referenced this pull request May 31, 2025
Rollup merge of #141740 - nnethercote:hir-ItemKind-field-order, r=fee1-dead

Hir item kind field order

A follow-up to #141675.

r? `@fee1-dead`
@nnethercote
Copy link
Contributor Author

I kinda wonder why these enum variants can't use struct style instead of tuple style. But that is separate from this PR.

I tried doing that with the AST in #141675 and it wasn't an improvement. Lots of Foo(a, b)-to-Foo { a, b } changes which aren't really any better but are slightly longer and more likely to cause a single statement to span mulitiple lines.

github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request Jun 3, 2025
…iaskrgr

Rollup of 8 pull requests

Successful merges:

 - rust-lang#140787 (Note expr being cast when encounter NonScalar cast error)
 - rust-lang#141112 (std: note that `std::str::from_utf8*` functions are aliases to `<str>::from_utf8*` methods)
 - rust-lang#141646 (Document what `distcheck` is intended to exercise)
 - rust-lang#141740 (Hir item kind field order)
 - rust-lang#141793 (`tests/ui`: A New Order [1/N])
 - rust-lang#141805 (Update `compiler-builtins` to 0.1.160)
 - rust-lang#141815 (Enable non-leaf Frame Pointers for mingw-w64 Arm64 Windows)
 - rust-lang#141819 (Fixes for building windows-gnullvm hosts)

r? `@ghost`
`@rustbot` modify labels: rollup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-attributes Area: Attributes (`#[…]`, `#![…]`) S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants