-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add pretty printer for &mut [] #30249
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (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. |
BTW I've verified the new behavior manually using rust-gdb. |
Thanks! Can you add a test for this as well? |
I have added tests now, but haven't verified locally whether they pass because I have had enough of that experience while working on #30250. IIRC I even found out a way to just run the lldb/gdb tests, but the testrunner still recompiled rustc every time. |
I've now also triggered extra builds to tests whether the tests are effective (I wouldn't know), because in #30250 I've had the CI pass even though it shouldn't. Any hint on how to run the tests efficiently locally would be apprechiated. EDIT: BTW I'd like to rebase everything into one commit before merge. |
Looks good to me! If you want to squash I'll r+ |
I don't understand why the tests pass for b031de3 |
Ah, it seems that Travis doesn't test this part of the system, only Bors does. Is there a different way to verify that the tests are effective? |
Oh it appears that travis doesn't have gdb installed, so it's not running gdb tests. I believe that's an error! If you'd like, you could modify |
This might be intentional as IIRC according to CONTRIBUTING, Travis only runs a subset of all tests. On 12 January 2016 01:34:48 CET, Alex Crichton [email protected] wrote:
Sent from my phone. Please excuse my brevity. |
That's somewhat outdated, there's no reason we didn't install gdb on travis afaik. I'm fine with merging though, so if you want to squash we can send to bors |
bbbfb8f
to
295ab87
Compare
I've now updated the PR to install gdb and lldb explicitly in Travis. The first commit contains the test and the changes to travis.yml, and should fail if Travis runs the tests correctly. The second commit contains the actual fix. |
6aa92a8
to
3a5fa18
Compare
Looks like the gdb tests did indeed run on travis, but it also looks like one of them failed. |
6aa92a8
to
3f4264a
Compare
888e297
to
574bc89
Compare
This looks like it's good to go? |
It seems that lldb tests are only run on OS X, so I have no way of verifying whether the tests I wrote are any good. |
⌛ Testing commit 1ca7b2e with merge 944bd28... |
💔 Test failed - auto-mac-64-opt |
|
that seems unreal. Anybody knows what is happening there? |
Closing due to inactivity, but feel free to reopen with the test fixed! |
@alexcrichton I don't know how to fix the test failures and asked for help in the previous comment. |
Also sorry for the slow reply! |
Fix #30232