Skip to content

Tweak "expected/found" indentation for runtime symbols - #163418

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
estebank:runtime-symbols
Sep 28, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
estebank:runtime-symbols

Conversation

@estebank

Copy link
Copy Markdown
Contributor
error: invalid definition of the runtime `open` symbol used by the standard library
  --> $DIR/runtime-symbols-unix.rs:14:5
   |
LL |     pub fn open() {}
   |     ^^^^^^^^^^^^^
   |
   = note: expected `unsafe extern "C" fn(*const U8, i32, ...) -> i32` (for the current target)
              found `fn()`
   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "open")]`, or `#[link_name = "open"]`
   = note: `#[deny(invalid_runtime_symbol_definitions)]` on by default

r? @JonathanBrouwer

```
error: invalid definition of the runtime `open` symbol used by the standard library
  --> $DIR/runtime-symbols-unix.rs:14:5
   |
LL |     pub fn open() {}
   |     ^^^^^^^^^^^^^
   |
   = note: expected `unsafe extern "C" fn(*const U8, i32, ...) -> i32` (for the current target)
              found `fn()`
   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "open")]`, or `#[link_name = "open"]`
   = note: `#[deny(invalid_runtime_symbol_definitions)]` on by default
```
@rustbot

rustbot commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

rustc_macros::diagnostics was changed

cc @TaKO8Ki, @JonathanBrouwer

@rustbot rustbot added A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic 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. labels Sep 27, 2026
@rustbot

rustbot commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

JonathanBrouwer is currently at their maximum review capacity.
They may take a while to respond.

@JonathanBrouwer JonathanBrouwer left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@rust-bors

rust-bors Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 9dfa371 has been approved by JonathanBrouwer

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 Sep 28, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Sep 28, 2026
…anBrouwer

Tweak "expected/found" indentation for runtime symbols

```
error: invalid definition of the runtime `open` symbol used by the standard library
  --> $DIR/runtime-symbols-unix.rs:14:5
   |
LL |     pub fn open() {}
   |     ^^^^^^^^^^^^^
   |
   = note: expected `unsafe extern "C" fn(*const U8, i32, ...) -> i32` (for the current target)
              found `fn()`
   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "open")]`, or `#[link_name = "open"]`
   = note: `#[deny(invalid_runtime_symbol_definitions)]` on by default
```

r? @JonathanBrouwer
jhpratt added a commit to jhpratt/rust that referenced this pull request Sep 28, 2026
…anBrouwer

Tweak "expected/found" indentation for runtime symbols

```
error: invalid definition of the runtime `open` symbol used by the standard library
  --> $DIR/runtime-symbols-unix.rs:14:5
   |
LL |     pub fn open() {}
   |     ^^^^^^^^^^^^^
   |
   = note: expected `unsafe extern "C" fn(*const U8, i32, ...) -> i32` (for the current target)
              found `fn()`
   = help: either fix the signature or remove any attributes like `#[unsafe(no_mangle)]`, `#[unsafe(export_name = "open")]`, or `#[link_name = "open"]`
   = note: `#[deny(invalid_runtime_symbol_definitions)]` on by default
```

r? @JonathanBrouwer
@rust-bors

This comment has been minimized.

@rust-bors rust-bors Bot added merged-by-bors This PR was explicitly merged by bors. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 28, 2026
@rust-bors

rust-bors Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: JonathanBrouwer
Duration: 3h 4m 34s
Pushing 51c768a to main...

@rust-bors
rust-bors Bot merged commit 51c768a into rust-lang:main Sep 28, 2026
14 checks passed
@rustbot rustbot added this to the 1.101.0 milestone Sep 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor
What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing 28b6e69 (parent) -> 51c768a (this PR)

Test differences

No test diffs found

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 51c768aa5cb99ae7670e97b0e8392f926e79855e --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. test-i686-gnu-nopt-2: 1h 22m -> 2h 26m (+76.4%)
  2. test-x86_64-gnu-debug: 1h 22m -> 2h 14m (+62.4%)
  3. dist-loongarch64-linux: 1h 19m -> 2h 7m (+60.6%)
  4. test-x86_64-gnu-llvm-21-3: 1h 21m -> 1h 59m (+46.1%)
  5. test-i686-gnu-2: 1h 15m -> 1h 48m (+44.4%)
  6. dist-powerpc-linux: 1h 8m -> 1h 31m (+34.9%)
  7. test-x86_64-gnu-aux: 2h 45m -> 1h 50m (-33.4%)
  8. test-x86_64-msvc-1: 2h 7m -> 2h 49m (+33.1%)
  9. test-x86_64-msvc-ext2: 1h 10m -> 1h 32m (+31.5%)
  10. test-x86_64-gnu-miri: 1h 29m -> 1h 1m (-30.8%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer

Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (51c768a): comparison URL.

Overall result: ❌ regressions - no action needed

@rustbot label: -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

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

Max RSS (memory usage)

Results (primary -0.5%, secondary -0.9%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.1% [2.1%, 2.1%] 1
Regressions ❌
(secondary)
1.6% [0.4%, 2.9%] 3
Improvements ✅
(primary)
-1.8% [-2.0%, -1.5%] 2
Improvements ✅
(secondary)
-2.8% [-3.5%, -2.2%] 4
All ❌✅ (primary) -0.5% [-2.0%, 2.1%] 3

Cycles

Results (secondary 2.2%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

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

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 488.07s -> 488.57s (0.10%)
Artifact size: 406.39 MiB -> 406.43 MiB (0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic merged-by-bors This PR was explicitly merged by bors. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants