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 9 pull requests #74415

Closed
wants to merge 58 commits into from

Commits on Jun 12, 2020

  1. Enable some timeouts in SGX platform

    This would partially resolve
    fortanix/rust-sgx#31
    mzohreva committed Jun 12, 2020
    Configuration menu
    Copy the full SHA
    c4b0265 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d7dc64b View commit details
    Browse the repository at this point in the history
  3. Allow more ui tests for SGX

    mzohreva committed Jun 12, 2020
    Configuration menu
    Copy the full SHA
    c5d1fcd View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2020

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

Commits on Jul 1, 2020

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

Commits on Jul 3, 2020

  1. Configuration menu
    Copy the full SHA
    a18848b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    177a495 View commit details
    Browse the repository at this point in the history
  3. Remove invalid test

    When ran on Windows `cp` will follow symlink: `checkout/build/<target>/<stage>/lib/rustlib/src/rust`.
    It points to `checkout` which means the test will get stuck in copying loop until there is no space left.
    mati865 committed Jul 3, 2020
    Configuration menu
    Copy the full SHA
    3324bc5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    17bc07d View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2020

  1. Address review comments

    mzohreva committed Jul 11, 2020
    Configuration menu
    Copy the full SHA
    1466598 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2020

  1. Don't render unstable for rustc docs

    As rustc is permanently unstable. So marking every items
    with unstable is essential useless.
    tesuji committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    f970632 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    47fea96 View commit details
    Browse the repository at this point in the history
  3. Automatically calculate std::env::consts::ARCH.

    This simplifies the definition for ARCH.
    
    Note that this changes asmjs-unknown-emscripten ARCH to `wasm32`,
    which reflects the actual target arch.
    ehuss committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    8c6c1dd View commit details
    Browse the repository at this point in the history
  4. Use cfg_if in libtest.

    Simplifies some of the expressions, and provides a default.
    ehuss committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    432b4c1 View commit details
    Browse the repository at this point in the history
  5. Use cfg_if in libpanic_abort.

    This allows setting a default abort using the core intrinsic.
    ehuss committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    9e58908 View commit details
    Browse the repository at this point in the history
  6. Improve ayu rustdoc theme

    * It makes some lines darker
    * It gives the crate selector and search bar a border
      * The search bar's border turns blue when focused
    * Gives the logo a bright shadow. This makes dark logos stand out more
    Aloso authored Jul 15, 2020
    Configuration menu
    Copy the full SHA
    ef6c026 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6e9a1de View commit details
    Browse the repository at this point in the history
  8. Tweak formatting.

    ehuss committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    cee9f05 View commit details
    Browse the repository at this point in the history
  9. Use an allow-list of platforms that support std.

    Use a fall-through for no_std targets.
    ehuss committed Jul 15, 2020
    Configuration menu
    Copy the full SHA
    0eb293d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3d44d3c View commit details
    Browse the repository at this point in the history
  11. Remove drop-shadow

    Aloso authored Jul 15, 2020
    Configuration menu
    Copy the full SHA
    d08bb40 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    85c25ae View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2020

  1. Configuration menu
    Copy the full SHA
    1813ae7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    03bbe9d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8e92f4f View commit details
    Browse the repository at this point in the history
  4. Simplify LifetimeBounds.

    The `lifetimes` field is always empty. This commit removes it, and
    renames the type as `Bounds`.
    nnethercote committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    bccff14 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5271e98 View commit details
    Browse the repository at this point in the history
  6. Use the scope of the imported variable for resolution, not the curren…

    …t scope
    
    - Accept DefId in resolve_str_path_error
    
    This will probably break lots of internal invariants.
    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    848a766 View commit details
    Browse the repository at this point in the history
  7. Use DefId for modules

    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    69bd13f View commit details
    Browse the repository at this point in the history
  8. Don't panic on fake IDs

    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    c3d9a73 View commit details
    Browse the repository at this point in the history
  9. unwrap() -> expect()

    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    20106d5 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    24c3d85 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9542e23 View commit details
    Browse the repository at this point in the history
  12. Remove warnings

    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    99f34d8 View commit details
    Browse the repository at this point in the history
  13. Add test for re-exports

    I had a hard time getting this to work without the `extern crate`,
    suggestions are welcome.
    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    e78d499 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    9eb6394 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    71fe8f7 View commit details
    Browse the repository at this point in the history
  16. Move import to top of function

    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    432b043 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    769acba View commit details
    Browse the repository at this point in the history
  18. rand -> my_rand

    This fixes a failure in stage2 rustdoc tests.
    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    5f49f55 View commit details
    Browse the repository at this point in the history
  19. Support intra-doc links on macro re-exports

    This includes both `macro_rules!` and proc-macros.
    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    e63e5cd View commit details
    Browse the repository at this point in the history
  20. Support intra-doc links on trait and module re-exports

    Trait implementations are treated the same as modules for the purposes
    of intra-doc links.
    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    82b3b07 View commit details
    Browse the repository at this point in the history
  21. Add more debugging

    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    0ad1dcd View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    8387e38 View commit details
    Browse the repository at this point in the history
  23. Fix invalid lint

    intra_doc_resolution_failure is not a lint.
    jyn514 committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    c46e038 View commit details
    Browse the repository at this point in the history
  24. Remove ExtCtxt::ident_of.

    It's equivalent to `Ident::from_str_and_span`. The commit also
    introduces some more static symbols so that `Ident::new` can be used in
    various places instead of `Ident::from_str_and_span`.
    
    The commit also changes `Path::path` from a `&str` to a `Symbol`, which
    then allows the lifetime annotation to be removed from `Ty`. Also, the
    use of `Symbol` in `Bounds` removes the need for its lifetime
    annotation.
    nnethercote committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    9f00808 View commit details
    Browse the repository at this point in the history
  25. Avoid storing SymbolStr in a struct.

    It's intended only for very temporary use.
    nnethercote committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    002af4d View commit details
    Browse the repository at this point in the history
  26. Add UnsafetyViolationDetails.

    This replaces the need for the `description` and `details` symbols in
    `UnsafetyViolation`, which are static. As a result some
    `Symbol::as_str()` calls are no longer necessary, which is nice.
    nnethercote committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    f03c7f8 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    a4ba181 View commit details
    Browse the repository at this point in the history
  28. Rollup merge of rust-lang#73101 - jyn514:rustdoc-absolute-module, r=M…

    …anishearth
    
    Resolve items for cross-crate imports relative to the original module
    
    ~~Blocked on rust-lang#73103 and rust-lang#73566
    
    Closes rust-lang#65983.
    
    I tested on the following code (as mentioned in rust-lang#65983 (comment)):
    
    ```
    pub use rand::Rng;
    ```
    and rustdoc generated the following link: https://rust-random.github.io/rand/rand_core/trait.RngCore.html
    Manishearth authored Jul 16, 2020
    Configuration menu
    Copy the full SHA
    dcd0180 View commit details
    Browse the repository at this point in the history
  29. Rollup merge of rust-lang#73269 - mzohreva:mz/sgx-wait-timeout, r=jet…

    …hrogb
    
    Enable some timeouts in SGX platform
    
    This would partially resolve fortanix/rust-sgx#31
    
    cc @jethrogb and @Goirad
    Manishearth authored Jul 16, 2020
    Configuration menu
    Copy the full SHA
    599a77d View commit details
    Browse the repository at this point in the history
  30. Rollup merge of rust-lang#74009 - mati865:mingw-tests-implib, r=nikom…

    …atsakis
    
    Fix MinGW `run-make-fulldeps` tests
    
    `compiler-rt-works-on-mingw` and `libs-search-path` were not ran because `only-mingw` doesn't match any target.
    Enabled and verified few ignored tests with `windows-gnu` toolchain. They are still ignored on MSVC since I'm not experienced with this target.
    Manishearth authored Jul 16, 2020
    Configuration menu
    Copy the full SHA
    9d59c05 View commit details
    Browse the repository at this point in the history
  31. Rollup merge of rust-lang#74033 - ehuss:std-compile-all-platforms, r=…

    …Mark-Simulacrum
    
    Add build support for Cargo's build-std feature.
    
    This makes some changes to the standard library to make it easier to use with Cargo's build-std feature. The primary goal is to make it so that Cargo and its users do not need to know which crates to build and which features to use for every platform.
    
    Conditional cfgs are adjusted so that there is usually a fall-through for unsupported platforms. Additionally, there is a "restricted-std" feature to mark `std` as unstable when used with build-std on no_std platforms. There is no intent to stabilize this feature for the foreseeable future.
    
    This borrows some of the implementation for wasm which already does what this needs. More code sharing can be done with some other platforms (there is a lot of duplication with cloudabi, hermit, and sgx), but I figure that can be done in a future PR.
    
    There are some small changes to stable behavior in this PR:
    - `std::env::consts::ARCH` on asmjs now reports "wasm32", to match its actual architecture.
    - Some of the wasm error messages for unsupported features report a slightly different error message so that the code can be reused.
    
    There should otherwise not be any changes to how std is built for distribution via bootstrap.
    
    This does not yet support all platforms when used with build-std.
    
    - It doesn't work with 16-bit targets (hashbrown does not support that).
    - It does not work with JSON spec targets.
        - In particular, all target triple snooping will need to be replaced with appropriate target option checking.
    - Switching to gimli (rust-lang#73441) will make cross-building *much* easier.
    - There are still a ton of issues on the Cargo side to resolve. A big one is panic strategy support.
    
    Future PRs are intended to address some of these issues.
    Manishearth authored Jul 16, 2020
    Configuration menu
    Copy the full SHA
    f14a5da View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    dbdc096 View commit details
    Browse the repository at this point in the history
  33. Rollup merge of rust-lang#74357 - nnethercote:symbol-related-improvem…

    …ents, r=oli-obk
    
    Some `Symbol` related improvements
    
    These commits make things nicer and avoid some `Symbol::as_str()` calls.
    
    r? @oli-obk
    Manishearth authored Jul 16, 2020
    Configuration menu
    Copy the full SHA
    6a4e73e View commit details
    Browse the repository at this point in the history
  34. Rollup merge of rust-lang#74371 - Aloso:patch-1, r=GuilliameGomez

    Improve ayu rustdoc theme
    
    This PR changes the following:
    
    * It makes some lines darker
    * It gives the crate selector and search bar a border
      * The search bar's border turns blue when focused
    * ~~Gives the logo a bright shadow.~~
    
    For standard library crates, it would be better to invert the logo, but that would be bad for crates with a colored logo, e.g. [async-std](https://docs.rs/async-std/1.6.2/async_std/).
    
    Before:
    
    ![old](https://user-images.githubusercontent.com/15658558/87576611-ed4e0800-c6d1-11ea-9667-3924702f79e2.png)
    
    After (note that this PR no longer includes the white shadow of the logo):
    
    ![new](https://user-images.githubusercontent.com/15658558/87576621-ef17cb80-c6d1-11ea-8e15-5d7f8b180c07.png)
    Manishearth authored Jul 16, 2020
    Configuration menu
    Copy the full SHA
    01c80f5 View commit details
    Browse the repository at this point in the history
  35. Rollup merge of rust-lang#74386 - msizanoen1:riscv-add-manifest-host,…

    … r=pietroalbini
    
    Add RISC-V GNU/Linux to src/tools/build-manifest as a host platform
    
    Missed during rust-lang#72973
    Manishearth authored Jul 16, 2020
    Configuration menu
    Copy the full SHA
    bea4bb9 View commit details
    Browse the repository at this point in the history
  36. Rollup merge of rust-lang#74398 - GuillaumeGomez:cleanup-e0723, r=Dyl…

    …an-DPC
    
    Clean up E0723 explanation
    
    r? @Dylan-DPC
    Manishearth authored Jul 16, 2020
    Configuration menu
    Copy the full SHA
    f97e6ad View commit details
    Browse the repository at this point in the history