about summary refs log tree commit diff
path: root/src/librustdoc/core.rs
AgeCommit message (Collapse)AuthorLines
2020-05-02cleanup: `config::CrateType` -> `CrateType`Vadim Petrochenkov-9/+5
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/+1
2020-04-23librustc_middle: return LocalDefId instead of DefId in local_def_idmarmeladema-1/+1
2020-04-23Create new rustdoc lint to check for code blocks tagsGuillaume Gomez-1/+6
2020-04-19Replace uses of `parse_opt_*` with `parse_*` where possible.Nicholas Nethercote-2/+2
This lets us specify the default at the options declaration point, instead of using `.unwrap(default)` or `None | Some(default)` at some use point far away. It also makes the code more concise.
2020-04-10librustc_middle: return LocalDefId instead of DefId in opt_local_def_idmarmeladema-2/+5
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-3/+3
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-3/+3
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-1/+1
2020-03-22Update lint name to follow conventionGuillaume Gomez-3/+3
2020-03-22Update to new diagnosticGuillaume Gomez-8/+11
2020-03-22Improve code readabilityGuillaume Gomez-13/+12
2020-03-22rename NO_CRATE_LEVEL_DOC lint into MISSING_CRATE_LEVEL_DOCGuillaume Gomez-4/+3
2020-03-22Add lint when no doc is present at the crate-levelGuillaume Gomez-0/+19
2020-03-16use direct imports for `rustc::{lint, session}`.Mazdak Farrokhzad-11/+10
2020-03-02Put back output-format option for show-coverageGuillaume Gomez-0/+2
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-1/+1
2020-02-26don't take redundant references to operandsMatthias Krüger-1/+1
2020-02-22Rename CodeMap to SourceMap follow upMaxim Zholobak-1/+1
2020-02-09Make issue references consistentMatthias Prechtl-1/+4
2020-02-04remove redundant imports (clippy::single_component_path_imports)Matthias Krüger-1/+0
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-27don't clone types that are copy, round two.Matthias Krüger-2/+2
2020-01-14Rollup merge of #67989 - ollie27:rustdoc_unstable, r=GuillaumeGomezYuki Okushi-2/+1
rustdoc: Don't allow `#![feature(...)]` on stable or beta Fixes #67647 r? @GuillaumeGomez
2020-01-11lints: promote levels.rs to lint.rs & extract passes.rsMazdak Farrokhzad-1/+1
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-5/+8
2020-01-09Rollup merge of #67875 - dtolnay:hidden, r=GuillaumeGomezYuki Okushi-9/+17
Distinguish between private items and hidden items in rustdoc I believe rustdoc should not be conflating private items (visibility lower than `pub`) and hidden items (attribute `doc(hidden)`). This matters now that Cargo is passing --document-private-items by default for bin crates. In bin crates that rely on macros, intentionally hidden implementation details of the macros can overwhelm the actual useful internal API that one would want to document. This PR restores the strip-hidden pass when documenting private items, and introduces a separate unstable --document-hidden-items option to skip the strip-hidden pass. The two options are orthogonal to one another. Fixes #67851. Closes #60884.
2020-01-07rustdoc: Don't allow `#![feature(...)]` on stable or betaOliver Middleton-2/+1
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-3/+3
2020-01-04Auto merge of #67803 - Centril:librustc_hir, r=Zoxcbors-1/+1
Extract `rustc_hir` out of `rustc` The new crate contains: ```rust pub mod def; pub mod def_id; mod hir; pub mod hir_id; pub mod itemlikevisit; pub mod pat_util; pub mod print; mod stable_hash_impls; pub use hir::*; pub use hir_id::*; pub use stable_hash_impls::HashStableContext; ``` Remains to be done in follow-up PRs: - Move `rustc::hir::map` into `rustc_hir_map` -- this has to be a separate crate due to the `dep_graph` (blocked on https://github.com/rust-lang/rust/pull/67761). - Move references to `rustc::hir` to `rustc_hir` where possible. cc https://github.com/rust-lang/rust/issues/65031 r? @Zoxc
2020-01-04Distinguish between private items and hidden items in rustdocDavid Tolnay-9/+17
I believe rustdoc should not be conflating private items (visibility lower than `pub`) and hidden items (attribute `doc(hidden)`). This matters now that Cargo is passing --document-private-items by default for bin crates. In bin crates that rely on macros, intentionally hidden implementation details of the macros can overwhelm the actual useful internal API that one would want to document. This PR restores the strip-hidden pass when documenting private items, and introduces a separate unstable --document-hidden-items option to skip the strip-hidden pass. The two options are orthogonal to one another.
2020-01-04Rollup merge of #67709 - petrochenkov:nodedup2, r=CentrilDylan DPC-21/+8
Introduce an option for disabling deduplication of diagnostics With the intent of using it in UI tests (https://github.com/rust-lang/rust/pull/67122). The option is boolean (`-Z deduplicate-diagnostics=yes/no`) and can be specified multiple times with later values overriding earlier values (`-Z deduplicate-diagnostics=no -Z deduplicate-diagnostics=yes` == `-Z deduplicate-diagnostics=yes`), so it can be set in a hierarchical way, e.g. UI testing infra may disable the deduplication by default with specific tests being able to enable it back.
2020-01-04canonicalize FxHash{Map,Set} importsMazdak Farrokhzad-1/+1
2020-01-03Address review comments + Fix rebaseVadim Petrochenkov-2/+2
2020-01-03rustdoc: Respect diagnostic debugging optionsVadim Petrochenkov-21/+8
2020-01-02Normalize `syntax::symbol` imports.Mazdak Farrokhzad-1/+1
2020-01-02Normalize `syntax::source_map` imports.Mazdak Farrokhzad-1/+1
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-1/+1
2019-12-22Format the worldMark Rousskov-215/+225
2019-12-09Add options to --extern flag.Eric Huss-1/+3
2019-11-30Rollup merge of #66895 - Centril:rustc_feature, r=oli-obkMazdak Farrokhzad-1/+1
Feature gating *declarations* => new crate `rustc_feature` This PR moves the data-oriented parts of feature gating into its own crate, `rustc_feature`. The parts consist of some data types as well as `accepted`, `active`, `removed`, and `builtin_attrs`. Feature gate checking itself remains in `syntax::feature_gate::check`. The parts which define how to emit feature gate errors could probably be moved to `rustc_errors` or to the new `rustc_session` crate introduced in #66878. The visitor itself could probably be moved as a pass in `rustc_passes` depending on how the dependency edges work out. The PR also contains some drive-by cleanup of feature gate checking. As such, the PR probably best read commit-by-commit. r? @oli-obk cc @petrochenkov cc @Mark-Simulacrum
2019-11-30move UnstableFeatures -> rustc_featureMazdak Farrokhzad-1/+1
2019-11-26Review nits.Camille GILLOT-2/+2
2019-11-26Reduce righward drift.Camille GILLOT-129/+127
2019-11-25Don't move stuff out of Compiler::enter.Camille GILLOT-104/+102
2019-11-25Pass Queries by reference.Camille GILLOT-2/+2
2019-11-24Tidy.Camille GILLOT-4/+5
2019-11-24Isolate compiler queries inside the Queries type.Camille GILLOT-25/+29
2019-11-21Rename the cfg attribute from rustdoc to docGuillaume Gomez-1/+1