summary refs log tree commit diff
path: root/src/librustdoc/clean/utils.rs
AgeCommit message (Collapse)AuthorLines
2020-04-24Remove `Option` from the return type of `def_kind`.Eduard-Mihai Burtescu-12/+6
2020-04-23Address comments from reviewmarmeladema-3/+2
2020-04-23Modify `as_local_hir_id` to return a bare `HirId`marmeladema-1/+1
2020-04-23Modify `as_local_hir_id` to accept a `LocalDefId` instead of a `DefId`marmeladema-1/+3
2020-04-16Dogfood or_patterns in rustdocJosh Stone-1/+1
2020-04-16Rollup merge of #70990 - GuillaumeGomez:rustdoc-cleanup, r=ollie27Dylan DPC-24/+20
Improve rustdoc source code a bit Very small clean up. I realized that there were too many nested conditions whereas we could just use `and_then`. r? @kinnison cc @ollie27
2020-04-14Remove `DUMMY_HIR_ID`marmeladema-5/+1
2020-04-10Improve rustdoc source code a bitGuillaume Gomez-24/+20
2020-03-31more clippy fixesMatthias Krüger-17/+14
use is_empty() instead of len comparison (clippy::len_zero) use if let instead of while let loop that never loops (clippy::never_loop) remove redundant returns (clippy::needless_return) remove redundant closures (clippy::redundant_closure) use if let instead of match and wildcard pattern (clippy::single_match) don't repeat field names redundantly (clippy::redundant_field_names)
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-3/+3
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-3/+3
2020-03-24rustc: remove rustc_hir_pretty dependency.Mazdak Farrokhzad-1/+1
2020-03-22don't create variable bindings just to return the bound value immediately ↵Matthias Krüger-4/+2
(clippy::let_and_return)
2020-03-16Support type search for arguments and returned typesGuillaume Gomez-9/+31
2020-03-04Use .map() to modify data inside Options instead of using .and_then(|x| ↵Matthias Krüger-3/+1
Some(y)) (clippy::option_and_then_some)
2020-02-29Make it build againVadim Petrochenkov-1/+1
2020-02-18Rollup merge of #69181 - skinny121:const-eval-return, r=oli-obkDylan DPC-8/+11
Change const eval to just return the value As discussed in https://github.com/rust-lang/rust/pull/68505#discussion_r370956535, the type of consts shouldn't be returned from const eval queries. r? @eddyb cc @nikomatsakis
2020-02-17Rename `FunctionRetTy` to `FnRetTy`Yuki Okushi-2/+2
2020-02-16Code review changes.Ben Lewis-4/+4
2020-02-15Change const eval to return `ConstValue`, instead of `Const` as the type ↵Ben Lewis-8/+11
inside it shouldn't be used.
2020-02-11Review comments.Camille GILLOT-1/+1
2020-02-11Move lang_items definitions to librustc_lang_items.Camille GILLOT-1/+1
2020-02-04remove redundant imports (clippy::single_component_path_imports)Matthias Krüger-1/+0
2020-01-29Rollup merge of #68556 - ollie27:rustdoc_primitive_re-export, r=GuillaumeGomezYuki Okushi-8/+1
rustdoc: Fix re-exporting primitive types * Generate links to the primitive type docs for re-exports. * Don't ICE on cross crate primitive type re-exports. * Make primitive type re-exports show up cross crate. Fixes #67646 Closes #67972 r? @GuillaumeGomez
2020-01-27don't clone types that are copy, round two.Matthias Krüger-1/+1
2020-01-26rustdoc: Fix re-exporting primitive typesOliver Middleton-8/+1
* Generate links to the primitive type docs for re-exports. * Don't ICE on cross crate primitive type re-exports. * Make primitive type re-exports show up cross crate.
2020-01-10Fix print const on librustdocSantiago Pastorino-1/+1
2020-01-10Promote `Ref`s to constants instead of staticSantiago Pastorino-2/+6
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-4/+4
2020-01-05simplify reexports in rustc::hirMazdak Farrokhzad-6/+6
2020-01-04canonicalize FxHash{Map,Set} importsMazdak Farrokhzad-1/+1
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-3/+3
2019-12-24Show value for consts in the documentationOhad Ravid-3/+74
2019-12-22Format the worldMark Rousskov-119/+117
2019-12-09Remove useless commentGuillaume Gomez-2/+0
2019-12-09Remove unused importsGuillaume Gomez-3/+3
2019-12-09Fix usage of variants in clean/utilsGuillaume Gomez-7/+7
2019-12-09Make utils module publicGuillaume Gomez-19/+19
2019-12-09Fix missing importsGuillaume Gomez-1/+20
2019-12-09Move clean functions to another fileGuillaume Gomez-0/+568