rust/src/librustdoc/passes
Yuki Okushi 07083739fb
Rollup merge of #80492 - matthiaskrgr:tasty_wraps, r=varkor
remove empty wraps, don't return Results from from infallible functions

This makes code easier to understand because it is more obvious when a function actually can't fail (return Err or None)

Make functions that only ever return Some(x), return x directly
Remove return type from functions that return Option<(), Err> but would only ever return Ok(()).

Found with `clippy::unnecessary_wraps`
2020-12-30 22:49:24 +09:00
..
unindent_comments Update tests 2020-10-29 11:43:21 +01:00
calculate_doc_coverage.rs Auto merge of #80014 - jyn514:box-item-kind, r=nnethercote 2020-12-29 10:41:01 +00:00
check_code_block_syntax.rs Make fold_item_recur non-nullable 2020-11-22 12:59:01 -05:00
collapse_docs.rs Make fold_item_recur non-nullable 2020-11-22 12:59:01 -05:00
collect_intra_doc_links.rs Rollup merge of #80381 - rust-lang:revert-80244-spans, r=GuillaumeGomez 2020-12-30 22:49:23 +09:00
collect_trait_impls.rs Box ItemKind to reduce the size of Item 2020-12-23 12:50:35 -05:00
doc_test_lints.rs Auto merge of #80014 - jyn514:box-item-kind, r=nnethercote 2020-12-29 10:41:01 +00:00
html_tags.rs Make fold_item_recur non-nullable 2020-11-22 12:59:01 -05:00
mod.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
non_autolinks.rs Make fold_item_recur non-nullable 2020-11-22 12:59:01 -05:00
propagate_doc_cfg.rs Make fold_item_recur non-nullable 2020-11-22 12:59:01 -05:00
strip_hidden.rs remove unused return types such as empty Results or Options that would always be Some(..) 2020-12-30 13:15:40 +01:00
strip_priv_imports.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
strip_private.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
stripper.rs remove unused return types such as empty Results or Options that would always be Some(..) 2020-12-30 13:15:40 +01:00
unindent_comments.rs Make fold_item_recur non-nullable 2020-11-22 12:59:01 -05:00