about summary refs log tree commit diff
path: root/src/test/rustdoc/auxiliary
AgeCommit message (Collapse)AuthorLines
2021-03-15Replace `type_alias_impl_trait` by `min_type_alias_impl_trait` with no ↵Oli Scherer-1/+1
actual changes in behaviour This makes `type_alias_impl_trait` not actually do anything anymore
2021-01-13Update tests for extern block lintingMark Rousskov-1/+1
2021-01-06Update test assertions (showcases bug)Daniel Henry-Mantilla-1/+1
2021-01-06Fix type/value namespace clashes + test for thatDaniel Henry-Mantilla-0/+13
2020-12-31Rustdoc render public underscore_imports as Re-exportsbors-0/+4
Fixes #61592
2020-11-28Move `src/test/rustdoc` intra-doc link tests into a subdirectoryJoshua Nelson-98/+0
They were starting to get unwieldy.
2020-11-26Auto merge of #77467 - jyn514:query-docs, r=oli-obkbors-0/+12
Normalize `<X as Y>::T` for rustdoc - Only run for `QPath::Resolved` with `Some` self parameter (`<X as Y>::T`) - Fall back to the previous behavior if the path can't be resolved The first commit is a pure refactor and should probably be reviewed by `@GuillaumeGomez.` I recommend reviewing the second commit on its own. Fixes https://github.com/rust-lang/rust/issues/77459. r? `@eddyb` cc `@danielhenrymantilla` , `@lcnr`
2020-11-24Use the name "auto traits" everywhere in the compilerCamelid-1/+1
Goodbye, OIBIT!
2020-11-24Normalize `<X as Y>::T` for rustdocJoshua Nelson-0/+12
- Only run for `QPath::Resolved` with `Some` self parameter (`<X as Y>::T`) - Fall back to the previous behavior if the path can't be resolved - Show what the behavior is if the type can't be normalized - Run `resolve_vars_if_possible` It's not clear whether or not this is necessary. See https://github.com/rust-lang/rust/pull/77616 for more context. - Add a test for cross-crate re-exports - Use the same code for both `hir::Ty` and `Ty`
2020-11-23Rename `optin_builtin_traits` to `auto_traits`Camelid-3/+3
They were originally called "opt-in, built-in traits" (OIBITs), but people realized that the name was too confusing and a mouthful, and so they were renamed to just "auto traits". The feature flag's name wasn't updated, though, so that's what this PR does. There are some other spots in the compiler that still refer to OIBITs, but I don't think changing those now is worth it since they are internal and not particularly relevant to this PR. Also see <https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/opt-in.2C.20built-in.20traits.20(auto.20traits).20feature.20name>.
2020-10-11Show summary lines on cross-crate re-exportsJoshua Nelson-0/+8
This removes the unnecessary `DocFragmentKind::Divider` in favor of just using the logic I actually want in `collapse_docs`.
2020-09-27Resolve `crate` properly across cratesJoshua Nelson-0/+5
2020-09-13Add ui test for 74672 and 76571Lzu Tao-0/+28
These tests will fall without the next commit.
2020-08-30Improve testsJoshua Nelson-0/+4
Now this actually tests the links are generated correctly
2020-08-08Cross-crate doc inlining test case for elided lifetimeGary Guo-0/+11
2020-07-19Only skip impls of foreign unstable traitsMark Rousskov-0/+26
Previously unstable impls were skipped, which meant that any impl with an unstable method would get skipped.
2020-07-08Apply #![crate_type = "rlib"] directly to the linkerSeth Pellegrino-0/+1
2020-07-06Two new rustdoc tests for intra linksSeth Pellegrino-0/+18
They both produce less-than-desirable output (links going to docs.rust-lang.org), but I haven't figured out yet how to assert about them properly.
2020-06-11Add more tests for type alias impl TraitMatthew Jasper-0/+17
2020-06-10Avoid collisions between traits and their derive macrosManish Goregaokar-0/+5
2020-06-09Add test for proc macro resolution in intra doc linksManish Goregaokar-0/+30
2020-04-29rustdoc supports const re-exportsMark Rousskov-0/+0
2020-04-08rustdoc: Don't try to load source files from external cratesOliver Middleton-0/+15
Local items defined in external macros shouldn't generate rendered source files and should link to the external crate's docs instead.
2020-01-26rustdoc: Fix re-exporting primitive typesOliver Middleton-0/+8
* 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.
2019-11-08rustdoc: Deliberately load extern crates before processing docsDaniel Silverstone-0/+2
In order that we can successfully later resolve paths in crates which weren't loaded as a result of merely parsing the crate we're documenting, we force the resolution of the path to each crate before cloning the resolver to use later. Closes #66159 Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-09-27Auto merge of #63937 - Nashenas88:rustdoc_57180, r=GuillaumeGomezbors-0/+16
Fix ICE in rustdoc when merging generic and where bounds of an Fn with an output Fixes #57180
2019-08-28Add regression test for issue, apply suggestion to convert to assert_eqPaul Daniel Faria-0/+16
2019-08-26add regression testEsteban Küber-0/+20
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