Add no_std support for runtime crate #336
Merged
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.
Given that #294 is staggering, I decided to maybe break it down one by one first. I tried to keep the Git profile as low as possible so that most of the Git logs are kept.
I further split the
no_stdfeatures to not implicitly assumealloc. However, it is still effectively a requirement as not enabling this feature while std is not present will result in a compile error. But I think this is better as it will clarify the intention better.Disablingstdfeature also implieserror_in_corefeature will be enabled and thus requires a nightly compiler to compile. But I guess anyone who works withno_stdwill have to use nightly either because we are most likely going to write low level code or compilers, who knows.I changed my mind. This is gated behind an
unstablefeature in runtime crate now.I've also pulled in to make the ExpectedSet use BTreeSet instead, so now we can have a stable order to print expected tokens.