Skip to content
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

Closed
wants to merge 21 commits into from
Closed

Commits on Jan 4, 2020

  1. 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.
    dtolnay committed Jan 4, 2020
    Configuration menu
    Copy the full SHA
    90adafb View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2020

  1. Configuration menu
    Copy the full SHA
    c09e16d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    664fe3a View commit details
    Browse the repository at this point in the history
  3. Add a constness field to ast::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.
    ecstatic-morse committed Jan 5, 2020
    Configuration menu
    Copy the full SHA
    37259f8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0de1693 View commit details
    Browse the repository at this point in the history
  5. Parse ?const Trait bound syntax

    The grammar also handles `?const ?Trait` even though this is
    semantically redundant.
    ecstatic-morse committed Jan 5, 2020
    Configuration menu
    Copy the full SHA
    14fca9f View commit details
    Browse the repository at this point in the history
  6. 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.
    ecstatic-morse committed Jan 5, 2020
    Configuration menu
    Copy the full SHA
    0c62c67 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    45eb0f8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5d43134 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    14c9ab8 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    eabd51a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    76ce7a0 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2020

  1. Configuration menu
    Copy the full SHA
    532fd39 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    19f74cb View commit details
    Browse the repository at this point in the history
  3. Remove weak.rs for VxWorks

    Umesh Kalappa authored and BaoshanPang committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    012127b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7aa8ae0 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2020

  1. ignore signal SIGPIPE

    BaoshanPang committed Jan 7, 2020
    Configuration menu
    Copy the full SHA
    cec957e View commit details
    Browse the repository at this point in the history
  2. 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
    Centril committed Jan 7, 2020
    Configuration menu
    Copy the full SHA
    a7529f7 View commit details
    Browse the repository at this point in the history
  3. 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.
    Centril committed Jan 7, 2020
    Configuration menu
    Copy the full SHA
    4b9d279 View commit details
    Browse the repository at this point in the history
  4. 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
    Centril committed Jan 7, 2020
    Configuration menu
    Copy the full SHA
    efce4ca View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    567e61d View commit details
    Browse the repository at this point in the history