Skip to content

Support str as input to Builder::no_* functions #1237

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
Jan 28, 2018

Conversation

osialr
Copy link
Contributor

@osialr osialr commented Jan 27, 2018

Previously, only String was supported on these while other functions in Builder worked with both str and String

This tripped me up because Builder::constified_enum_module and Builder::raw_line worked with string slices but I got a compile error when I tried to use Builder:;no_copy

Previously, only String was supported on these while other
functions in Builder worked with both str and String
Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@emilio
Copy link
Contributor

emilio commented Jan 28, 2018

@bors-servo r+

@bors-servo
Copy link

📌 Commit 8afc763 has been approved by emilio

@bors-servo
Copy link

⌛ Testing commit 8afc763 with merge 8725aea...

bors-servo pushed a commit that referenced this pull request Jan 28, 2018
Support str as input to Builder::no_* functions

Previously, only String was supported on these while other functions in Builder worked with both str and String

This tripped me up because `Builder::constified_enum_module` and `Builder::raw_line` worked with string slices but I got a compile error when I tried to use `Builder:;no_copy`
@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: emilio
Pushing 8725aea to master...

@bors-servo bors-servo merged commit 8afc763 into rust-lang:master Jan 28, 2018
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.

4 participants