Skip to content

[wiiip]: Online the panic message of (some) asserts#158589

Draft
aDotInTheVoid wants to merge 8 commits into
rust-lang:mainfrom
aDotInTheVoid:straight-outtline-compton
Draft

[wiiip]: Online the panic message of (some) asserts#158589
aDotInTheVoid wants to merge 8 commits into
rust-lang:mainfrom
aDotInTheVoid:straight-outtline-compton

Conversation

@aDotInTheVoid

Copy link
Copy Markdown
Member

Not done on assert! as that's a compiler built-in

Trying to avoid needing to setup a stack if that's only needed by a assert failure, by making the compiler put that in a seperate function. This may well blow up compile-times and binary-size, but is probably good for instruction-count and icache pressure (especially with bolt-pgo). But that's all conjecture for now.

Based on https://tech.lgbt/@bal4e/116831903287935479 and https://crates.io/crates/fast_assert

r? @ghost

Not done on `assert!` as that's a compiler built-in

Trying to avoid needing to setup a stack if that's only needed by a
assert failure, by making the compiler put that in a seperate function.
This may well blow up compile-times and binary-size, but is probably
good for instruction-count and icache pressure (especially with
bolt-pgo). But that's all conjecture for now.

Based on https://tech.lgbt/@bal4e/116831903287935479 and
https://crates.io/crates/fast_assert
@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jun 29, 2026
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

Copy link
Copy Markdown
Collaborator

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

Click to see the possible cause of the failure (guessed by this bot)
  PR_CI_JOB: 1
  IMAGE: x86_64-gnu-llvm-21
##[endgroup]
    Updating crates.io index
error: failed to get `cookie` as a dependency of package `cookie_store v0.21.1`
    ... which satisfies dependency `cookie_store = "^0.21.1"` of package `ureq v3.0.8`
    ... which satisfies dependency `ureq = "^3"` of package `citool v0.1.0 (/home/runner/work/rust/rust/src/ci/citool)`

Caused by:
  failed to load source for dependency `cookie`

Caused by:
  unable to update registry `crates-io`

Caused by:
  download of co/ok/cookie failed

Caused by:
  curl failed

Caused by:

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

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants