summary refs log tree commit diff
path: root/src/librustdoc
AgeCommit message (Collapse)AuthorLines
2018-07-27Disable lints in rustdocOliver Middleton-1/+1
2018-07-25force the doctest rustc thread to share the name of the testQuietMisdreavus-2/+2
2018-07-25report doctest compile failures correctlyQuietMisdreavus-19/+19
2018-07-25rustdoc: set panic output before starting compiler thread poolQuietMisdreavus-25/+27
2018-07-14add comment about lints whitelistingGuillaume Gomez-0/+2
2018-07-14Whitelist lintsGuillaume Gomez-6/+17
2018-07-14Fix rustdoc run failures by shutting down definitely some lintsGuillaume Gomez-1/+8
2018-07-12rustdoc: Hide struct and enum variant constructor importsOliver Middleton-5/+7
2018-07-12Remove rustdoc pluginssteveklabnik-58/+12
See CVE-2018-1000622.
2018-07-05Remove unused variableGuillaume Gomez-1/+0
2018-07-05Extend collision prevention to every typeGuillaume Gomez-5/+1
2018-07-05Fix macro missing from doc searchGuillaume Gomez-1/+4
2018-06-18Auto merge of #51414 - oli-obk:impl_trait_type_def, r=pnkfelixbors-1/+11
Add existential type definitions Note: this does not allow creating named existential types, it just desugars `impl Trait` to a less (but still very) hacky version of actual `existential type` items. r? @nikomatsakis
2018-06-17Auto merge of #51425 - QuietMisdreavus:thats-def-a-namespace-there, ↵bors-0/+5
r=petrochenkov refactor: create multiple HIR items for imports When lowering `use` statements into HIR, they get a `Def` of the thing they're pointing at. This is great for things that need to know what was just pulled into scope. However, this is a bit misleading, because a `use` statement can pull things from multiple namespaces if their names collide. This is a problem for rustdoc, because if there are a module and a function with the same name (for example) then it will only document the module import, because that's that the lowered `use` statement points to. The current version of this PR does the following: * Whenever the resolver comes across a `use` statement, it loads the definitions into a new `import_map` instead of the existing `def_map`. This keeps the resolutions per-namespace so that all the target definitions are available. * When lowering `use` statements, it looks up the resolutions in the `import_map` and creates multiple `Item`s if there is more than one resolution. * To ensure the `NodeId`s are properly tracked in the lowered module, they need to be created in the AST, and pulled out as needed if multiple resolutions are available. Fixes https://github.com/rust-lang/rust/issues/34843
2018-06-17Auto merge of #51382 - GuillaumeGomez:intra-link-lint, r=QuietMisdreavusbors-9/+38
Add lint for intra link resolution failure This PR is almost done, just remains this note: ``` note: requested on the command line with `-W intra-link-resolution-failure` ``` I have no idea why my lint is considered as being passed through command line and wasn't able to find where it was set. If anyone has an idea, it'd be very helpful! cc @QuietMisdreavus
2018-06-16Auto merge of #51584 - QuietMisdreavus:globs-and-crosses, r=ollie27bors-0/+24
rustdoc: process cross-crate glob re-exports Turns out, we were deliberately ignoring glob re-exports when they were occurring across crates, even though we were fully processing them for local re-exports. This will at least bring the two into parity. Fixes https://github.com/rust-lang/rust/issues/51252
2018-06-15process cross-crate glob re-exportsQuietMisdreavus-0/+24
2018-06-15Fix search fn keywordGuillaume Gomez-1/+5
2018-06-14rustdoc: discard struct ctors from importsQuietMisdreavus-0/+5
2018-06-13Rename intra-doc lintGuillaume Gomez-4/+4
2018-06-13Update help message to escape square bracketsGuillaume Gomez-2/+2
2018-06-13Add help for intra-link lintGuillaume Gomez-3/+5
2018-06-13Fix options issuesGuillaume Gomez-8/+5
2018-06-13Don't auto-hide inherent impls even if `rustdoc-collapse == true`.kennytm-24/+25
2018-06-11Fix extern prelude failure in rustdocGuillaume Gomez-2/+4
2018-06-09Add lint for intra link resolution failureGuillaume Gomez-9/+39
2018-06-08Rollup merge of #51391 - estebank:docspan, r=GuillaumeGomezMark Rousskov-16/+46
Use spans pointing at the inside of a rustdoc attribute Follow up to #51111. Point to the link in a rustdoc attribute where intralink resolution failed, instead of the full rustdoc attribute's span. r? @GuillaumeGomez cc @kennytm
2018-06-08Fix rustdocOliver Schneider-1/+11
2018-06-07Use `from_inner_byte_pos` for cleaner codeEsteban Küber-3/+4
2018-06-07Add existential type definitonsOliver Schneider-1/+1
2018-06-06When unable to sinthesize link span, fallback to previous behaviorEsteban Küber-20/+35
2018-06-06Use spans pointing at the inside of a rustdoc attributeEsteban Küber-16/+30
2018-06-06rustdoc: Fix missing stability and src links for inlined external macrosOliver Middleton-3/+3
2018-06-05Rollup merge of #51256 - GuillaumeGomez:fix-rustdoc-crate-name, ↵Mark Simulacrum-1/+4
r=QuietMisdreavus Fix crate-name option in rustdoc Fixes #51229. r? @QuietMisdreavus
2018-06-04Fix crate-name option in rustdocGuillaume Gomez-1/+4
2018-06-04Remove useless function call for keyword generation in rustdocGuillaume Gomez-2/+1
2018-06-04Few improvementsGuillaume Gomez-5/+4
2018-06-04Add doc keyword supportGuillaume Gomez-56/+136
2018-06-04Auto merge of #51334 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-1/+2
Rollup of 6 pull requests Successful merges: - #51288 (Remove rustdoc-specific is_import field from HIR) - #51299 (const fn integer operations) - #51317 (Allow enabling incremental via config.toml) - #51323 (Generate br for all two target SwitchInts) - #51326 (Various minor slice iterator cleanups) - #51329 (Remove the unused `-Z trans-time-graph` flag.) Failed merges:
2018-06-03Remove is_import fieldMark Simulacrum-1/+2
2018-06-03Show which line the link is coming from.kennytm-10/+61
2018-06-03Point to the rustdoc attribute where intralink resolution failed.kennytm-8/+17
2018-06-03Auto merge of #51319 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-3/+6
Rollup of 6 pull requests Successful merges: - #51143 (Specify that packed types must derive, not implement, Copy) - #51226 (Make Layout's align a NonZeroUsize) - #51297 (Fix run button style) - #51306 (impl Default for &mut str) - #51312 (Clarify the difference between get_mut and into_mut for OccupiedEntry) - #51313 (use type name in E0599 enum variant suggestion) Failed merges:
2018-06-02Rollup merge of #51297 - GuillaumeGomez:fix-run-but-style, r=QuietMisdreavusMark Simulacrum-3/+6
Fix run button style r? @QuietMisdreavus
2018-06-02Add attributes for trait and methods as wellGuillaume Gomez-13/+21
2018-06-02Fix run button styleGuillaume Gomez-3/+6
2018-06-01merge UNNECESSARY_EXTERN_CRATE and UNUSED_EXTERN_CRATESNiko Matsakis-1/+1
2018-05-30Fixes some style issues in rustdoc "implementations on Foreign types"Guillaume Gomez-8/+33
2018-05-26Add `Ident::as_str` helperVadim Petrochenkov-1/+1
2018-05-26Use `Ident`s for fields in HIRVadim Petrochenkov-8/+8