Respect RUST_BACKTRACE for delayed bugs by Noratrieb · Pull Request #112359 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation6 Commits1 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@Noratrieb

Sometimes, especially with MIR validation, the backtraces from delayed bugs are noise and make it harder to look at them. Respect the environment variable and don't print it when the user doesn't want it.

@Noratrieb

Sometimes, especially with MIR validation, the backtraces from delayed bugs are noise and make it harder to look at them. Respect the environment variable and don't print it when the user doesn't want it.

@rustbot

r? @oli-obk

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added 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

Jun 6, 2023

@Noratrieb

it worked when i tested it at first but now it doesn't work again, somethings wrong

@Noratrieb Noratrieb marked this pull request as ready for review

June 6, 2023 19:34

@Noratrieb

it works just fine, i just held it wrong.
example:

error: internal compiler error: broken MIR in Item(DefId(0:21 ~ uwu[d045]::{impl#0}::deserialize)) (after pass PreCodegen) at bb0[1]:
                                Field projection `(*_2).0` specified type `u32`, but actual type is `<[<T as Archive>::Archived] as ArchivePointee>::ArchivedMetadata`
  --> uwu.rs:21:57
   |
21 |     let _a: <[T] as ArchivePointee>::ArchivedMetadata = v.metadata;
   |                                                         ^^^^^^^^^^
   |
   = note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:354:30 - disabled backtrace

error: internal compiler error: broken MIR in Item(DefId(0:21 ~ uwu[d045]::{impl#0}::deserialize)) (after phase change to runtime-optimized) at bb0[1]:
                                Field projection `(*_2).0` specified type `u32`, but actual type is `<[<T as Archive>::Archived] as ArchivePointee>::ArchivedMetadata`
  --> uwu.rs:21:57
   |
21 |     let _a: <[T] as ArchivePointee>::ArchivedMetadata = v.metadata;
   |                                                         ^^^^^^^^^^
   |
   = note: delayed at compiler/rustc_const_eval/src/transform/validate.rs:354:30 - disabled backtrace

compiler-errors

Choose a reason for hiding this comment

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

r=me if ci is green

@Noratrieb

@bors r=compiler-errors
ci is green

@bors

📌 Commit 7098092 has been approved by compiler-errors

It is now in the queue for this repository.

@bors bors 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

Jun 6, 2023

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 7, 2023

@bors

Rollup of 6 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

@Noratrieb Noratrieb deleted the i-can-only-handle-so-many-backtraces branch

June 7, 2023 18:44

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.