-
Notifications
You must be signed in to change notification settings - Fork 13
A lot of improvements in Set
, mostly docs and doc-tests code.
#284
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
Conversation
…`BitXor` are not yet possible because they require unstable Rust feature.)
…false positives, such as `#[must_use]`. There is still a lot of discussion about the `#[must_use]`, and there is no consensus. We will consider adding it to the required functions only after we determine its accurate definition.
@yegor256 I hope the commit message contains enough information! (If not so, I can explain what you are confused about.) |
@yegor256 Is there anything I need to modify? |
@owtotwo in general, I believe that having more restrictions is better than having less of them. If we remove the |
@yegor256 Where do you think |
@yegor256 To be clear, I did not give up on This was a very influential decision.
I know that the warnings issued by I will definitely not give up the benefits it brings us, because as I said in the description above, we will "temporarily" remove them ("for now"), then discuss where to add them, and finally release a large number of changes (this is a breaking change for Therefore, before we make a large number of modifications, we remove it first (Actually, the main purpose is to remove the wrong mark caused by wrong lints), and then determine the corresponding addition rules and release a special PR. |
@rultor merge |
@owtotwo make sense, thanks |
First of all, please don't be surprised by the large amount of changes.
There are so many code changes because I should have divided them into several or even more small PRs, but this would make the merging process take a lot of time for you (even though most of them have no intersection).
In fact, these changes themselves are not complicated. You can clearly see them by looking at the changes and the corresponding commit messages one by one in chronological order.
Additional note: There is still a lot of discussion on the Internet about
#[must_use]
.Check this: https://rust-lang.github.io/rust-clippy/master/index.html#/must_use_candidate
My opinion is that the Clippy should let the pure functions be set
#[must_use]
by default, and functions with side effects be explicitly marked.But Rust offical linter (clippy) have apparently not yet considered the relevant issues, so we won't use it for now (otherwise it would probably fill up the world).
This PR has largely improved the content of the project documentation and document testing to a "sufficient" level.
(And it takes some time, I can even use it to complete a game of Civilization 6. 😆)