-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update mapping::lookup so it is a const function #49
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lopopolo
added
A-performance
Area: Performance improvements and optimizations.
A-crate-features
Area: Compile-time features or attributes.
A-folding
Area: Unicode case folding.
labels
Dec 30, 2020
This is blocked on rust-lang/rust#79549 which makes |
lopopolo
added
the
S-blocked
Status: Marked as blocked ❌ on something else such as other implementation work.
label
Dec 30, 2020
It looks like I came to this same conclusion in #17, but now there is a PR up in upstream Rust, so I'll keep this open. |
lopopolo
added a commit
that referenced
this pull request
Dec 30, 2020
This commit does everything except add the `const` annotation to the function signature. Adding `const` is blocked on rust-lang/rust#79549. See #49.
lopopolo
force-pushed
the
const-lookup
branch
from
December 30, 2020 17:24
a98ce43
to
70bd64e
Compare
This will be unblocked once rust-lang/rust#82078 makes it to stable. |
The required const fn changes were released in Rust 1.52.0: https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html#stabilized-apis |
lopopolo
removed
the
S-blocked
Status: Marked as blocked ❌ on something else such as other implementation work.
label
May 17, 2021
Rust 1.52.0 stabilized several char ASCII methods as const which are required by `lookup` if we wish to make `lookup` const. https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html#stabilized-apis This commit adds a job to the CI GitHub Actions workflow to test foccacia with the declared MSRV of 1.52.0. Due to several panics in incremental compilation in Rust 1.52.0, this job sets the `CARGO_INCREMENTAL` env variable to 0 to disable incremental compilation.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-crate-features
Area: Compile-time features or attributes.
A-folding
Area: Unicode case folding.
A-performance
Area: Performance improvements and optimizations.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Raises the minimum Rust version to 1.46.0, adds docs for MSRV, and a CI job to ensure
focaccia
compiles with Rust 1.46.0.