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 7 pull requests #70062

Merged
merged 19 commits into from
Mar 17, 2020
Merged

Rollup of 7 pull requests #70062

merged 19 commits into from
Mar 17, 2020

Commits on Mar 9, 2020

  1. Configuration menu
    Copy the full SHA
    eafeb9a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    552a887 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2e65289 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2020

  1. resolve: Simplify fn report_privacy_error

    by factoring out `fn ctor_fields_span` into a separate function
    petrochenkov committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    71ebc61 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    580c6a2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f4083c6 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2020

  1. Configuration menu
    Copy the full SHA
    e80cb20 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2020

  1. Configuration menu
    Copy the full SHA
    81099c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f53f9a8 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2020

  1. Configuration menu
    Copy the full SHA
    ce5e49f View commit details
    Browse the repository at this point in the history
  2. Fix wrong deref

    tesuji authored Mar 16, 2020
    Configuration menu
    Copy the full SHA
    e1bc9af View commit details
    Browse the repository at this point in the history
  3. Fiddle ParamEnv through to a place that used to use `ParamEnv::empt…

    …y` in a buggy manner
    oli-obk committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    7894509 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2020

  1. Rollup merge of rust-lang#69811 - petrochenkov:privdiag2, r=estebank

    resolve: Print import chains on privacy errors
    
    A part of rust-lang#67951 that doesn't require hacks.
    r? @estebank
    Centril authored Mar 17, 2020
    Configuration menu
    Copy the full SHA
    b691145 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#69870 - petrochenkov:cfgacc, r=matthewjasper

    expand: Implement something similar to `#[cfg(accessible(path))]`
    
    cc rust-lang#64797
    
    The feature is implemented as a `#[cfg_accessible(path)]` attribute macro rather than as `#[cfg(accessible(path))]` because it needs to wait until `path` becomes resolvable, and `cfg` cannot wait, but macros can wait.
    
    Later we can think about desugaring or not desugaring `#[cfg(accessible(path))]` into `#[cfg_accessible(path)]`.
    
    This implementation is also incomplete in the sense that it never returns "false" from `cfg_accessible(path)`, it requires some tweaks to resolve, which is not quite ready to answer queries like this during early resolution.
    
    However, the most important part of this PR is not `cfg_accessible` itself, but expansion infrastructure for retrying expansions.
    Before this PR we could say "we cannot resolve this macro path, let's try it later", with this PR we can say "we cannot expand this macro, let's try it later" as well.
    
    This is a pre-requisite for
    - turning `#[derive(...)]` into a regular attribute macro,
    - properly supporting eager expansion for macros that cannot yet be resolved like
        ```
        fn main() {
            println!(not_available_yet!());
        }
    
        macro_rules! make_available {
            () => { #[macro_export] macro_rules! not_available_yet { () => { "Hello world!" } }}
        }
    
        make_available!();
        ```
    Centril authored Mar 17, 2020
    Configuration menu
    Copy the full SHA
    9fc5c2d View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#69881 - Centril:fix-69485, r=oli-obk

    VariantSizeDifferences: bail on SizeOverflow
    
    Fixes rust-lang#69485.
    
    r? @oli-obk
    Centril authored Mar 17, 2020
    Configuration menu
    Copy the full SHA
    1b0c73b View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#70000 - petrochenkov:rawkeypars, r=davidtwco

    resolve: Fix regression in resolution of raw keywords in paths
    
    Fixes rust-lang#63882.
    Centril authored Mar 17, 2020
    Configuration menu
    Copy the full SHA
    3d25622 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#70029 - jonas-schievink:bootstrap, r=Centril

    Bump the bootstrap compiler
    Centril authored Mar 17, 2020
    Configuration menu
    Copy the full SHA
    f907598 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#70046 - lzutao:patch-1, r=Centril

    Use sublice patterns to avoid computing the len
    
    r? @Centril
    Centril authored Mar 17, 2020
    Configuration menu
    Copy the full SHA
    4d7ec70 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#70049 - oli-obk:param_env_empty_considered_…

    …unimplemented, r=eddyb
    
    Fiddle `ParamEnv` through to a place that used to use `ParamEnv::empty` in a buggy manner
    
    cc rust-lang#69981 (comment)
    
    r? @eddyb
    Centril authored Mar 17, 2020
    Configuration menu
    Copy the full SHA
    f118fee View commit details
    Browse the repository at this point in the history