summary refs log tree commit diff
path: root/src/librustdoc/clean
AgeCommit message (Collapse)AuthorLines
2020-03-10Rollup merge of #69514 - GuillaumeGomez:remove-spotlight, r=kinnisonMazdak Farrokhzad-5/+0
Remove spotlight I had a few comments saying that this feature was at best misunderstood or not even used so I decided to organize a poll about on [twitter](https://twitter.com/imperioworld_/status/1232769353503956994). After 87 votes, the result is very clear: it's not useful. Considering the amount of code we have just to run it, I think it's definitely worth it to remove it. r? @kinnison cc @ollie27
2020-03-06fix various typosMatthias Krüger-1/+1
2020-03-05Rollup merge of #69736 - matthiaskrgr:even_more_clippy, r=Dylan-DPCDylan DPC-1/+1
even more clippy cleanups * Don't pass &mut where immutable reference (&) is sufficient (clippy::unnecessary_mut_passed) * Use more efficient &&str to String conversion (clippy::inefficient_to_string) * Don't always eval arguments inside .expect(), use unwrap_or_else and closure. (clippy::expect_fun_call) * Use righthand '&' instead of lefthand "ref". (clippy::toplevel_ref_arg) * Use simple 'for i in x' loops instead of 'while let Some(i) = x.next()' loops on iterators. (clippy::while_let_on_iterator) * Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes) * Remove redundant patterns when matching ( x @ _ to x) (clippy::redundant_pattern)
2020-03-05Const items have by default a static lifetime, there's no need to annotate ↵Matthias Krüger-1/+1
it. (clippy::redundant_static_lifetimes)
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-03-01Auto merge of #69592 - petrochenkov:nosyntax, r=Centrilbors-11/+11
Rename `libsyntax` to `librustc_ast` This was the last rustc crate that wasn't following the `rustc_*` naming convention. Follow-up to https://github.com/rust-lang/rust/pull/67763.
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-10/+10
2020-02-29Rollup merge of #69572 - matthiaskrgr:try_err_and_iter_on_ref, r=CentrilDylan DPC-3/+3
use .iter() instead of .into_iter() on references
2020-02-29Make it build againVadim Petrochenkov-1/+1
2020-02-29use .iter() instead of .into_iter() on references.Matthias Krüger-3/+3
2020-02-28use is_empty() instead of len() == x to determine if structs are empty.Matthias Krüger-3/+3
2020-02-27Remove "important traits" featureGuillaume Gomez-5/+0
2020-02-27use find(x) instead of filter(x).next()Matthias Krüger-2/+1
2020-02-22Rename CodeMap to SourceMap follow upMaxim Zholobak-7/+7
2020-02-19Make lookup of associated item by name O(log n)Dylan MacKenzie-4/+5
2020-02-18Rollup merge of #69181 - skinny121:const-eval-return, r=oli-obkDylan DPC-9/+14
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-12/+12
2020-02-16Other crates.Camille GILLOT-4/+4
2020-02-16Code review changes.Ben Lewis-7/+5
2020-02-15Change const eval to return `ConstValue`, instead of `Const` as the type ↵Ben Lewis-9/+16
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-08Make `provided_trait_methods` use `impl Iterator`Jonas Schievink-9/+2
2020-02-08Make `associated_items` query return a sliceJonas Schievink-1/+4
2020-02-06index ReEmpty by universeNiko Matsakis-3/+3
We now make `'empty` indexed by a universe index, resulting in a region lattice like this: ``` static ----------+-----...------+ (greatest) | | | early-bound and | | free regions | | | | | scope regions | | | | | empty(root) placeholder(U1) | | / | | / placeholder(Un) empty(U1) -- / | / ... / | / empty(Un) -------- (smallest) ``` Therefore, `exists<A> { forall<B> { B: A } }` is now unprovable, because A must be at least Empty(U1) and B is placeholder(U2), and hence the two regions are unrelated.
2020-02-04remove redundant imports (clippy::single_component_path_imports)Matthias Krüger-1/+0
2020-02-011. move node_id to syntaxMazdak Farrokhzad-1/+1
2. invert rustc_session & syntax deps 3. drop rustc_session dep in rustc_hir
2020-02-01Move builtin attribute logic to new rustc_attr crate.Mazdak Farrokhzad-1/+1
For now, this is all the crate contains, but more attribute logic & types will be moved there over time.
2020-01-29Rollup merge of #68556 - ollie27:rustdoc_primitive_re-export, r=GuillaumeGomezYuki Okushi-12/+47
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-5/+5
2020-01-26rustdoc: Fix re-exporting primitive typesOliver Middleton-12/+47
* 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-20Add `ConstnessAnd` that implements `ToPredicate`Dylan MacKenzie-2/+2
2020-01-20Add `constness` field to `ty::Predicate::Trait`Dylan MacKenzie-3/+3
2020-01-17Rollup merge of #68204 - ecstatic-morse:item-kind-impl, r=oli-obkTyler Mandry-4/+4
Use named fields for `{ast,hir}::ItemKind::Impl` Currently, the widely used `ItemKind::Impl` variant is a tuple with seven fields. I want to add an eighth in #68140, which means I have to update most matches on this variant anyways. Giving a name to each field improves readability and makes future changes of this nature much simpler. This change will cause several tools to break. I will fix them once this is merged.
2020-01-17Rollup merge of #68093 - GuillaumeGomez:fix-deref-impl-typedef, r=oli-obkTyler Mandry-11/+48
Fix deref impl typedef Fixes #35295. r? @kinnison
2020-01-17Use named fields for `hir::ItemKind::Impl`Dylan MacKenzie-4/+4
2020-01-17formattingGuillaume Gomez-21/+19
2020-01-16don't clone types that are copyMatthias Krüger-1/+1
found via clippy
2020-01-16Improve code readabilityGuillaume Gomez-26/+10
2020-01-15Simplify deref impls for type aliasesGuillaume Gomez-2/+29
2020-01-15formattingGuillaume Gomez-21/+5
2020-01-15Fix deref impl on type aliasGuillaume Gomez-3/+47
2020-01-13Remove unneeded scopeYuki Okushi-32/+26
2020-01-11Auto merge of #67000 - spastorino:remove-promoted-from-place, r=oli-obkbors-2/+6
Promote references to constants instead of statics r? @oli-obk
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-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-1/+1
2020-01-09Rollup merge of #67955 - ollie27:rustdoc_cfg_dupes, r=GuillaumeGomezYuki Okushi-16/+90
rustdoc: Remove more `#[doc(cfg(..))]` duplicates This is a follow up to #66959. r? @GuillaumeGomez
2020-01-08Move `is_min_const_fn` query to librustc_mir.Camille GILLOT-3/+5
The only two uses of the associated methods are in librustc_mir and librustdoc. Please tell me if there is a better choice.
2020-01-06rustdoc: Remove more `#[doc(cfg(..))]` duplicatesOliver Middleton-16/+90