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

Closed
wants to merge 16 commits into from
Closed

Commits on Sep 20, 2022

  1. Configuration menu
    Copy the full SHA
    d45f6db View commit details
    Browse the repository at this point in the history
  2. Add ptr::Alignment type

    Essentially no new code here, just exposing the previously-`pub(crate)` `ValidAlign` type under the name from the ACP.
    scottmcm committed Sep 20, 2022
    Configuration menu
    Copy the full SHA
    585bcc6 View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2022

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

Commits on Sep 22, 2022

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

Commits on Oct 8, 2022

  1. Configuration menu
    Copy the full SHA
    293f662 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    be1c7aa View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2022

  1. Configuration menu
    Copy the full SHA
    70f3c79 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7dedb91 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a4d4d5 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#102055 - c410-f3r:moar-errors, r=petrochenkov

    Move some tests to more reasonable directories
    
    r? `@petrochenkov`
    Dylan-DPC committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    1381e48 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#102072 - scottmcm:ptr-alignment-type, r=thomcc

    Add `ptr::Alignment` type
    
    Essentially no new code here, just exposing the previously-`pub(crate)` `ValidAlign` type under the name from the ACP.
    
    ACP: rust-lang/libs-team#108
    Tracking Issue: rust-lang#102070
    
    r? `@ghost`
    Dylan-DPC committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    c4187f2 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#102794 - dtolnay:termination, r=thomcc

    Make tests capture the error printed by a Result return
    
    An error returned by tests previously would get written directly to stderr, instead of to the capture buffer set up by the test harness. This PR makes it write to the capture buffer so that it can be integrated as part of the test output by build tools such as `buck test`, since being able to read the error message returned by a test is pretty critical to debugging why the test failed.
    
    <br>
    
    **Before:**
    
    ```rust
    // tests/test.rs
    
    #[test]
    fn test() -> Result<(), &'static str> {
        println!("STDOUT");
        eprintln!("STDERR");
        Err("RESULT")
    }
    ```
    
    ```console
    $ cargo build --test test
    $ target/debug/deps/test-???????????????? -Z unstable-options --format=json
    { "type": "suite", "event": "started", "test_count": 1 }
    { "type": "test", "event": "started", "name": "test" }
    Error: "RESULT"
    { "type": "test", "name": "test", "event": "failed", "stdout": "STDOUT\nSTDERR\n" }
    { "type": "suite", "event": "failed", "passed": 0, "failed": 1, "ignored": 0, "measured": 0, "filtered_out": 0, "exec_time": 0.00040313 }
    ```
    
    **After:**
    
    ```console
    $ target/debug/deps/test-???????????????? -Z unstable-options --format=json
    { "type": "suite", "event": "started", "test_count": 1 }
    { "type": "test", "event": "started", "name": "test" }
    { "type": "test", "name": "test", "event": "failed", "stdout": "STDOUT\nSTDERR\nError: \"RESULT\"" }
    { "type": "suite", "event": "failed", "passed": 0, "failed": 1, "ignored": 0, "measured": 0, "filtered_out": 0, "exec_time": 0.000261894 }
    ```
    Dylan-DPC committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    13baeee View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#102820 - ehuss:let-else-nightly-suggestion,…

    … r=petrochenkov
    
    Show let-else suggestion on stable.
    
    The E0005 error message has a suggestion to use let-else. Now that let-else is stabilized, I think this message should be included on non-nightly toolchains. I suspect this was just an oversight from rust-lang#93628.  [`E0005.stderr`](https://github.com/ehuss/rust/blob/be1c7aad723126b2ea65543b4ceed54167b841a2/src/test/ui/error-codes/E0005.stderr#L22-L25) contains an example of what this suggestion looks like.
    Dylan-DPC committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    c944211 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#102829 - compiler-errors:rename-impl-item-k…

    …ind, r=TaKO8Ki
    
    rename `ImplItemKind::TyAlias` to `ImplItemKind::Type`
    
    The naming of this variant seems inconsistent given that this is not really a "type alias", and the associated type variant for `TraitItemKind` is just called `Type`.
    Dylan-DPC committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    124c046 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#102831 - compiler-errors:rustdoc-norm-oops,…

    … r=jyn514
    
    Don't use unnormalized type in `Ty::fn_sig` call in rustdoc `clean_middle_ty`
    
    Self-explanatory
    
    Fixes rust-lang#102828
    Dylan-DPC committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    23c2d21 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#102834 - compiler-errors:unnecessary-lift, …

    …r=jyn514
    
    Remove unnecessary `lift`/`lift_to_tcx` calls from rustdoc
    
    Not sure why they were here in the first place
    Dylan-DPC committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    f38b564 View commit details
    Browse the repository at this point in the history