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 #78711

Merged
merged 43 commits into from
Nov 3, 2020
Merged

Rollup of 7 pull requests #78711

merged 43 commits into from
Nov 3, 2020

Commits on Oct 14, 2020

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

Commits on Oct 27, 2020

  1. Use with_no_trimmed_paths

    Fixes compilation without -Ztrim-diagnostic-paths=no
    bjorn3 committed Oct 27, 2020
    Configuration menu
    Copy the full SHA
    2be0596 View commit details
    Browse the repository at this point in the history
  2. Prefer numeric associated constants in example

    Per their documentation, the `max_value()` and `min_value()` associated functions have been superseded by the `MAX` and `MIN` associated constants since Rust 1.43 and are considered "soft deprecated", with all uses currently being replaced in the rustc repo.
    bstrie authored Oct 27, 2020
    Configuration menu
    Copy the full SHA
    4206f9f View commit details
    Browse the repository at this point in the history
  3. Merge pull request rust-lang#1096 from bstrie/patch-1

    Prefer numeric associated constants in example
    bjorn3 authored Oct 27, 2020
    Configuration menu
    Copy the full SHA
    9842954 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2020

  1. Configuration menu
    Copy the full SHA
    5103a25 View commit details
    Browse the repository at this point in the history
  2. Fix many clippy warnings

    bjorn3 committed Oct 28, 2020
    Configuration menu
    Copy the full SHA
    4cc6b4f View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2020

  1. Configuration menu
    Copy the full SHA
    114be42 View commit details
    Browse the repository at this point in the history
  2. Implement -Zfunction-sections

    bjorn3 committed Oct 31, 2020
    Configuration menu
    Copy the full SHA
    c067be0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    34be539 View commit details
    Browse the repository at this point in the history
  4. Update Cranelift

    bjorn3 committed Oct 31, 2020
    Configuration menu
    Copy the full SHA
    6b1902a View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2020

  1. Update Cranelift

    Fixes bootstrapping of rustc using cg_clif
    
    Fixes rust-lang#1097
    bjorn3 committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    f4e8af2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8063c37 View commit details
    Browse the repository at this point in the history
  3. Rename trans to codegen

    mominul committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    d27f2f0 View commit details
    Browse the repository at this point in the history
  4. Merge pull request rust-lang#1100 from mominul/trans->codegen

    Rename trans to codegen
    bjorn3 authored Nov 1, 2020
    Configuration menu
    Copy the full SHA
    c1cad03 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c674c2c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8b9c213 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    324e63d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    cb36760 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1ea618a View commit details
    Browse the repository at this point in the history
  10. Update build instructions

    bjorn3 committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    9410b58 View commit details
    Browse the repository at this point in the history
  11. Deny #[deprecated] on trait impl blocks.

    They have no effect there, but were silently accepted.
    m-ou-se committed Nov 1, 2020
    Configuration menu
    Copy the full SHA
    0e2337a View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    706bc33 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    6f1992a View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    9fc991a View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2020

  1. Corrected suggestion for generic parameters in `function_item_referen…

    …ces` lint
    
    This lint was incorrectly suggesting casting a function to a pointer without
    specifying generic type parameters or const generics. This would cause a
    compiler error since the missing parameters couldn't be inferred. This commit
    fixed the suggestion and added a few tests with generics.
    ayrtonm committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    ace02c4 View commit details
    Browse the repository at this point in the history
  2. Improve deprecation attribute diagnostic messages.

    (From the PR feedback.)
    
    Co-authored-by: Esteban Küber <esteban@kuber.com.ar>
    m-ou-se and estebank committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    9c647d1 View commit details
    Browse the repository at this point in the history
  3. Refactor the build system

    bjorn3 committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    0c34f5a View commit details
    Browse the repository at this point in the history
  4. Upload prebuilt cg_clif

    bjorn3 committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    8315730 View commit details
    Browse the repository at this point in the history
  5. Merge pull request rust-lang#1104 from bjorn3/build_system_refactor

    Build system refactor
    bjorn3 authored Nov 2, 2020
    Configuration menu
    Copy the full SHA
    520a61f View commit details
    Browse the repository at this point in the history
  6. Revert unintentional change

    bjorn3 committed Nov 2, 2020
    Configuration menu
    Copy the full SHA
    646b00f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    54b1d10 View commit details
    Browse the repository at this point in the history
  8. Merge pull request rust-lang#1105 from bjorn3/test_rustc_bootstrapping

    Test bootstrapping of rustc using cg_clif
    bjorn3 authored Nov 2, 2020
    Configuration menu
    Copy the full SHA
    03f01bb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1aedcd3 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2020

  1. Configuration menu
    Copy the full SHA
    216c4ae View commit details
    Browse the repository at this point in the history
  2. lldb_batchmode: show more error information

    Even more information to try and debug rust-lang#78665.
    pietroalbini committed Nov 3, 2020
    Configuration menu
    Copy the full SHA
    c32de75 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2172adb View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#77950 - arlosi:sha256, r=eddyb

    Add support for SHA256 source file hashing
    
    Adds support for `-Z src-hash-algorithm sha256`, which became available in LLVM 11.
    
    Using an older version of LLVM will cause an error `invalid checksum kind` if the hash algorithm is set to sha256.
    
    r? `@eddyb`
    cc rust-lang#70401 `@est31`
    m-ou-se authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    52405f7 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#78624 - bjorn3:update_cg_clif-2020-11-01, r…

    …=jyn514
    
    Sync rustc_codegen_cranelift
    
    This fixes bootstrapping of rustc using cg_clif again. It regressed a while before rust-lang#77975 got merged.
    
    Fixes https://github.com/bjorn3/rustc_codegen_cranelift/issues/743
    m-ou-se authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    39f5563 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#78626 - fusion-engineering-forks:deprecated…

    …-trait-impl, r=estebank
    
    Improve errors about #[deprecated] attribute
    
    This change:
    
    1. Turns `#[deprecated]` on a trait impl block into an error, which fixes rust-lang#78625;
    2. Changes these and other errors about `#[deprecated]` to use the span of the attribute instead of the item; and
    3. Turns this error into a lint, to make sure it can be capped with `--cap-lints` and doesn't break any existing dependencies.
    
    Can be reviewed per commit.
    
    ---
    Example:
    ```rust
    struct X;
    
    #[deprecated = "a"]
    impl Default for X {
        #[deprecated = "b"]
        fn default() -> Self {
            X
        }
    }
    ```
    
    Before:
    ```
    error: This deprecation annotation is useless
     --> src/main.rs:6:5
      |
    6 | /     fn default() -> Self {
    7 | |         X
    8 | |     }
      | |_____^
    ```
    
    After:
    ```
    error: this `#[deprecated]' annotation has no effect
     --> src/main.rs:3:1
      |
    3 | #[deprecated = "a"]
      | ^^^^^^^^^^^^^^^^^^^ help: try removing the deprecation attribute
      |
      = note: `#[deny(useless_deprecated)]` on by default
    
    error: this `#[deprecated]' annotation has no effect
     --> src/main.rs:5:5
      |
    5 |     #[deprecated = "b"]
      |     ^^^^^^^^^^^^^^^^^^^ help: try removing the deprecation attribute
    ```
    m-ou-se authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    f011292 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#78659 - ayrtonm:fn-ref-lint-fix, r=oli-obk

    Corrected suggestion for generic parameters in `function_item_references` lint
    
    This commit handles functions with generic type parameters like you pointed out as well as const generics. Also this is probably a minor thing, but the type alias you used in the example doesn't show up so the suggestion right now would be `size_of::<[u8; 16]> as fn() ->`. This is because the lint checker works with MIR instead of HIR. I don't think we can get the alias at that point, but let me know if I'm wrong and there's a way to fix this. Also I put you as the reviewer, but I'm not sure if you want to review it or if it makes more sense to ask one of the original reviewers of this lint.
    closes rust-lang#78571
    m-ou-se authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    f347dab View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#78687 - jyn514:bootstrap-help, r=Mark-Simul…

    …acrum
    
    Suggest library/std when running all stage 0 tests
    
    r? ``@Mark-Simulacrum``
    cc ``@ijackson``
    
    For context, this came out of a discord conversation where ``@ijackson`` was running `test --stage 1` when they were only adding doc-tests to the standard library.
    m-ou-se authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    8a1f9e0 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#78699 - pietroalbini:lldb-error, r=jyn514

    Show more error information in lldb_batchmode
    
    Even more information to try and debug rust-lang#78665.
    m-ou-se authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    f9dd8d3 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#78709 - ehuss:fix-in_tree_crates-non-member…

    …, r=Mark-Simulacrum
    
    Fix panic in bootstrap for non-workspace path dependencies.
    
    If you add a `path` dependency to a `Cargo.toml` that is located outside of the workspace, then the `in_tree_crates` function can panic because it finds a path dependency that is not defined (since it uses `cargo metadata --no-deps`).  This fixes it by skipping over those entries, which are usually not things you select on the command-line.
    
    Fixes rust-lang#78617
    m-ou-se authored Nov 3, 2020
    Configuration menu
    Copy the full SHA
    a65507b View commit details
    Browse the repository at this point in the history