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 8 pull requests #70351

Merged
merged 46 commits into from
Mar 24, 2020
Merged

Rollup of 8 pull requests #70351

merged 46 commits into from
Mar 24, 2020

Commits on Mar 6, 2020

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

Commits on Mar 19, 2020

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

Commits on Mar 21, 2020

  1. Configuration menu
    Copy the full SHA
    d8448d2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40f73e7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    78c178b View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2020

  1. Configuration menu
    Copy the full SHA
    4f40511 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61d3be8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    645fedd View commit details
    Browse the repository at this point in the history
  4. Remove some local variables.

    I find the code easier to read if the values in `config` are all used
    directly, rather than a mix of `config` values and local variables. It
    will also faciliate some of the following commits.
    
    Also, use `config.bitcode_needed()` in one place.
    nnethercote committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    d156bf6 View commit details
    Browse the repository at this point in the history
  5. Combine ModuleConfig::embed_bitcode{,_marker}.

    Because the `(true, true)` combination isn't valid.
    nnethercote committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    47c8f3f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e4b36ba View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f8261b4 View commit details
    Browse the repository at this point in the history
  8. Introduce a local variable config_emit_normal_obj.

    This adds a missing `!config.obj_is_bitcode` condition to two places
    that should have it.
    
    As a result, when `obj_is_bitcode` and `no_integrated_as` are both true,
    the compiler will no longer unnecessarily emit asm, convert it to an
    object file, and then overwrite that object file with bitcode.
    nnethercote committed Mar 22, 2020
    Configuration menu
    Copy the full SHA
    a147cd0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ca0f997 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2020

  1. Store idents for DefPathData into crate metadata

    Previously, we threw away the `Span` associated with a definition's
    identifier when we encoded crate metadata, causing us to lose location
    and hygiene information.
    
    We now store the identifier's `Span` in the crate metadata.
    When we decode items from the metadata, we combine
    the name and span back into an `Ident`.
    
    This improves the output of several tests, which previously had messages
    suppressed due to dummy spans.
    
    This is a prerequisite for rust-lang#68686, since throwing away a `Span` means
    that we lose hygiene information.
    Aaron1011 committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    96e2d03 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    86b8dea View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6a7106c View commit details
    Browse the repository at this point in the history
  4. fix comment

    lcnr authored Mar 23, 2020
    Configuration menu
    Copy the full SHA
    0a17c4c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e8f0a64 View commit details
    Browse the repository at this point in the history
  6. Update tests

    Zoxc committed Mar 23, 2020
    Configuration menu
    Copy the full SHA
    47a84f2 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2020

  1. Configuration menu
    Copy the full SHA
    0f2d968 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0a8db69 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b7909b2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b0537e2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    35cca74 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ce8880d View commit details
    Browse the repository at this point in the history
  7. defatalize ProcMacroDerive::expand

    Also remove ExtCtxt::struct_span_fatal.
    Centril committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    c1ef1b3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ad26401 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    df9cec2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1bfa248 View commit details
    Browse the repository at this point in the history
  11. expand: nix unused method

    Centril committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    2868045 View commit details
    Browse the repository at this point in the history
  12. defatalize get_test_runner

    Centril committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    0e0f931 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3979964 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    21944b3 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    d8080d8 View commit details
    Browse the repository at this point in the history
  16. fix rebase fallout

    Centril committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    d071035 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    c415f12 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    470e163 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#68884 - Zoxc:gen-type, r=nikomatsakis

    Make the `type_of` return a generic type for generators
    
    Fixes rust-lang#67651.
    
    r? @nikomatsakis
    Centril authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    a130954 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#69788 - ArekPiekarz:unstable_book_optin_bui…

    …ltin_traits, r=Dylan-DPC
    
    Fix sequence of Type and Trait in optin-builtin-traits in Unstable Book
    
    A simple fix in docs - the sequence of words in basic example of negative trait implementation was reversed.
    Centril authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    0a39964 View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#70074 - Centril:unpanictry, r=petrochenkov

    Expand: nix all fatal errors
    
    Basically, we go after all `.span_fatal` / `FatalError.raise()` and similar things and remove them one by one until there are no fatal errors left.
    
    r? @petrochenkov
    Centril authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    3d8b961 View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#70077 - Aaron1011:feature/new-def-path-iden…

    …t, r=petrochenkov
    
    Store idents for `DefPathData` into crate metadata
    
    Previously, we threw away the `Span` associated with a definition's
    identifier when we encoded crate metadata, causing us to lose location
    and hygiene information.
    
    We now store the identifier's `Span` in a side table, which gets encoded
    into the crate metadata. When we decode items from the metadata, we
    combine the name and span back into an `Ident`.
    
    This improves the output of several tests, which previously had messages
    suppressed due to dummy spans.
    
    This is a prerequisite for rust-lang#68686, since throwing away a `Span` means
    that we lose hygiene information.
    Centril authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    d626f5b View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#70213 - eddyb:stalled-on-ty-or-const, r=nik…

    …omatsakis
    
    traits/fulfill: allow `stalled_on` to track `ty::Const::Infer(_)` (unused yet).
    
    This PR addresses the representation side of rust-lang#70180, but only *actually collects* `ty::Infer`s via `Ty::walk` into `stalled_on` (collecting `ty::ConstKind::Infer`s requires rust-lang#70164).
    
    However, it should be enough to handle rust-lang#70107's needs (WF obligations are stalled only on the outermost type/const being an inference variable, no `walk`-ing is involved).
    
    This is my second attempt, see rust-lang#70181 for the previous one, which unacceptably regressed perf.
    
    r? @nikomatsakis cc @nnethercote
    Centril authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    7bd86ce View commit details
    Browse the repository at this point in the history
  24. Rollup merge of rust-lang#70259 - wesleywiser:use_reveal_all, r=eddyb

    Use Reveal::All in MIR optimizations
    
    Resolves some code review feedback in rust-lang#67662.
    
    Fixes rust-lang#68855
    
    r? @eddyb
    Centril authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    0d5b83d View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#70284 - lcnr:issue70273-what-the-heck-git, …

    …r=eddyb
    
    correctly handle const params in type_of
    
    extends rust-lang#70223, retry of rust-lang#70276
    
    fixes rust-lang#70273
    
    r? @eddyb cc @varkor
    Centril authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    d309058 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#70289 - nnethercote:refactor-codegen, r=eddyb

    Refactor `codegen`
    
    `codegen` in `src/librustc_codegen_llvm/back/write.rs` is long and has complex control flow. These commits refactor it and make it easier to understand.
    Centril authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    170112c View commit details
    Browse the repository at this point in the history