Skip to content

[do not merge] CI experiments #112049

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented May 28, 2023

Various CI experiments for try/dist builds.

r? @ghost

@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels May 28, 2023
@Kobzol
Copy link
Contributor Author

Kobzol commented May 28, 2023

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 28, 2023
@bors
Copy link
Collaborator

bors commented May 28, 2023

⌛ Trying commit c42e33cf36e728937b9e7d9bbb16c17d0b364e23 with merge c60ecf63ab7a2a0a260b0a8ee02adff4f4dbfe87...

@bors
Copy link
Collaborator

bors commented May 28, 2023

☀️ Try build successful - checks-actions
Build commit: c60ecf63ab7a2a0a260b0a8ee02adff4f4dbfe87 (c60ecf63ab7a2a0a260b0a8ee02adff4f4dbfe87)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (c60ecf63ab7a2a0a260b0a8ee02adff4f4dbfe87): comparison URL.

Overall result: ❌✅ regressions and improvements - ACTION NEEDED

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.3% [0.3%, 0.3%] 2
Regressions ❌
(secondary)
0.3% [0.3%, 0.3%] 2
Improvements ✅
(primary)
-0.3% [-0.3%, -0.3%] 1
Improvements ✅
(secondary)
-0.4% [-0.7%, -0.2%] 9
All ❌✅ (primary) 0.1% [-0.3%, 0.3%] 3

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
3.4% [3.4%, 3.4%] 1
Regressions ❌
(secondary)
1.8% [1.8%, 1.8%] 1
Improvements ✅
(primary)
-3.5% [-3.5%, -3.5%] 1
Improvements ✅
(secondary)
-3.4% [-3.7%, -3.1%] 2
All ❌✅ (primary) -0.1% [-3.5%, 3.4%] 2

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.0% [-2.2%, -1.7%] 2
All ❌✅ (primary) - - 0

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 646.44s -> 646.666s (0.03%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels May 29, 2023
@Kobzol
Copy link
Contributor Author

Kobzol commented May 29, 2023

Looks like removing libcore from the profile set doesn't hurt much. Now I'll try to also completely remove rustc-perf gathering when gathering LLVM PGO profiles.

Looks like after the initial stage 2 build with an instrumented LLVM, there is already 6 GiB of profiles (after benchmarks it's usually 20 GiB). So instrumenting stage 2 build provides a lot of data! I'll try what happens if we delete the profiles.

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 29, 2023
@bors
Copy link
Collaborator

bors commented May 29, 2023

⌛ Trying commit 31c917d813e3461b6babe1220a1ac15fc66eae53 with merge 3004a6cee0725e571674b0efdefcd9b82b1e11d6...

@bors
Copy link
Collaborator

bors commented May 29, 2023

☀️ Try build successful - checks-actions
Build commit: 3004a6cee0725e571674b0efdefcd9b82b1e11d6 (3004a6cee0725e571674b0efdefcd9b82b1e11d6)

@rust-timer

This comment has been minimized.

@Kobzol
Copy link
Contributor Author

Kobzol commented May 29, 2023

@bors try

@bors
Copy link
Collaborator

bors commented May 29, 2023

⌛ Trying commit 042e02535bb5a95c8d6d77fc5954d762b73079e0 with merge ed48ba9307a0a1b523e3519499c3918be2dba056...

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (3004a6cee0725e571674b0efdefcd9b82b1e11d6): comparison URL.

Overall result: ❌ regressions - ACTION NEEDED

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
3.2% [0.3%, 7.3%] 51
Regressions ❌
(secondary)
3.1% [0.4%, 5.9%] 24
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 3.2% [0.3%, 7.3%] 51

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.5% [2.5%, 2.5%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
2.6% [0.8%, 4.1%] 32
Regressions ❌
(secondary)
2.8% [1.8%, 3.6%] 12
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 2.6% [0.8%, 4.1%] 32

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 642.999s -> 642.878s (-0.02%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label May 29, 2023
@bors
Copy link
Collaborator

bors commented May 29, 2023

☀️ Try build successful - checks-actions
Build commit: ed48ba9307a0a1b523e3519499c3918be2dba056 (ed48ba9307a0a1b523e3519499c3918be2dba056)

@Kobzol
Copy link
Contributor Author

Kobzol commented May 29, 2023

@rust-timer build ed48ba9307a0a1b523e3519499c3918be2dba056

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (ed48ba9307a0a1b523e3519499c3918be2dba056): comparison URL.

Overall result: ✅ improvements - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-1.0% [-2.0%, -0.3%] 33
Improvements ✅
(secondary)
-1.1% [-1.5%, -0.4%] 12
All ❌✅ (primary) -1.0% [-2.0%, -0.3%] 33

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.5% [2.5%, 2.5%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-2.8% [-2.8%, -2.8%] 1
All ❌✅ (primary) - - 0

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 642.999s -> 644.35s (0.21%)

@rustbot rustbot removed the perf-regression Performance regression. label May 29, 2023
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jun 2, 2025
@rust-bors
Copy link

rust-bors bot commented Jun 2, 2025

☀️ Try build successful (CI)
Build commit: 97ba273 (97ba273fa6b06696fc74cd6279568e5c186a854d)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (97ba273): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: -S-waiting-on-perf +perf-regression

Instruction count

This is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.

mean range count
Regressions ❌
(primary)
0.4% [0.3%, 0.6%] 25
Regressions ❌
(secondary)
0.5% [0.5%, 0.7%] 6
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.6% [-1.0%, -0.3%] 7
All ❌✅ (primary) 0.4% [0.3%, 0.6%] 25

Max RSS (memory usage)

Results (secondary -2.3%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
1.0% [0.7%, 1.4%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.1% [-8.2%, -0.5%] 16
All ❌✅ (primary) - - 0

Cycles

Results (secondary -0.3%)

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.8% [0.4%, 1.9%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.9% [-2.8%, -0.4%] 7
All ❌✅ (primary) - - 0

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 775.84s -> 777.406s (0.20%)
Artifact size: 372.26 MiB -> 371.11 MiB (-0.31%)

@rustbot rustbot added perf-regression Performance regression. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Jun 2, 2025
@Kobzol Kobzol force-pushed the pgo-omit-benchmarks branch from 9d2a460 to 7899c69 Compare June 4, 2025 17:28
@rustbot rustbot added the A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. label Jun 4, 2025
@Kobzol
Copy link
Contributor Author

Kobzol commented Jun 4, 2025

@bors2 try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rust-bors
Copy link

rust-bors bot commented Jun 4, 2025

⌛ Trying commit 7899c69 with merge 77ab4da

To cancel the try build, run the command @bors2 try cancel.

rust-bors bot added a commit that referenced this pull request Jun 4, 2025
[do not merge] CI experiments

Various CI experiments for try/dist builds.

r? `@ghost`
@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jun 4, 2025
@rust-log-analyzer
Copy link
Collaborator

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)
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-1/validate-toolstate.sh /scripts/
COPY host-x86_64/mingw-check-1/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 npm install eslint@$(head -n 1 /tmp/eslint.version) && \
 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
---
#15 3.051 Building wheels for collected packages: reuse
#15 3.052   Building wheel for reuse (pyproject.toml): started
#15 3.265   Building wheel for reuse (pyproject.toml): finished with status 'done'
#15 3.266   Created wheel for reuse: filename=reuse-4.0.3-cp310-cp310-manylinux_2_35_x86_64.whl size=132719 sha256=d2a2565e7037ad3883fb9337653f2e25bbb588534fbef3697286cbc26d1bf634
#15 3.266   Stored in directory: /tmp/pip-ephem-wheel-cache-0kvcoqs8/wheels/3d/8d/0a/e0fc6aba4494b28a967ab5eaf951c121d9c677958714e34532
#15 3.268 Successfully built reuse
#15 3.269 Installing collected packages: boolean-py, binaryornot, tomlkit, reuse, python-debian, markupsafe, license-expression, jinja2, chardet, attrs
#15 3.671 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
#15 3.671 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
#15 4.221 Collecting virtualenv
#15 4.279   Downloading virtualenv-20.31.2-py3-none-any.whl (6.1 MB)
#15 4.594      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.1/6.1 MB 19.4 MB/s eta 0:00:00
#15 4.661 Collecting filelock<4,>=3.12.2
#15 4.672   Downloading filelock-3.18.0-py3-none-any.whl (16 kB)
#15 4.698 Collecting distlib<1,>=0.3.7
#15 4.708   Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)
#15 4.722      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 469.0/469.0 KB 39.5 MB/s eta 0:00:00
#15 4.762 Collecting platformdirs<5,>=3.9.1
#15 4.773   Downloading platformdirs-4.3.8-py3-none-any.whl (18 kB)
#15 4.855 Installing collected packages: distlib, platformdirs, filelock, virtualenv
#15 5.051 Successfully installed distlib-0.3.9 filelock-3.18.0 platformdirs-4.3.8 virtualenv-20.31.2
#15 5.051 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
#15 DONE 5.1s

#16 [10/11] COPY host-x86_64/mingw-check-1/validate-toolstate.sh /scripts/
#16 DONE 0.0s
---
DirectMap4k:      137152 kB
DirectMap2M:     7202816 kB
DirectMap1G:    11534336 kB
##[endgroup]
Executing TIDY_PRINT_DIFF=1 npm install eslint@$(head -n 1 /tmp/eslint.version) &&  python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py,cpp
+ head -n 1 /tmp/eslint.version
+ TIDY_PRINT_DIFF=1 npm install [email protected]
npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead
npm WARN deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead
npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm WARN deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.

added 89 packages in 3s

17 packages are looking for funding
  run `npm fund` for details
+ python2.7 ../x.py test --stage 0 src/tools/tidy tidyselftest --extra-checks=py,cpp
##[group]Building bootstrap
    Finished `dev` profile [unoptimized] target(s) in 0.05s
##[endgroup]
WARN: currently no CI rustc builds have rustc debug assertions enabled. Please either set `rust.debug-assertions` to `false` if you want to use download CI rustc or set `rust.download-rustc` to `false`.
downloading https://static.rust-lang.org/dist/2025-05-27/rustfmt-nightly-x86_64-unknown-linux-gnu.tar.xz
---
fmt: checked 6036 files
tidy check
Running eslint on rustdoc JS files
tidy: Skipping binary file check, read-only filesystem
removing old virtual environment
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10' and 'venv'
creating virtual environment at '/checkout/obj/build/venv' using 'python3.10' and 'virtualenv'
Requirement already satisfied: pip in ./build/venv/lib/python3.10/site-packages (25.1.1)
linting python files
All checks passed!
checking python file formatting
28 files already formatted
checking C++ file formatting
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:3:1: error: code should be clang-formatted [-Wclang-format-violations]
#include "llvm-c/Core.h"
^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:65:56: error: code should be clang-formatted [-Wclang-format-violations]
extern "C" void LLVMRustTimeTraceProfilerInitialize() {
                                                       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:66:33: error: code should be clang-formatted [-Wclang-format-violations]
    timeTraceProfilerInitialize(
                                ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:67:42: error: code should be clang-formatted [-Wclang-format-violations]
            /* TimeTraceGranularity */ 0,
                                         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:71:58: error: code should be clang-formatted [-Wclang-format-violations]
extern "C" void LLVMRustTimeTraceProfilerFinishThread() {
                                                         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:75:72: error: code should be clang-formatted [-Wclang-format-violations]
extern "C" void LLVMRustTimeTraceProfilerFinish(const char *FileName) {
                                                                       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:76:35: error: code should be clang-formatted [-Wclang-format-violations]
    auto FN = StringRef(FileName);
                                  ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:77:24: error: code should be clang-formatted [-Wclang-format-violations]
    std::error_code EC;
                       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:78:64: error: code should be clang-formatted [-Wclang-format-violations]
    auto OS = raw_fd_ostream(FN, EC, sys::fs::CD_CreateAlways);
                                                               ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:80:32: error: code should be clang-formatted [-Wclang-format-violations]
    timeTraceProfilerWrite(OS);
                               ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:208:31: error: code should be clang-formatted [-Wclang-format-violations]
struct LLVMRustThinLTOBuffer {
                              ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:209:22: error: code should be clang-formatted [-Wclang-format-violations]
    std::string data;
                     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:214:58: error: code should be clang-formatted [-Wclang-format-violations]
                                   const char *Feature) {
                                                         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:215:40: error: code should be clang-formatted [-Wclang-format-violations]
    TargetMachine *Target = unwrap(TM);
                                       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:216:66: error: code should be clang-formatted [-Wclang-format-violations]
    const MCSubtargetInfo *MCInfo = Target->getMCSubtargetInfo();
                                                                 ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:220:31: error: code should be clang-formatted [-Wclang-format-violations]
enum class LLVMRustCodeModel {
                              ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:221:10: error: code should be clang-formatted [-Wclang-format-violations]
    Tiny,
         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:222:11: error: code should be clang-formatted [-Wclang-format-violations]
    Small,
          ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:223:12: error: code should be clang-formatted [-Wclang-format-violations]
    Kernel,
           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:224:12: error: code should be clang-formatted [-Wclang-format-violations]
    Medium,
           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:225:11: error: code should be clang-formatted [-Wclang-format-violations]
    Large,
          ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:229:75: error: code should be clang-formatted [-Wclang-format-violations]
static std::optional<CodeModel::Model> fromRust(LLVMRustCodeModel Model) {
                                                                          ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:230:21: error: code should be clang-formatted [-Wclang-format-violations]
    switch (Model) {
                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:231:38: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustCodeModel::Tiny:
                                     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:232:36: error: code should be clang-formatted [-Wclang-format-violations]
            return CodeModel::Tiny;
                                   ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:233:39: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustCodeModel::Small:
                                      ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:234:37: error: code should be clang-formatted [-Wclang-format-violations]
            return CodeModel::Small;
                                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:235:40: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustCodeModel::Kernel:
                                       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:236:38: error: code should be clang-formatted [-Wclang-format-violations]
            return CodeModel::Kernel;
                                     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:237:40: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustCodeModel::Medium:
                                       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:238:38: error: code should be clang-formatted [-Wclang-format-violations]
            return CodeModel::Medium;
                                     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:239:39: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustCodeModel::Large:
                                      ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:240:37: error: code should be clang-formatted [-Wclang-format-violations]
            return CodeModel::Large;
                                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:241:38: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustCodeModel::None:
                                     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:242:33: error: code should be clang-formatted [-Wclang-format-violations]
            return std::nullopt;
                                ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:243:17: error: code should be clang-formatted [-Wclang-format-violations]
        default:
                ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:244:50: error: code should be clang-formatted [-Wclang-format-violations]
            report_fatal_error("Bad CodeModel.");
                                                 ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:248:37: error: code should be clang-formatted [-Wclang-format-violations]
enum class LLVMRustCodeGenOptLevel {
                                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:249:10: error: code should be clang-formatted [-Wclang-format-violations]
    None,
         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:250:10: error: code should be clang-formatted [-Wclang-format-violations]
    Less,
         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:251:13: error: code should be clang-formatted [-Wclang-format-violations]
    Default,
            ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:257:69: error: code should be clang-formatted [-Wclang-format-violations]
static CodeGenOptLevelEnum fromRust(LLVMRustCodeGenOptLevel Level) {
                                                                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:258:21: error: code should be clang-formatted [-Wclang-format-violations]
    switch (Level) {
                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:259:44: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustCodeGenOptLevel::None:
                                           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:260:46: error: code should be clang-formatted [-Wclang-format-violations]
            return CodeGenOptLevelEnum::None;
                                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:261:44: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustCodeGenOptLevel::Less:
                                           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:262:46: error: code should be clang-formatted [-Wclang-format-violations]
            return CodeGenOptLevelEnum::Less;
                                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:263:47: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustCodeGenOptLevel::Default:
                                              ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:264:49: error: code should be clang-formatted [-Wclang-format-violations]
            return CodeGenOptLevelEnum::Default;
                                                ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:265:50: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustCodeGenOptLevel::Aggressive:
                                                 ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:266:52: error: code should be clang-formatted [-Wclang-format-violations]
            return CodeGenOptLevelEnum::Aggressive;
                                                   ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:267:17: error: code should be clang-formatted [-Wclang-format-violations]
        default:
                ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:268:56: error: code should be clang-formatted [-Wclang-format-violations]
            report_fatal_error("Bad CodeGenOptLevel.");
                                                       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:272:41: error: code should be clang-formatted [-Wclang-format-violations]
enum class LLVMRustPassBuilderOptLevel {
                                        ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:273:8: error: code should be clang-formatted [-Wclang-format-violations]
    O0,
       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:274:8: error: code should be clang-formatted [-Wclang-format-violations]
    O1,
       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:275:8: error: code should be clang-formatted [-Wclang-format-violations]
    O2,
       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:276:8: error: code should be clang-formatted [-Wclang-format-violations]
    O3,
       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:277:8: error: code should be clang-formatted [-Wclang-format-violations]
    Os,
       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:281:71: error: code should be clang-formatted [-Wclang-format-violations]
static OptimizationLevel fromRust(LLVMRustPassBuilderOptLevel Level) {
                                                                      ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:282:21: error: code should be clang-formatted [-Wclang-format-violations]
    switch (Level) {
                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:283:46: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustPassBuilderOptLevel::O0:
                                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:284:42: error: code should be clang-formatted [-Wclang-format-violations]
            return OptimizationLevel::O0;
                                         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:285:46: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustPassBuilderOptLevel::O1:
                                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:286:42: error: code should be clang-formatted [-Wclang-format-violations]
            return OptimizationLevel::O1;
                                         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:287:46: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustPassBuilderOptLevel::O2:
                                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:288:42: error: code should be clang-formatted [-Wclang-format-violations]
            return OptimizationLevel::O2;
                                         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:289:46: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustPassBuilderOptLevel::O3:
                                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:290:42: error: code should be clang-formatted [-Wclang-format-violations]
            return OptimizationLevel::O3;
                                         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:291:46: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustPassBuilderOptLevel::Os:
                                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:292:42: error: code should be clang-formatted [-Wclang-format-violations]
            return OptimizationLevel::Os;
                                         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:293:46: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustPassBuilderOptLevel::Oz:
                                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:294:42: error: code should be clang-formatted [-Wclang-format-violations]
            return OptimizationLevel::Oz;
                                         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:295:17: error: code should be clang-formatted [-Wclang-format-violations]
        default:
                ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:296:60: error: code should be clang-formatted [-Wclang-format-violations]
            report_fatal_error("Bad PassBuilderOptLevel.");
                                                           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:300:32: error: code should be clang-formatted [-Wclang-format-violations]
enum class LLVMRustRelocModel {
                               ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:301:12: error: code should be clang-formatted [-Wclang-format-violations]
    Static,
           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:302:9: error: code should be clang-formatted [-Wclang-format-violations]
    PIC,
        ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:303:18: error: code should be clang-formatted [-Wclang-format-violations]
    DynamicNoPic,
                 ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:304:10: error: code should be clang-formatted [-Wclang-format-violations]
    ROPI,
         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:305:10: error: code should be clang-formatted [-Wclang-format-violations]
    RWPI,
         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:309:61: error: code should be clang-formatted [-Wclang-format-violations]
static Reloc::Model fromRust(LLVMRustRelocModel RustReloc) {
                                                            ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:310:25: error: code should be clang-formatted [-Wclang-format-violations]
    switch (RustReloc) {
                        ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:311:41: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustRelocModel::Static:
                                        ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:312:34: error: code should be clang-formatted [-Wclang-format-violations]
            return Reloc::Static;
                                 ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:313:38: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustRelocModel::PIC:
                                     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:314:32: error: code should be clang-formatted [-Wclang-format-violations]
            return Reloc::PIC_;
                               ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:315:47: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustRelocModel::DynamicNoPic:
                                              ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:316:40: error: code should be clang-formatted [-Wclang-format-violations]
            return Reloc::DynamicNoPIC;
                                       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:317:39: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustRelocModel::ROPI:
                                      ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:318:32: error: code should be clang-formatted [-Wclang-format-violations]
            return Reloc::ROPI;
                               ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:319:39: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustRelocModel::RWPI:
                                      ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:320:32: error: code should be clang-formatted [-Wclang-format-violations]
            return Reloc::RWPI;
                               ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:321:43: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustRelocModel::ROPIRWPI:
                                          ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:322:37: error: code should be clang-formatted [-Wclang-format-violations]
            return Reloc::ROPI_RWPI;
                                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:323:6: error: code should be clang-formatted [-Wclang-format-violations]
    }
     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:327:30: error: code should be clang-formatted [-Wclang-format-violations]
enum class LLVMRustFloatABI {
                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:328:13: error: code should be clang-formatted [-Wclang-format-violations]
    Default,
            ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:329:10: error: code should be clang-formatted [-Wclang-format-violations]
    Soft,
         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:333:67: error: code should be clang-formatted [-Wclang-format-violations]
static FloatABI::ABIType fromRust(LLVMRustFloatABI RustFloatAbi) {
                                                                  ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:334:28: error: code should be clang-formatted [-Wclang-format-violations]
    switch (RustFloatAbi) {
                           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:335:40: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustFloatABI::Default:
                                       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:336:38: error: code should be clang-formatted [-Wclang-format-violations]
            return FloatABI::Default;
                                     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:337:37: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustFloatABI::Soft:
                                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:338:35: error: code should be clang-formatted [-Wclang-format-violations]
            return FloatABI::Soft;
                                  ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:339:37: error: code should be clang-formatted [-Wclang-format-violations]
        case LLVMRustFloatABI::Hard:
                                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:340:35: error: code should be clang-formatted [-Wclang-format-violations]
            return FloatABI::Hard;
                                  ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:341:6: error: code should be clang-formatted [-Wclang-format-violations]
    }
     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:346:9: error: code should be clang-formatted [-Wclang-format-violations]
template<typename KV>
        ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:346:22: error: code should be clang-formatted [-Wclang-format-violations]
template<typename KV>
                     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:347:58: error: code should be clang-formatted [-Wclang-format-violations]
static size_t getLongestEntryLength(ArrayRef<KV> Table) {
                                                         ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:348:23: error: code should be clang-formatted [-Wclang-format-violations]
    size_t MaxLen = 0;
                      ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:349:17: error: code should be clang-formatted [-Wclang-format-violations]
    for (auto &I: Table)
                ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:349:25: error: code should be clang-formatted [-Wclang-format-violations]
    for (auto &I: Table)
                        ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:350:55: error: code should be clang-formatted [-Wclang-format-violations]
        MaxLen = std::max(MaxLen, std::strlen(I.Key));
                                                      ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:355:64: error: code should be clang-formatted [-Wclang-format-violations]
                                        RustStringRef OutStr) {
                                                               ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:356:44: error: code should be clang-formatted [-Wclang-format-violations]
    ArrayRef<SubtargetSubTypeKV> CPUTable =
                                           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:357:77: error: code should be clang-formatted [-Wclang-format-violations]
            unwrap(TM)->getMCSubtargetInfo()->getAllProcessorDescriptions();
                                                                            ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:358:44: error: code should be clang-formatted [-Wclang-format-violations]
    auto OS = RawRustStringOstream(OutStr);
                                           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:360:81: error: code should be clang-formatted [-Wclang-format-violations]
    // Just print a bare list of target CPU names, and let Rust-side code handle
                                                                                ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:361:53: error: code should be clang-formatted [-Wclang-format-violations]
    // the full formatting of `--print=target-cpus`.
                                                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:362:19: error: code should be clang-formatted [-Wclang-format-violations]
    for (auto &CPU: CPUTable) {
                  ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:362:32: error: code should be clang-formatted [-Wclang-format-violations]
    for (auto &CPU: CPUTable) {
                               ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:363:31: error: code should be clang-formatted [-Wclang-format-violations]
        OS << CPU.Key << "\n";
                              ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:367:76: error: code should be clang-formatted [-Wclang-format-violations]
extern "C" size_t LLVMRustGetTargetFeaturesCount(LLVMTargetMachineRef TM) {
                                                                           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:368:46: error: code should be clang-formatted [-Wclang-format-violations]
    const TargetMachine *Target = unwrap(TM);
                                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:369:66: error: code should be clang-formatted [-Wclang-format-violations]
    const MCSubtargetInfo *MCInfo = Target->getMCSubtargetInfo();
                                                                 ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:370:51: error: code should be clang-formatted [-Wclang-format-violations]
    const ArrayRef<SubtargetFeatureKV> FeatTable =
                                                  ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:371:47: error: code should be clang-formatted [-Wclang-format-violations]
            MCInfo->getAllProcessorFeatures();
                                              ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:377:62: error: code should be clang-formatted [-Wclang-format-violations]
                                         const char **Desc) {
                                                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:378:46: error: code should be clang-formatted [-Wclang-format-violations]
    const TargetMachine *Target = unwrap(TM);
                                             ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:379:66: error: code should be clang-formatted [-Wclang-format-violations]
    const MCSubtargetInfo *MCInfo = Target->getMCSubtargetInfo();
                                                                 ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:380:51: error: code should be clang-formatted [-Wclang-format-violations]
    const ArrayRef<SubtargetFeatureKV> FeatTable =
                                                  ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:381:47: error: code should be clang-formatted [-Wclang-format-violations]
            MCInfo->getAllProcessorFeatures();
                                              ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:382:54: error: code should be clang-formatted [-Wclang-format-violations]
    const SubtargetFeatureKV Feat = FeatTable[Index];
                                                     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:383:25: error: code should be clang-formatted [-Wclang-format-violations]
    *Feature = Feat.Key;
                        ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:387:55: error: code should be clang-formatted [-Wclang-format-violations]
extern "C" const char *LLVMRustGetHostCPUName(size_t * OutLen) {
                                                      ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:387:65: error: code should be clang-formatted [-Wclang-format-violations]
extern "C" const char *LLVMRustGetHostCPUName(size_t * OutLen) {
                                                                ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:388:44: error: code should be clang-formatted [-Wclang-format-violations]
    StringRef Name = sys::getHostCPUName();
                                           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:389:27: error: code should be clang-formatted [-Wclang-format-violations]
    *OutLen = Name.size();
                          ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:393:61: error: code should be clang-formatted [-Wclang-format-violations]
extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
                                                            ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:394:69: error: code should be clang-formatted [-Wclang-format-violations]
        const char *TripleStr, const char *CPU, const char *Feature,
                                                                    ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:395:84: error: code should be clang-formatted [-Wclang-format-violations]
        const char *ABIStr, LLVMRustCodeModel RustCM, LLVMRustRelocModel RustReloc,
                                                                                   ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:396:81: error: code should be clang-formatted [-Wclang-format-violations]
        LLVMRustCodeGenOptLevel RustOptLevel, LLVMRustFloatABI RustFloatABIType,
                                                                                ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:397:75: error: code should be clang-formatted [-Wclang-format-violations]
        bool FunctionSections, bool DataSections, bool UniqueSectionNames,
                                                                          ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:398:66: error: code should be clang-formatted [-Wclang-format-violations]
        bool TrapUnreachable, bool Singlethread, bool VerboseAsm,
                                                                 ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:399:80: error: code should be clang-formatted [-Wclang-format-violations]
        bool EmitStackSizeSection, bool RelaxELFRelocations, bool UseInitArray,
                                                                               ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:400:63: error: code should be clang-formatted [-Wclang-format-violations]
        const char *SplitDwarfFile, const char *OutputObjFile,
                                                              ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:401:63: error: code should be clang-formatted [-Wclang-format-violations]
        const char *DebugInfoCompression, bool UseEmulatedTls,
                                                              ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:402:60: error: code should be clang-formatted [-Wclang-format-violations]
        const char *ArgsCstrBuff, size_t ArgsCstrBuffLen) {
                                                           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:404:44: error: code should be clang-formatted [-Wclang-format-violations]
    auto OptLevel = fromRust(RustOptLevel);
                                           ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:405:35: error: code should be clang-formatted [-Wclang-format-violations]
    auto RM = fromRust(RustReloc);
                                  ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:406:32: error: code should be clang-formatted [-Wclang-format-violations]
    auto CM = fromRust(RustCM);
                               ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:407:52: error: code should be clang-formatted [-Wclang-format-violations]
    auto FloatABIType = fromRust(RustFloatABIType);
                                                   ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:409:23: error: code should be clang-formatted [-Wclang-format-violations]
    std::string Error;
                      ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:410:54: error: code should be clang-formatted [-Wclang-format-violations]
    auto Trip = Triple(Triple::normalize(TripleStr));
                                                     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:411:36: error: code should be clang-formatted [-Wclang-format-violations]
    const llvm::Target *TheTarget =
                                   ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:412:67: error: code should be clang-formatted [-Wclang-format-violations]
            TargetRegistry::lookupTarget(Trip.getTriple(), Error);
                                                                  ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:413:32: error: code should be clang-formatted [-Wclang-format-violations]
    if (TheTarget == nullptr) {
                               ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:414:45: error: code should be clang-formatted [-Wclang-format-violations]
        LLVMRustSetLastError(Error.c_str());
                                            ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:415:24: error: code should be clang-formatted [-Wclang-format-violations]
        return nullptr;
                       ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:416:6: error: code should be clang-formatted [-Wclang-format-violations]
    }
     ^
/checkout/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp:418:78: error: code should be clang-formatted [-Wclang-format-violations]

@rust-bors
Copy link

rust-bors bot commented Jun 4, 2025

💔 Test failed

@Kobzol Kobzol removed their assignment Jun 6, 2025
@Kobzol
Copy link
Contributor Author

Kobzol commented Jun 6, 2025

r? kobzol

@Kobzol Kobzol removed their assignment Jun 6, 2025
@Kobzol
Copy link
Contributor Author

Kobzol commented Jun 6, 2025

r? @Kobzol

@jieyouxu
Copy link
Member

jieyouxu commented Jun 6, 2025

r? jieyouxu

@rustbot label: -S-waiting-on-review

@rustbot rustbot assigned jieyouxu and unassigned Kobzol Jun 6, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jun 6, 2025

jieyouxu is not on the review rotation at the moment.
They may take a while to respond.

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 6, 2025
@jieyouxu jieyouxu assigned Kobzol and unassigned jieyouxu Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) A-testsuite Area: The testsuite used to check the correctness of rustc A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic perf-regression Performance regression. S-experimental Status: Ongoing experiment that does not require reviewing and won't be merged in its current state. S-waiting-on-perf Status: Waiting on a perf run to be completed. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)
Projects
None yet
Development

Successfully merging this pull request may close these issues.