Skip to content

Introduce macro to create static UncasedStrs#3

Closed
benesch wants to merge 1 commit intoSergioBenitez:masterfrom
benesch:static-uncased-str
Closed

Introduce macro to create static UncasedStrs#3
benesch wants to merge 1 commit intoSergioBenitez:masterfrom
benesch:static-uncased-str

Conversation

@benesch
Copy link
Copy Markdown
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 benesch force-pushed the static-uncased-str branch from f4e2081 to 6d82800 Compare June 18, 2021 19:19
@benesch
Copy link
Copy Markdown
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
Copy Markdown
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