-
Notifications
You must be signed in to change notification settings - Fork 522
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
Add definitions of fat, double, and wide pointers #112
Conversation
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.
LGTM
Thanks!
Could you please rebase? |
@samWson No worries. You should rebase this entire branch over master as follows:
What this does is rewind the changes on glossary-fat-pointers, update glossary-fat-pointers to look like master, and then replay your changes on glossary-fat-pointers. The end result is that Does that make sense? |
Pulling changes from rust-lang-nursery
@mark-i-m yes I think that makes sense. I've followed your instructions. I think I've complicated things by forking the rust-lang-nursery/rustc-guide repo to my Github account, and using my Github repo as the remote for the copy on my computer. Is rebasing a feature branch on master the standard practice before making pull requests? |
That's pretty common. I don't know what others do or if this is the easiest way, but I usually add another remote for the original:
Then you can
Different projects have different practices. Some projects are ok with merge commits, so just doing a In general, the rust community seems to prefer the rebasing approach (without squashing). Also, usually, github can do the rebase for you, and you don't have to do it manually, but if there are conflicts (as in this PR), github will ask you to manually resolve them first... EDIT: sorry, i got the pull command wrong... fixed above |
@mark-i-m thanks. That helps. Is there anything more I need to do at my end for this PR? |
Oh, hmm... I'm not sure what exactly happened, but I think the rebase didn't quite go correctly. It looks like the history has a duplicate of commits and github still is not happy (heh, don't worry, everyone does this on their first rebase 😛 ). How did you resolve the rebase conflicts? |
So, here is what I did to resolve the conflicts on my local copy: First, make sure you have a clean repo (meaning there are no uncommitted edits). If there are, you can use git checkout master
git pull rustc-guide master # this should not require any merge commits
git checkout glossary-fat-pointers
git rebase master
# at this point, you should see a message that their was a conflict on src/appendix-glossary.md.
# open that file with some editor, and you should see the conflicts between >>>>> and <<<<<.
# Edit the file to whichever version you want, save and exit the editor. If you've done a merge with
# conflicts before, this should be familiar.
git add src/appendix-glossary.md
git rebase --continue
# You will probably get one more conflict. Do the same thing again.
# When you do git rebase --continue, this time you may get a warning about "no changes".
# If so, just do
git rebase --skip
# It should complete now... After all this, you should be able to do Let me know if you run into any hiccups. git can be tricky until you git the hang of it (pun intended). |
Oh, one other thing. Rebasing rewrites history, so you will need to |
Definition referenced from Programming Rust by Jim Blandy & Jason Orendorff, published by O'Reilly. Page 214: References to Slices and Trait Objects.
Definition referenced from Programming Rust by Jim Blandy & Jason Orendorff, published by O'Reilly. Page 214: References to Slices and Trait Objects. Double pointer and wide pointer both refer to fat pointer for detail.
69f2f83
to
1dbd9ea
Compare
@mark-i-m Done. Your instructions were very helpful. Sorry for the delay, life got really busy for me last week. Let me know if there is anything more that needs doing. |
No worries! Thanks for the PR :) |
Definition of fat pointer referenced from Programming Rust by Jim Blandy & Jason Orendorff, published by O'Reilly. Page 214: References to Slices and Trait Objects.
Definitions of double, and wide pointers refer back to fat pointers.