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 14 pull requests #25525

Merged
merged 49 commits into from
May 17, 2015
Merged

Rollup of 14 pull requests #25525

merged 49 commits into from
May 17, 2015

Commits on May 13, 2015

  1. Configuration menu
    Copy the full SHA
    6a045b9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f786437 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6a59d18 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0d50b04 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    07d4f77 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2015

  1. Allow for better optimizations of iterators for zero-sized types

    Using regular pointer arithmetic to iterate collections of zero-sized types
    doesn't work, because we'd get the same pointer all the time. Our
    current solution is to convert the pointer to an integer, add an offset
    and then convert back, but this inhibits certain optimizations.
    
    What we should do instead is to convert the pointer to one that points
    to an i8*, and then use a LLVM GEP instructions without the inbounds
    flag to perform the pointer arithmetic. This allows to generate pointers
    that point outside allocated objects without causing UB (as long as you
    don't dereference them), and it wraps around using two's complement,
    i.e. it behaves exactly like the wrapping_* operations we're currently
    using, with the added benefit of LLVM being able to better optimize the
    resulting IR.
    dotdash committed May 15, 2015
    Configuration menu
    Copy the full SHA
    eeeb2cc View commit details
    Browse the repository at this point in the history
  2. libs: Move favicon URLs to HTTPS

    Helps prevent mixed content warnings if accessing docs over HTTPS.
    
    Closes rust-lang#25459
    alexcrichton committed May 15, 2015
    Configuration menu
    Copy the full SHA
    0e21beb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3709e8f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0909ce3 View commit details
    Browse the repository at this point in the history

Commits on May 16, 2015

  1. Small typo in the docs

    Just detected it while reading.
    emilio committed May 16, 2015
    Configuration menu
    Copy the full SHA
    e30909d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d5394d0 View commit details
    Browse the repository at this point in the history
  3. Change my email

    achanda committed May 16, 2015
    Configuration menu
    Copy the full SHA
    89eee9a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    84d6dcb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f641bd8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8e82c21 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    1e39d9b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5cf6b02 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    574a8cd View commit details
    Browse the repository at this point in the history
  10. fix error message in test

    XuefengWu committed May 16, 2015
    Configuration menu
    Copy the full SHA
    7fe60c1 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6e8e6a4 View commit details
    Browse the repository at this point in the history
  12. Update the shown installed rust version to 1.0

    🎉 🎉 🎉
    coffeejunk committed May 16, 2015
    Configuration menu
    Copy the full SHA
    76fa4f4 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    e095e39 View commit details
    Browse the repository at this point in the history
  14. Auto merge of rust-lang#25462 - alexcrichton:favicon-https, r=nrc

    Helps prevent mixed content warnings if accessing docs over HTTPS.
    
    Closes rust-lang#25459
    bors committed May 16, 2015
    Configuration menu
    Copy the full SHA
    6403a2f View commit details
    Browse the repository at this point in the history
  15. Auto merge of rust-lang#25434 - dotdash:gep, r=alexcrichton

    Using regular pointer arithmetic to iterate collections of zero-sized types
    doesn't work, because we'd get the same pointer all the time. Our
    current solution is to convert the pointer to an integer, add an offset
    and then convert back, but this inhibits certain optimizations.
    
    What we should do instead is to convert the pointer to one that points
    to an i8\*, and then use a LLVM GEP instructions without the inbounds
    flag to perform the pointer arithmetic. This allows to generate pointers
    that point outside allocated objects without causing UB (as long as you
    don't dereference them), and it wraps around using two's complement,
    i.e. it behaves exactly like the wrapping_* operations we're currently
    using, with the added benefit of LLVM being able to better optimize the
    resulting IR.
    bors committed May 16, 2015
    Configuration menu
    Copy the full SHA
    d332aea View commit details
    Browse the repository at this point in the history
  16. Auto merge of rust-lang#25485 - XuefengWu:24968_err_msg_parse_self_ty…

    …pe_2, r=nrc
    
    fix rust-lang#24968
    report more friendly error message for Self when fn args
    copy from rust-lang#25096
    r? @nrc  @arielb1
    bors committed May 16, 2015
    Configuration menu
    Copy the full SHA
    0d707d1 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    bf15d04 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    2da9efe View commit details
    Browse the repository at this point in the history
  19. Avoid calling a variable 'string' when discussing strings.

    Newcomers to Rust need to learn the distinctinion between `&str` and
    `String`, so additonally having `string` in an example risks confusion.
    Wilfred committed May 16, 2015
    Configuration menu
    Copy the full SHA
    ba02739 View commit details
    Browse the repository at this point in the history
  20. fs::walk_dir example without unstable features

    The current version of the example won't compile due to unstable features.
    This is an attempt to fix that, at the cost of slightly more verbose code.
    johshoff committed May 16, 2015
    Configuration menu
    Copy the full SHA
    b6e755d View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    8cc9878 View commit details
    Browse the repository at this point in the history
  22. Make Arc support DSTs

    ftxqxd committed May 16, 2015
    Configuration menu
    Copy the full SHA
    e840393 View commit details
    Browse the repository at this point in the history
  23. Fixed reserve_exact example

    The same example for ``reverse`` were in the ``reserve_exact``'s example.
    Mário Feroldi committed May 16, 2015
    Configuration menu
    Copy the full SHA
    ce8fb6c View commit details
    Browse the repository at this point in the history

Commits on May 17, 2015

  1. Auto merge of rust-lang#25387 - eddyb:syn-file-loader, r=nikomatsakis

    This allows compiling entire crates from memory or preprocessing source files before they are tokenized.
    
    Minor API refactoring included, which is a [breaking-change] for libsyntax users:
    * `ParseSess::{next_node_id, reserve_node_ids}` moved to rustc's `Session`
    * `new_parse_sess` -> `ParseSess::new`
    * `new_parse_sess_special_handler` -> `ParseSess::with_span_handler`
    * `mk_span_handler` -> `SpanHandler::new`
    * `default_handler` -> `Handler::new`
    * `mk_handler` -> `Handler::with_emitter`
    * `string_to_filemap(sess source, path)` -> `sess.codemap().new_filemap(path, source)`
    bors committed May 17, 2015
    Configuration menu
    Copy the full SHA
    c23a9d4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4f83c4b View commit details
    Browse the repository at this point in the history
  3. Simplify CString doc comment

    No need for `&b"foo"[..]` to make a CString, `"foo"` will do.
    bstrie committed May 17, 2015
    Configuration menu
    Copy the full SHA
    e1f73b8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e8d29a9 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#25469 - ecoal95:patch-1, r=alexcrichton

    Just detected it while reading.
    Manishearth committed May 17, 2015
    Configuration menu
    Copy the full SHA
    e06eb1c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#25472 - WillEngler:book-tiny-typo-fixes, r=…

    …alexcrichton
    
    This PR fixes two little typos in the Dining Philosophers example.
    
    Also, there are two style points that may have been oversights but may have been deliberate, so I'll just bring them up here:
    
    1) In the last paragraph, you say
    
    > You’ll notice we can introduce a new binding to `table` here, and it will shadow the old one. This is often used so that you don’t need to come up with two unique names.
    
    You already said something similar to this in the Guessing Game, but maybe you intended for this example to be independent of that one.
    
    2) In "Rust Inside Other Languages," you introduce the idea of the "global interpreter lock" and then refer to it as the GIL a few paragraphs later without explicitly stating that GIL == global interpreter lock. It's reasonable to expect readers to make the connection, but maybe that's not what you intended.
    
    Excellent work on the examples! Congrats on 1.0!
    
    r? @steveklabnik
    Manishearth committed May 17, 2015
    Configuration menu
    Copy the full SHA
    a25925a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    27676ea View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    bea1bba View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#25484 - sumito3478:fix-deadlink-in-compleme…

    …nt-lang-faq, r=alexcrichton
    
    In "The Rust Language FAQ", some of the links to example projects/modules written in Rust are dead links. This PR updates them.
    Manishearth committed May 17, 2015
    Configuration menu
    Copy the full SHA
    4d3db38 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b40fcf5 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#25493 - coffeejunk:update_installed_rust_ve…

    …rsion, r=alexcrichton
    
    Rust is out of beta 🎉 
    
    r? @steveklabnik
    Manishearth committed May 17, 2015
    Configuration menu
    Copy the full SHA
    094d29c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b3706de View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#25506 - Wilfred:master, r=alexcrichton

    Newcomers to Rust need to learn the distinctinion between `&str` and
    `String`, so additonally having `string` in an example risks confusion.
    Manishearth committed May 17, 2015
    Configuration menu
    Copy the full SHA
    1fd0a84 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#25508 - johshoff:visit_dirs_example, r=alex…

    …crichton
    
    The current version of the example won't compile due to unstable features.
    This is an attempt to fix that, at the cost of slightly more verbose code.
    
    Using rust 1.0.0 (a59de37).
    
    It might be obvious, but I'm not well versed with rust, so feedback is very welcome.
    Manishearth committed May 17, 2015
    Configuration menu
    Copy the full SHA
    4e12a92 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#25510 - thelostt:patch-1, r=alexcrichton

    The same example for ``reverse`` were in the ``reserve_exact``'s example.
    Manishearth committed May 17, 2015
    Configuration menu
    Copy the full SHA
    8fa9474 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#25516 - bstrie:cstrdoc, r=alexcrichton

    No need for `&b"foo"[..]` to make a CString, `"foo"` will do.
    Manishearth committed May 17, 2015
    Configuration menu
    Copy the full SHA
    99ed2c9 View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#25522 - alexcrichton:reexport-incoming, r=s…

    …fackler
    
    This iterator was mistakenly not reexported at the top level, preventing
    actually naming the type!
    
    Closes rust-lang#25519
    Manishearth committed May 17, 2015
    Configuration menu
    Copy the full SHA
    a0815c8 View commit details
    Browse the repository at this point in the history