-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fixes issue 5095 #5141
Fixes issue 5095 #5141
Conversation
@flip1995, Can I use author lint on internal lints, I have tried the playground tricks, but it is not working because of extern crate declaration. |
Yes you can. You could make the |
As a self reminder, have not done |
Oh, no. My dear old laptop have blackout. Some work have lost. |
After rebase, |
Copy, thanks for the update. |
Still downloading toolchain, network has been slow. |
Oh, there are so many problem to set up a proper environment for development. I can't use my bluetooth keyboard in ubuntu, I don't have a proper connection to successfully download rustup. I think I should buy a new laptop that is compatible with linux like my broken laptop. But there are the nCov out there and I think I couldn't get a new laptop in recent time. So I think maybe it is better to close this pr. |
No problem, internal lints are nothing urgent, so you can get back to this, whenever your ready.
Sure, you can open it again, when you want to continue working on this. I marked it as |
Ho, ho I am back. |
☔ The latest upstream changes (presumably #5319) made this pull request unmergeable. Please resolve the merge conflicts. |
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.
Implementation looks really good overall. The findings in the Codebase need reformatting. Before you do this, it would be good to adapt the wrapper functions, like I described in my comment below.
☔ The latest upstream changes (presumably #5470) made this pull request unmergeable. Please resolve the merge conflicts. |
I don't know why this build failed, do I need to wait another rustup? |
@xiongmao86 Thanks for all the work! There were only some formatting errors, which could be fixed in the GH UI, so I did this myself (don't want to bother you more, after all the work). @bors r+ |
📌 Commit 7aeb3a4 has been approved by |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
@flip1995, sorry I have appear to be urging to finish, I couldn't help, I try to inhabit the urge and after several pr it have been less intense. And I really don't understand why my local branch build is successful and the ci build would fail. I have pull upstream master, and then I passed I think in this case I couldn't possible to fail to build unless due to updating of rust repo (in this case I have to wait for another rustup pr). If it is due to the change of function signature with out corresponding change in function body. Why would my local build successful? If it is due to the delay of upstream master update after my push to origin, then github should have warn about that recent change stop the code from merging. Did I make any mistake? Please tell me, I appreciate any opportunity to learn. |
Recently every occurrence of Upstream: docs_link(&mut diag, lint);
diag.emit(); Local: docs_link(&mut db, lint);
db.emit(); Now Git(Hub) calculates the diff locally only per commit on your local branch, so the I hope I have explained this good enough. I don't think, that I ever saw that subtle of an interaction of non-conflicting git changes. |
If the CI fails, but your local build is successful, most of the time a rebase helps. |
I have the idea now. It's a long pr. Thank you very much for helping. |
fixes #5095.
.stderr
file)cargo test
passes locallycargo dev update_lints
cargo dev fmt
changelog: (internal) warn about collapsible
span_lint_and_then
calls.