-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Make some match
es slightly more ergonomic in librustdoc
#141131
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
r? @notriddle rustbot has assigned @notriddle. Use |
librustdoc
match
es slightly more ergonomic in librustdoc
39dea03
to
a4765c9
Compare
Box patterns ( |
@bors r+ rollup |
Didn't know |
…iaskrgr Rollup of 9 pull requests Successful merges: - rust-lang#135808 (Implement Display for ``rustc_target::callconv::Conv``) - rust-lang#137432 (Add as_ascii_unchecked() methods to char, u8, and str) - rust-lang#139103 (deduplicate abort implementations) - rust-lang#140917 (checktools.sh: fix bashism) - rust-lang#141035 (turn lld warning on old gccs into info log) - rust-lang#141118 (Enable rust-analyzer to go from query definition to the corresponding provider field) - rust-lang#141121 (Only select true errors in `impossible_predicates`) - rust-lang#141125 (check coroutines with `TypingMode::Borrowck` to avoid cyclic reasoning) - rust-lang#141131 (Make some `match`es slightly more ergonomic in `librustdoc`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#141131 - yotamofek:pr/rustdoc/match-ergo, r=fmease Make some `match`es slightly more ergonomic in `librustdoc` Bunch of small cleanups I found while working on other stuff, mostly getting rid of superfluous `*`s and `ref [mut]`s in `match`es, makes the code less sigil/keyword-heavy, and slightly improves readability IMHO. Also flattens a few nested `match`es.
Bunch of small cleanups I found while working on other stuff, mostly getting rid of superfluous
*
s andref [mut]
s inmatch
es,makes the code less sigil/keyword-heavy, and slightly improves readability IMHO.
Also flattens a few nested
match
es.