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

Merged
merged 17 commits into from
Oct 28, 2017
Merged

Rollup of 7 pull requests #45589

merged 17 commits into from
Oct 28, 2017

Commits on Oct 21, 2017

  1. Configuration menu
    Copy the full SHA
    4fdd629 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    af09ba8 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2017

  1. Remove 'just' in diagnostics

    This is better writing
    steveklabnik committed Oct 26, 2017
    Configuration menu
    Copy the full SHA
    4c6942d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    04f27f0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    11d758a View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2017

  1. Configuration menu
    Copy the full SHA
    732d9b2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    880200a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5773efa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cfc916e View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2017

  1. Configuration menu
    Copy the full SHA
    b168127 View commit details
    Browse the repository at this point in the history
  2. Rollup merge of rust-lang#45421 - QuietMisdreavus:update-pulldown, r=…

    …steveklabnik
    
    rustdoc: update pulldown + fix spurious rendering difference around footnotes
    
    fixes rust-lang#45420
    kennytm authored Oct 28, 2017
    Configuration menu
    Copy the full SHA
    b644339 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#45449 - frewsxcv:frewsxcv-udp-nonblocking, …

    …r=sfackler
    
    Improve docs for UdpSocket::set_nonblocking.
    
    Closes rust-lang#44050.
    kennytm authored Oct 28, 2017
    Configuration menu
    Copy the full SHA
    71b876b View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#45505 - spk:use-expect-instead-unwrap, r=ke…

    …nnytm
    
    Use expect for current_dir on librustc/session mod
    
    Reference bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871638
    
    Like described on the reference bug report:
    
    ~~~
    $ mkdir dir
    $ cd dir
    $ rm -rf ../dir
    $ RUST_BACKTRACE=1 rustc -C target-cpu=help
    error: internal compiler error: unexpected panic
    
    note: the compiler unexpectedly panicked. this is a bug.
    
    note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
    
    note: run with `RUST_BACKTRACE=1` for a backtrace
    
    thread 'rustc' panicked at 'called `Result::unwrap()` on an `Err` value: Error { repr: Os { code: 2, message: "No such file or directory" } }', src/libcore/result.rs:837
    stack backtrace:
       1:     0x7f7d23970dda - <unknown>
       2:     0x7f7d2398305f - <unknown>
       3:     0x7f7d2397f8a5 - <unknown>
       4:     0x7f7d2397ffc7 - std::panicking::rust_panic_with_hook::h109e116a3a861224
       5:     0x7f7d2397fe54 - <unknown>
       6:     0x7f7d2397fd79 - std::panicking::begin_panic_fmt::h26713cea9bce3ab0
       7:     0x7f7d2397fd07 - rust_begin_unwind
       8:     0x7f7d239cb41d - core::panicking::panic_fmt::hcfbb59eeb7f27f75
       9:     0x7f7d20be63d3 - <unknown>
      10:     0x7f7d20d6ebcc - rustc::session::build_session_::h7a3559f2373a5d05
      11:     0x7f7d20d6dd7e - rustc::session::build_session_with_codemap::h68bc7bcd2f34eee4
      12:     0x7f7d20d6d72c - rustc::session::build_session::h437fda3c327a8bde
      13:     0x7f7d23d26030 - <rustc_driver::RustcDefaultCalls as rustc_driver::CompilerCalls<'a>>::no_input::h8047df7741757d1c
      14:     0x7f7d23d21d27 - rustc_driver::run_compiler::hafe7bbfedf95a825
      15:     0x7f7d23c57378 - <unknown>
      16:     0x7f7d2398ae0a - __rust_maybe_catch_panic
      17:     0x7f7d23c76fa8 - <unknown>
      18:     0x7f7d2397eb74 - <unknown>
      19:     0x7f7d1ed4f493 - start_thread
      20:     0x7f7d23645afe - __clone
      21:                0x0 - <unknown>
    ~~~
    
    With this patch this will give instead:
    
    ~~~
    error: Current directory is invalid: No such file or directory (os error 2)
    ~~~
    kennytm authored Oct 28, 2017
    Configuration menu
    Copy the full SHA
    0a916a4 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#45535 - topecongiro:bootstrap-exit-code, r=…

    …kennytm
    
    Return 0 as an exit status when no subcommand is given to bootstrap
    
    Running `./x.py` emits usage and error messages when no subcommand is given:
    ```
    Usage: x.py <subcommand> [options] [<paths>...]
    
    Subcommands:
        build       Compile either the compiler or libraries
        test        Build and run some test suites
        bench       Build and run some benchmarks
        doc         Build documentation
        clean       Clean out build directories
        dist        Build distribution artifacts
        install     Install distribution artifacts
    
    To learn more about a subcommand, run `./x.py <subcommand> -h`
    
    failed to run: /home/topecongiro/rust/build/bootstrap/debug/bootstrap
    ```
    IMHO the last line is unnecessary. This PR removes it by changing the return code of `bootstrap` to 0 when no sub command is given.
    kennytm authored Oct 28, 2017
    Configuration menu
    Copy the full SHA
    a03d018 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#45549 - steveklabnik:remove-just, r=QuietMi…

    …sdreavus
    
    Remove 'just' in diagnostics
    
    This is better writing
    kennytm authored Oct 28, 2017
    Configuration menu
    Copy the full SHA
    55c4849 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#45574 - nzig:on_unimplemented_example, r=st…

    …eveklabnik
    
    Fixed rustc_on_unimplemented example in Unstable Book
    
    I saw [this](https://doc.rust-lang.org/beta/unstable-book/language-features/on-unimplemented.html) example and it seemed wrong. This fixes the example to emit an error message that makes more sense.
    kennytm authored Oct 28, 2017
    Configuration menu
    Copy the full SHA
    65f1df5 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#45585 - frewsxcv:frewsxcv-diagnostic, r=ken…

    …nytm
    
    Remove 'future Rust version' code block in diagnostic text.
    
    Fixes rust-lang#43780.
    kennytm authored Oct 28, 2017
    Configuration menu
    Copy the full SHA
    0b02377 View commit details
    Browse the repository at this point in the history