[StableMIR] A few fixes to pretty printing#132161
Conversation
|
r? @wesleywiser rustbot has assigned @wesleywiser. Use |
compiler-errors
left a comment
There was a problem hiding this comment.
LGTM, but this doesn't actually exercise most of the new code it adds, does it?
|
@rustbot author |
|
@rustbot ready |
|
LGTM @bors r+ rollup |
|
thx @bors r+ |
…er-errors [StableMIR] A few fixes to pretty printing Improve identation, and a few other rvalue printing
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#131375 (compiler: apply clippy::clone_on_ref_ptr for CI) - rust-lang#131984 (Stabilize if_let_rescope) - rust-lang#132151 (Ensure that resume arg outlives region bound for coroutines) - rust-lang#132161 ([StableMIR] A few fixes to pretty printing) - rust-lang#132194 (Collect item bounds for RPITITs from trait where clauses just like associated types) - rust-lang#132233 (Split `boxed.rs` into a few modules) - rust-lang#132270 (clarified doc for `std::fs::OpenOptions.truncate()`) - rust-lang#132284 (Remove my ping for rustdoc/clean/types.rs) r? `@ghost` `@rustbot` modify labels: rollup
|
@bors r- |
|
Failed in #132288 (comment) ---- [ui] tests\ui\stable-mir-print\operands.rs stdout ----
$DIR\operands.rs
$DIR\operands.rs
\a\rust\rust\tests\ui\stable-mir-print\operands.rs
$DIR\operands.rs
Saved the actual stdout to "C:\\a\\rust\\rust\\build\\x86_64-pc-windows-msvc\\test\\ui\\stable-mir-print\\operands\\operands.stdout"
226 debug x => _1;
227 debug z => _2;
228 bb0: {
- _0 = {closure@Span { id: 105, repr: "$DIR/operands.rs:44:5: 44:19" }}(_1, _2);
+ _0 = {closure@Span { id: 105, repr: "C:/a/rust/rust/tests/ui/stable-mir-print/operands.rs:44:5: 44:19" }}(_1, _2);
231 }
232 } |
|
🤔 path normalization needs to be more generic i guess??? |
|
@bors try |
[StableMIR] A few fixes to pretty printing Improve identation, and a few other rvalue printing try-job: x86_64-msvc try-job: test-various
|
@compiler-errors I can squash the first 3 commits of this PR if you prefer. |
|
Sure. Don't push before the try build is done or else it'll cancel the run. If this ends up working out, then r=me; otherwise, you can revert back to the manual normalization strategy and r=me. If the latter, I'd prefer if you would open a bug issue so we can track this, since it seems like a bug in compiletest. |
This comment has been minimized.
This comment has been minimized.
|
💔 Test failed - checks-actions |
|
There's obviously something weird going on here with us converting I assume that's why this doesn't affect spans in regular MIR dumps, and if we printed the path strings outside of a quote, then perhaps compiletest would actually know what to do here. |
Instead of normalizing the test, I could fix how StableMIR is printing the span. That won't fix the compiletest issue, but I would be able to get rid of the hacky normalization |
|
cc @jieyouxu |
Improve identation, and a few other rvalue printing
3bfe733 to
dd6ddcb
Compare
|
@compiler-errors I fixed how StableMIR is printing closures and coroutines so it no longer prints the span debug. With that, I removed the manual normalization from the test (and the compiletest changes). I also squashed everything into a single commit. I created a separate issue related to the compiletest normalization. @bors try |
[StableMIR] A few fixes to pretty printing Improve identation, and a few other rvalue printing try-job: x86_64-msvc try-job: test-various
|
r=me if CI is green |
|
☀️ Try build successful - checks-actions |
|
@bors r=compiler-errors rollup |
Rollup of 5 pull requests Successful merges: - rust-lang#132161 ([StableMIR] A few fixes to pretty printing) - rust-lang#132389 (coverage: Simplify parts of coverage graph creation) - rust-lang#132452 (coverage: Extract safe FFI wrapper functions to `llvm_cov`) - rust-lang#132590 (Simplify FFI calls for `-Ztime-llvm-passes` and `-Zprint-codegen-stats`) - rust-lang#132738 (Initialize channel `Block`s directly on the heap) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#132161 - celinval:smir-fix-indent, r=compiler-errors [StableMIR] A few fixes to pretty printing Improve identation, and a few other rvalue printing try-job: x86_64-msvc try-job: test-various
…er-errors [StableMIR] A few fixes to pretty printing Improve identation, and a few other rvalue printing try-job: x86_64-msvc try-job: test-various
Rollup of 5 pull requests Successful merges: - rust-lang#132161 ([StableMIR] A few fixes to pretty printing) - rust-lang#132389 (coverage: Simplify parts of coverage graph creation) - rust-lang#132452 (coverage: Extract safe FFI wrapper functions to `llvm_cov`) - rust-lang#132590 (Simplify FFI calls for `-Ztime-llvm-passes` and `-Zprint-codegen-stats`) - rust-lang#132738 (Initialize channel `Block`s directly on the heap) r? `@ghost` `@rustbot` modify labels: rollup
Improve identation, and a few other rvalue printing
try-job: x86_64-msvc
try-job: test-various