Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Fix no_implicit_prelude doc issue #83

Merged
merged 2 commits into from
Jan 11, 2021
Merged

Conversation

joshuajbouw
Copy link
Owner

no_implicit_prelude is handy if you want to know exactly what you are using in your library, allowing you to slim it down later as you typically have all your new prelude imports altogether. Cuts down on code as well, cleaning things up drastically.

The issue is that #![no_implicit_prelude] at lib level used to work fine. Then Serde support was added and it wouldn't build Serde since it too uses no_implicit_prelude. There was a work around though which worked. Problem is, now that workaround is broken. While the project will build fine, this is problematic for documentation.

The new workaround that I have found is to not make it lib level and instead include it in each of the modules which is a bit of a pain in the butt but it is the only thing that I can get to work for now. There is work being done that will turn the issue into a warning and not a panic though.

See: rust-lang/rust#80372

@joshuajbouw joshuajbouw added bug Something isn't working documentation Improvements or additions to documentation labels Jan 11, 2021
@joshuajbouw joshuajbouw merged commit fd02261 into master Jan 11, 2021
@joshuajbouw joshuajbouw deleted the fix_no_implicit_prelude branch January 11, 2021 06:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant