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

Mini doc rollup #23387

Merged
merged 25 commits into from
Mar 15, 2015
Merged

Mini doc rollup #23387

merged 25 commits into from
Mar 15, 2015

Commits on Mar 13, 2015

  1. Avoid passing -L "" during cross-compilation.

    LLVM_LIBDIR_<triple> is only defined for host triples, not target triples.
    
    FWIW, the same is true for LLVM_STDCPP_RUSTFLAGS_<triple>, where we
    explicitly define it as empty when --enable-llvm-static-stdcpp is not
    specified, but it's still undefined for cross-compiled triples.
    rprichard committed Mar 13, 2015
    Configuration menu
    Copy the full SHA
    00211ec View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2015

  1. Improve camelcase suggestion

    bombless committed Mar 14, 2015
    Configuration menu
    Copy the full SHA
    60aa751 View commit details
    Browse the repository at this point in the history
  2. Reject -L "", -L native=, and other empty search paths.

    It wasn't clear to me that early_error was correct here, but it seems to
    work. This code is reachable from `rustdoc`, which is problematic, because
    early_error panics. rustc handles the panics gracefully (without ICEing or
    crashing), but rustdoc does not. It's not the first such rustdoc problem,
    though:
    
        $ rustdoc hello.rs --extern std=bad-std
        error: extern location for std does not exist: bad-std
        hello.rs:1:1: 1:1 error: can't find crate for `std`
        hello.rs:1
               ^
        error: aborting due to 2 previous errors
        thread '<unnamed>' panicked at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:151
        thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: "rustc failed"', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libcore/result.rs:744
        thread '<main>' panicked at 'child thread None panicked', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/thread.rs:661
    rprichard committed Mar 14, 2015
    Configuration menu
    Copy the full SHA
    85b084f View commit details
    Browse the repository at this point in the history
  3. Drop support for LLVM < 3.5 and fix compile errors with 3.5

    LLVM older that 3.6 has a bug that cause assertions when compiling certain
    constructs. For 3.5 there's still a chance that the bug might get fixed
    in 3.5.2, so let's keep allowing to compile with it for it for now.
    dotdash committed Mar 14, 2015
    Configuration menu
    Copy the full SHA
    bb18a3c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cb02f36 View commit details
    Browse the repository at this point in the history
  5. Always evaluate the expression in [expr; n]

    In case that there is a destination for the array, like in
    "let x = [expr; n]", we currently don't evaluate the given expression if
    n is zero. That's inconsistent with all other cases, including "[expr;
    0]" without a destination.
    
    Fixes rust-lang#23354
    dotdash committed Mar 14, 2015
    Configuration menu
    Copy the full SHA
    3a8f989 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    9eed8ea View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c8e4f61 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7130c75 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2015

  1. Stop recommending old_io in the module doc for std::io

    Now that `old_io` is deprecated and `std::io` is stable, we should stop
    recommending the use of `old_io` in the module documentation.
    lilyball committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    3dd455d View commit details
    Browse the repository at this point in the history
  2. Remove incorrect references to _raw stdio functions

    std::io does not currently expose the stdin_raw, stdout_raw, or
    stderr_raw functions. According to the current plans for stdio (see RFC
    rust-lang#517), raw access will likely be provided using the platform-specific
    std::os::{unix,windows} modules. At the moment we don't expose any way
    to do this. As such, delete all mention of the _raw functions from the
    stdin/stdout/stderr function documentation.
    
    While we're at it, remove a few `pub`s from items that aren't exposed.
    This is done just to lessen the confusion experienced by anyone who
    looks at the source in an attempt to find the _raw functions.
    lilyball committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    3453b5b View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#23351 - nagisa:rustdoc-lines-2, r=alexcrichton

     Previously it would fail on a trivial case like
    
        /// Summary line
        /// <trailing space>
        /// Regular content
    
    Compliant markdown preprocessor would render that as two separate paragraphs, but our summary line
    extractor interprets both lines as the same paragraph and includes both into the short summary resulting in
    ![screenshot from 2015-03-13 22 47 08](https://cloud.githubusercontent.com/assets/679122/6648596/7ef792b2-c9e4-11e4-9c19-704c288ec4de.png)
    Manishearth committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    01f10de View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#23356 - bombless:camelcase, r=alexcrichton

     non_camel_case_types lint suggests `ONETWOTHREE` for non-camel type `ONE_TWO_THREE`, which doesn't look good.
    This patch fixes it.
    Manishearth committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    7eb9c37 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#23358 - rprichard:reject-empty-L, r=alexcri…

    …chton
    
     This change closes rust-lang#23303 by rejecting an empty search path.
    Manishearth committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    6af2721 View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#23362 - dotdash:llvm_req, r=alexcrichton

     LLVM older that 3.6 has a bug that cause assertions when compiling certain
    constructs. For 3.5 there's still a chance that the bug might get fixed
    in 3.5.2, so let's keep allowing to compile with it for it for now.
    Manishearth committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    4be0eae View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#23363 - meqif:master, r=alexcrichton

     There was a minor typo in the book's concurrency section (\"recieve\" instead of \"receive\").
    Manishearth committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    911f7fe View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#23365 - dotdash:array_loop_panic, r=eddyb

     [expr; 0] currently exhibits inconsistent behaviour and [expr; n] with n > 1 triggers an LLVM assertion in case that \"expr\" diverges.
    Manishearth committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    34ce376 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#23367 - EduardoBautista:fix-indentation-in-…

    …book, r=steveklabnik
    
     It was using tabs.
    Manishearth committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    09e5a7a View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#23368 - EduardoBautista:fix-closures-chapte…

    …r, r=steveklabnik
    
       "body": null,
    Manishearth committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    d66d0b3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f59af75 View commit details
    Browse the repository at this point in the history
  12. fix typos

    FuGangqiang committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    3be8380 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#23375 - kballard:remove-old_io-recommendati…

    …on-from-io, r=huonw
    
    Now that `old_io` is deprecated and `std::io` is stable, we should stop
    recommending the use of `old_io` in the module documentation.
    Manishearth committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    3ebe249 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#23379 - kballard:tweak-stdio-docs-no-raw-co…

    …nstructors, r=alexcrichton
    
    `std::io` does not currently expose the `stdin_raw`, `stdout_raw`, or
    `stderr_raw` functions. According to the current plans for stdio (see
    rust-lang/rfcs#517), raw access will likely be provided using the
    platform-specific `std::os::{unix,windows}` modules. At the moment we
    don't expose any way to do this. As such, delete all mention of the
    `*_raw` functions from the `stdin`/`stdout`/`stderr` function
    documentation.
    
    While we're at it, remove a few `pub`s from items that aren't exposed.
    This is done just to lessen the confusion experienced by anyone who
    looks at the source in an attempt to find the `*_raw` functions.
    Manishearth committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    f31d818 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    9d8bafe View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#23384 - daboross:patch-2, r=alexcrichton

    This changed `an String` to `a String`. Very minor change!
    
    The usage of `an String` was introduced in rust-lang@a828e79#diff-b596503c7c33ce457b6d047e351ac12bR423, which changed `an OsString` to `an String`.
    Manishearth committed Mar 15, 2015
    Configuration menu
    Copy the full SHA
    9f1240b View commit details
    Browse the repository at this point in the history