Skip to content

compiletest: normalize stderr before SVG rendering#152658

Open
scrabsha wants to merge 1 commit intorust-lang:mainfrom
scrabsha:normalize-before-svg
Open

compiletest: normalize stderr before SVG rendering#152658
scrabsha wants to merge 1 commit intorust-lang:mainfrom
scrabsha:normalize-before-svg

Conversation

@scrabsha
Copy link
Contributor

Element position is hardcoded in the rendered SVG. This means that any change in element length (for instance, when substituting the path with the rust checkout with $DIR) would not change the position and result in buggy SVG being generated. Normalizing before SVG rendering allows us to keep a consistent element placement.

r? @jieyouxu

@rustbot
Copy link
Collaborator

rustbot commented Feb 15, 2026

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@rustbot rustbot added A-compiletest Area: The compiletest test runner 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-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Feb 15, 2026
@rust-log-analyzer

This comment has been minimized.

Element position is hardcoded in the rendered SVG. This means that any
change in element length (for instance, when substituting the path with
the `rust` checkout with `$DIR`) would not change the position and result
in buggy SVG being generated. Normalizing before SVG rendering allows us
to keep a consistent element placement.
@scrabsha scrabsha force-pushed the normalize-before-svg branch from 1d1b0ac to 5a324c6 Compare February 15, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner 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-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants