-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update backtrace formating text tips #41989
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @arielb1 (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Looks like a test needs to be updated.
|
@Mark-Simulacrum Fixed. Do you have other concerns? |
Out of interest, why did you add |
Well, this option is not added by this PR. It has been added by the PR #38165, but I think not all the occurrences are updated accordingly. |
Thanks for the PR! Could you expand a bit on the rationle though? I'm not sure why we'd suggest |
The rationale is that, according to #38165, the options are defined as:
So I think the suggestion should be updated to I'm not sure which one is the best either, (full|short|yes) all seems reasonable to me. They are all better than (1|0). |
@alexcrichton If you think |
Another alternative, use longer sentence for the suggestion: note: Run with |
Ah yes sorry, so I'm not personally a fan of the simultaneous change in interface here either, I'd prefer to not change how we parse values just yet. What I'm worried about though is that this is recommending |
Follow up with PR 38165
Yeah, I understand your concern. Now I have changed the recommending to The motivation is that right now option I would like to hear suggestion from @Yamakaky too, do you think we should update the recommending words? |
My rational for only suggesting the short back trace was that new users will not want the full one in almost any case, and advanced users will know about the full version. |
Yeah~ I agree to suggesting the short style too. I just think |
I do too! I think yes/short, full and no should be good, with the old values as compat. |
@alexcrichton PR is updated. |
Ok not recommending "full" sounds good to me, but otherwise I'm still not sure I understand the rationale for this PR? Why change from "1" to "yes"? Why add "no" as a way to turn it off? |
I thought that the options of RUST_BACKTRACE had been changed to (full|short|yes|no) as described in #38165 , and it has been an agreement in core team. But It turns out to be not true. I'm sorry for the confusion I caused. Therefore, I'm going to close this PR. |
Follow up with #38165, improve consistency.