about summary refs log tree commit diff
path: root/src/test/rustdoc/auxiliary
AgeCommit message (Collapse)AuthorLines
2019-04-22Remove double trailing newlinesvarkor-1/+0
2019-04-11Auto merge of #58972 - QuietMisdreavus:intra-doc-link-imports, r=GuillaumeGomezbors-0/+6
rustdoc: don't process `Crate::external_traits` when collecting intra-doc links Part of https://github.com/rust-lang/rust/issues/58745, closes https://github.com/rust-lang/rust/pull/58917 The `collect-intra-doc-links` pass keeps track of the modules it recurses through as it processes items. This is used to know what module to give the resolver when looking up links. When looking through the regular items of the crate, this works fine, but the `DocFolder` trait as written doesn't just process the main crate hierarchy - it also processes the trait items in the `external_traits` map. This is useful for other passes (so they can strip out `#[doc(hidden)]` items, for example), but here it creates a situation where we're processing items "outside" the regular module hierarchy. Since everything in `external_traits` is defined outside the current crate, we can't fall back to finding its module scope like we do with local items. Skipping this collection saves us from emitting some spurious warnings. We don't even lose anything by skipping it, either - the docs loaded from here are only ever rendered through `html::render::document_short` which strips any links out, so the fact that the links haven't been loaded doesn't matter. Hopefully this removes most of the remaining spurious resolution warnings from intra-doc links. r? @GuillaumeGomez
2019-03-14Moved issue tests to subdirs and normalised names.Alexander Regueiro-0/+0
2019-03-06add test for spurious intra-doc link warningQuietMisdreavus-0/+6
2019-02-10tests: doc commentsAlexander Regueiro-1/+1
2019-01-13Cosmetic improvementsAlexander Regueiro-3/+0
2019-01-10add test for pub extern crateDebugSteven-0/+2
2018-12-25Remove licensesMark Rousskov-429/+1
2018-11-01test that rustdoc doesn't overflow on a big enumAlex Burka-0/+210
2018-10-05Stabilize `min_const_fn`Oliver Schneider-2/+0
2018-09-09rustdoc: Remove generated blanket impls from trait pagesOliver Middleton-0/+11
2018-08-31Restrict most uses of `const_fn` to `min_const_fn`Oliver Schneider-1/+1
2018-08-06Auto merge of #52644 - varkor:lib-feature-gate-2, r=withoutboatsbors-1/+0
Add errors for unknown, stable and duplicate feature attributes - Adds an error for unknown (lang and lib) features. - Extends the lint for unnecessary feature attributes for stable features to libs features (this already exists for lang features). - Adds an error for duplicate (lang and lib) features. ```rust #![feature(fake_feature)] //~ ERROR unknown feature `fake_feature` #![feature(i128_type)] //~ WARNING the feature `i128_type` has been stable since 1.26.0 #![feature(non_exhaustive)] #![feature(non_exhaustive)] //~ ERROR duplicate `non_exhaustive` feature attribute ``` Fixes #52053, fixes #53032 and address some of the problems noted in #44232 (though not unused features). There are a few outstanding problems, that I haven't narrowed down yet: - [x] Stability attributes on macros do not seem to be taken into account. - [x] Stability attributes behind `cfg` attributes are not taken into account. - [x] There are failing incremental tests.
2018-08-05Fix run-pass-fulldeps testsvarkor-1/+0
2018-08-04add tests for new intra-doc-link behaviorQuietMisdreavus-0/+13
2018-05-07Auto merge of #50305 - GuillaumeGomez:fix-mod-stackoverflow, r=QuietMisdreavusbors-0/+21
Prevent infinite recursion of modules Fixes #50196. r? @QuietMisdreavus
2018-05-07Prevent infinite recursion of modulesGuillaume Gomez-0/+21
2018-04-29rustdoc: Fix links to constants in external cratesOliver Middleton-0/+32
2018-03-27rustdoc: Add test for foreign impl trait with boundsManish Goregaokar-0/+37
2018-02-21add test for issue 48414 ICEQuietMisdreavus-0/+15
2018-02-07rustdoc: Hide `-> ()` in cross crate inlined Fn* boundsOliver Middleton-0/+13
2018-01-26Merge branch 'rustdoc_masked' of https://github.com/ollie27/rust into rollupAlex Crichton-0/+20
2018-01-23rustdoc: Hide methods from #[doc(masked)] crates from the search indexOliver Middleton-0/+20
2018-01-23rustdoc: Show when traits are auto traitsOliver Middleton-0/+13
2018-01-13Adjust tests for removal of `impl Foo for .. {}`leonardo.yvens-8/+2
2017-12-24Auto merge of #46894 - detrumi:fix-const-eval-trait, r=eddybbors-0/+17
Const-eval array lengths in rustdoc. Fixes #46727 r? @eddyb Big thanks to @eddyb for helping me figure this out.
2017-12-23Testcase for const-eval array lengthsWilco Kusee-0/+17
2017-12-19test for missing_doc in the external_doc testQuietMisdreavus-0/+1
2017-11-21allow loading external files in documentationQuietMisdreavus-0/+21
Partial implementation of https://github.com/rust-lang/rfcs/pull/1990 (needs error reporting work) cc #44732
2017-11-20Make rustdoc not include self-by-value methods from Deref targetFlorian Hartwig-2/+2
2017-11-03auto trait future compatibility lintleonardo.yvens-0/+2
2017-07-06remove associated_consts feature gateSean McArthur-1/+0
2017-04-09Fix rustdoc infinitely recursing when an external crate reexports itselfAaron Hill-0/+15
Previously, rustdoc's LibEmbargoVisitor unconditionally visited the child modules of an external crate. If a module re-exported its parent via 'pub use super::*', rustdoc would re-walk the parent, leading to infinite recursion. This commit makes LibEmbargoVisitor store already visited modules in an FxHashSet, ensuring that each module is only walked once. Fixes #40936
2017-03-28Rustdoc: test proper representation for `pub use` macrosAustin Bonander-0/+30
2016-09-08Auto merge of #35745 - jroesch:soundness-fix-29859, r=nikomatsakisbors-1/+1
Fix soundness bug described in #29859 This is an attempt at fixing the problems described in #29859 based on an IRC conversation between @nikomatsakis and I today. I'm waiting on a full build to come back, otherwise both tests trigger the correct error.
2016-09-02Remove illegal bound from doc testJared Roesch-1/+1
2016-08-29rustdoc: Fix associated consts in search resultsOliver Middleton-0/+21
Associated consts can appear in none trait impls so need to be treated like methods when generating the search index.
2016-08-11Make `private_in_public` compatibility lint deny-by-defaultVadim Petrochenkov-2/+4
2016-07-12rustdoc: Fix methods in seach resultsOliver Middleton-0/+11
Currently methods from extern crates are sometimes added to the search index when they shouldn't be or added with the original path rather than the reexported path. This fixes that by making sure `cache().paths` only contains local paths like the description for it states. It also fixes a few minor issues with link rendering and redirect generation which would point to local crate docs even if the docs for that crate hadn't been generated. Also a bug with methods implemented on traits which caused wrong paths and so dead links in the search results has been fixed.
2016-06-20rustdoc: Fix a couple of issues with src links to external cratesOliver Middleton-0/+24
- src links/redirects to extern fn from another crate had an extra '/'. - src links to `pub use` of a crate module had an extra '/'. - src links to renamed reexports from another crate used the new name for the link but should use the original name.
2016-05-06s/aux/auxiliary, because windowsNiko Matsakis-0/+488
For legacy reasons (presumably), Windows does not permit files name aux.