-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rollup of 4 pull requests #67987
Rollup of 4 pull requests #67987
Commits on Jan 4, 2020
-
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.
Configuration menu - View commit details
-
Copy full SHA for 90adafb - Browse repository at this point
Copy the full SHA 90adafbView commit details
Commits on Jan 5, 2020
-
Configuration menu - View commit details
-
Copy full SHA for c09e16d - Browse repository at this point
Copy the full SHA c09e16dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 664fe3a - Browse repository at this point
Copy the full SHA 664fe3aView commit details -
Add a
constness
field toast::TraitRef
This is used for both the `?const` syntax in bounds as well as the `impl const Trait` syntax. I also considered handling these separately by adding a variant of `TraitBoundModifier` and a field to `ItemKind::Impl`, but this approach was less intrusive.
Configuration menu - View commit details
-
Copy full SHA for 37259f8 - Browse repository at this point
Copy the full SHA 37259f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0de1693 - Browse repository at this point
Copy the full SHA 0de1693View commit details -
Parse
?const Trait
bound syntaxThe grammar also handles `?const ?Trait` even though this is semantically redundant.
Configuration menu - View commit details
-
Copy full SHA for 14fca9f - Browse repository at this point
Copy the full SHA 14fca9fView commit details -
Error when new syntax is lowered
This means the new syntax will always fail to compile, even when the feature gate is enabled. These checks will be removed in a later PR once the implementation is done.
Configuration menu - View commit details
-
Copy full SHA for 0c62c67 - Browse repository at this point
Copy the full SHA 0c62c67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45eb0f8 - Browse repository at this point
Copy the full SHA 45eb0f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d43134 - Browse repository at this point
Copy the full SHA 5d43134View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14c9ab8 - Browse repository at this point
Copy the full SHA 14c9ab8View commit details -
Configuration menu - View commit details
-
Copy full SHA for eabd51a - Browse repository at this point
Copy the full SHA eabd51aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76ce7a0 - Browse repository at this point
Copy the full SHA 76ce7a0View commit details
Commits on Jan 6, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 532fd39 - Browse repository at this point
Copy the full SHA 532fd39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 19f74cb - Browse repository at this point
Copy the full SHA 19f74cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 012127b - Browse repository at this point
Copy the full SHA 012127bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7aa8ae0 - Browse repository at this point
Copy the full SHA 7aa8ae0View commit details
Commits on Jan 7, 2020
-
Configuration menu - View commit details
-
Copy full SHA for cec957e - Browse repository at this point
Copy the full SHA cec957eView commit details -
Rollup merge of rust-lang#67820 - ecstatic-morse:const-trait, r=oli-obk
Parse the syntax described in RFC 2632 This adds support for both `impl const Trait for Ty` and `?const Trait` bound syntax from rust-lang/rfcs#2632 to the parser. For now, both modifiers end up in a newly-added `constness` field on `ast::TraitRef`, although this may change once the implementation is fleshed out. I was planning on using `delay_span_bug` when this syntax is encountered during lowering, but I can't write `should-ice` UI tests. I emit a normal error instead, which causes duplicates when the feature gate is not enabled (see the `.stderr` files for the feature gate tests). Not sure what the desired approach is; Maybe just do nothing when the syntax is encountered with the feature gate is enabled? @oli-obk I went with `const_trait_impl` and `const_trait_bound_opt_out` for the names of these features. Are these to your liking? cc rust-lang#67792 rust-lang#67794 r? @Centril
Configuration menu - View commit details
-
Copy full SHA for a7529f7 - Browse repository at this point
Copy the full SHA a7529f7View commit details -
Rollup merge of rust-lang#67875 - dtolnay:hidden, r=GuillaumeGomez
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 rust-lang#67851. Closes rust-lang#60884.
Configuration menu - View commit details
-
Copy full SHA for 4b9d279 - Browse repository at this point
Copy the full SHA 4b9d279View commit details -
Rollup merge of rust-lang#67901 - matthewjasper:split-mir-build, r=na…
…gisa Split MIR building into its own crate This moves `rustc_mir::{build, hair, lints}` to `rustc_mir_build`. The new crate only has a `provide` function as it's public API. Based on rust-lang#67898 cc @Centril @rust-lang/compiler r? @oli-obk
Configuration menu - View commit details
-
Copy full SHA for efce4ca - Browse repository at this point
Copy the full SHA efce4caView commit details -
Rollup merge of rust-lang#67977 - Wind-River:master_2020, r=alexcrichton
Updates for VxWorks r? @alexcrichton
Configuration menu - View commit details
-
Copy full SHA for 567e61d - Browse repository at this point
Copy the full SHA 567e61dView commit details