-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Fixed xfail for nbody shootout benchmark by correcting command line pars... #10410
Conversation
@@ -44,7 +44,7 @@ fn roundtrip(id: int, n_tasks: int, p: &Port<int>, ch: &Chan<int>) { | |||
return; | |||
} | |||
token => { | |||
info!("thread: {} got token: {}", id, token); | |||
info!("thread: {id} got token: {token}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a feeling this isn't correct. It should probably either be left unchanged, or written as info!("thread: {id} got token: {token}", id=id, token=token);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback. I will check in the morning. Compiler warned on either mac osx or ubuntu -- can't remember which -- when left as is. Will double check on both systems. Either way, your suggestion above makes good sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huonw, I get a compiler error if written as info!("thread: {} got token: {}", id, token);
or as suggested info!("thread: {id} got token: {token}", id=id, token=token);
error too many arguments to fmt! found 3, expected 1
I believe that the info! is using fmt! instead of format!. Please advise on how to correct. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, that's a little peculiar... fmt!
is no longer in the main codebase (well it is, but it emits an error and stops compilation). Maybe you need to pull from mozilla/master
and rebase on top of it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huonw, ubuntu system was compiling using 0.8. Removed 0.8 from system and reinstalled pre-0.9. Compiles cleanly now with original info! format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, also, could you squash the commits together? (Just so there's not a "ghost" change that is added in one commit and removed in the next.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huon, I tried to do the rebase -i and squash the commits together, but got lost in the land of git. Any suggestions on getting out of the muck of confusion? Thanks :)
The easiest way to fix this (that I (a non-git expert) know of) is probably to:
Then, if it is as you expect, you can either open a new PR from that new branch and close this one if you do (which is perfectly ok), or:
*It's not entirely destructive, one can use For what it's worth, a "correct" procedure for just squashing the last two commits would be something like:
the (Just guessing, it looks like you may have run (My apologies if this is aimed too high or too low, I don't have much context for your git experience. I'm happy to tune it either way, just ask.) |
Also, there's no guarantee my instructions are 100% correct :( ... feel free to ask here or in IRC if things go awry again; I'm sure there'll be someone who can help. (Thanks for preserving with this.) |
huon, thank you for the very detailed instructions. I think that things are now back how they should be - stuff squashed and cleaned up. I appreciate the time you took to coach me through this one :) |
Not a problem at all. Now this PR needs a rebase, so, something like |
…arse. Cleaned up unneeded imports and type changes to resolve compiler warnings.
Did the suggested rebase and then did Was that correct? [Thinking that I need to do some reading and drawing out of the the flow between the repos when doing rebase and pull, push, etc.] I'll get it sooner or later. It's easier for me to grasp the visual flow vs. the commands ;) |
...e. Cleaned up unneeded imports and type changes to resolve compiler warnings. Work in process
Looks correct to me! I found http://pcottle.github.io/learnGitBranching/ a neat way of visualising git branches/trees/commits and learning (& practising) the various commands for manipulating them. |
You rock! I will check out your suggestion later this evening :) |
Downgrade let_underscore_untyped to restriction From reading rust-lang#6842 I am not convinced of the cost/benefit of this lint even as a pedantic lint. It sounds like the primary motivation was to catch cases of `fn() -> Result` being changed to `async fn() -> Result`. If the original Result was ignored by a `let _`, then the compiler wouldn't guide you to add `.await`. **However, this situation is caught in a more specific way by [let_underscore_future](https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_future) which was introduced _after_ the original suggestion (rust-lang#9760).** In rust-lang#10410 it was mentioned twice that a <kbd>restriction</kbd> lint might be more appropriate for let_underscore_untyped. changelog: Moved [`let_underscore_untyped`] to restriction
…lp_message, r=Manishearth Improve the help message + add a help span This would close rust-lang#10410, because it applies the general consensus achieved in that issue (that replacing `let _ = ...` to `_ = ...` doesn't present any benefits). I also added a little help message span. changelog:[`let_underscore_untyped`]: Fix the help message confusion + add a help message span.
...e.
Cleaned up unneeded imports and type changes to resolve compiler warnings.
Work in process