Skip to content
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

Introduce macro to create static UncasedStrs #3

Closed
wants to merge 1 commit into from

Conversation

benesch
Copy link
Contributor

@benesch benesch commented Jun 18, 2021

Add a static_uncased_str macro, which can create &'static UncasedStrs
from &'static strs. This won't be necessary once rust-lang/rust#53605
lands, but that's at least a few months away.

Add a static_uncased_str macro, which can create `&'static UncasedStr`s
from `&'static str`s. This won't be necessary once rust-lang/rust#53605
lands, but that's at least a few months away.
@benesch
Copy link
Contributor Author

benesch commented Jun 18, 2021

@SergioBenitez lmk what you think of this. I can certainly understand if you'd rather just wait for mem::transmute to work in const fns, so that UncasedStr::new becomes a valid thing to put in a const fn.

@benesch
Copy link
Contributor Author

benesch commented Oct 14, 2021

Closing in favor of #4.

@benesch benesch closed this Oct 14, 2021
@benesch benesch deleted the static-uncased-str branch October 14, 2021 19:37
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.

1 participant