Skip to content

Format variadic arguments #443

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

Merged
merged 1 commit into from
Oct 11, 2015
Merged

Format variadic arguments #443

merged 1 commit into from
Oct 11, 2015

Conversation

marcusklaas
Copy link
Contributor

span_after(span, "...", self.codemap) - BytePos(1)
} else {
BytePos(0)
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add the start byte pos to the Variadic enum variant? Then you only need one if/else here and you don't need the magic 0 for variadic_start

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's much better. Thanks for the tip!

@nrc
Copy link
Member

nrc commented Oct 11, 2015

r+ with those changes

marcusklaas added a commit that referenced this pull request Oct 11, 2015
@marcusklaas marcusklaas merged commit 4bc43f6 into rust-lang:master Oct 11, 2015
@marcusklaas marcusklaas deleted the variadic-fns branch October 11, 2015 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants