-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rollup of 14 pull requests #25525
Commits on May 13, 2015
-
Configuration menu - View commit details
-
Copy full SHA for 6a045b9 - Browse repository at this point
Copy the full SHA 6a045b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for f786437 - Browse repository at this point
Copy the full SHA f786437View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a59d18 - Browse repository at this point
Copy the full SHA 6a59d18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d50b04 - Browse repository at this point
Copy the full SHA 0d50b04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07d4f77 - Browse repository at this point
Copy the full SHA 07d4f77View commit details
Commits on May 15, 2015
-
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.
Configuration menu - View commit details
-
Copy full SHA for eeeb2cc - Browse repository at this point
Copy the full SHA eeeb2ccView commit details -
libs: Move favicon URLs to HTTPS
Helps prevent mixed content warnings if accessing docs over HTTPS. Closes rust-lang#25459
Configuration menu - View commit details
-
Copy full SHA for 0e21beb - Browse repository at this point
Copy the full SHA 0e21bebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3709e8f - Browse repository at this point
Copy the full SHA 3709e8fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0909ce3 - Browse repository at this point
Copy the full SHA 0909ce3View commit details
Commits on May 16, 2015
-
Configuration menu - View commit details
-
Copy full SHA for e30909d - Browse repository at this point
Copy the full SHA e30909dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d5394d0 - Browse repository at this point
Copy the full SHA d5394d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89eee9a - Browse repository at this point
Copy the full SHA 89eee9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 84d6dcb - Browse repository at this point
Copy the full SHA 84d6dcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for f641bd8 - Browse repository at this point
Copy the full SHA f641bd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e82c21 - Browse repository at this point
Copy the full SHA 8e82c21View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e39d9b - Browse repository at this point
Copy the full SHA 1e39d9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cf6b02 - Browse repository at this point
Copy the full SHA 5cf6b02View commit details -
Configuration menu - View commit details
-
Copy full SHA for 574a8cd - Browse repository at this point
Copy the full SHA 574a8cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fe60c1 - Browse repository at this point
Copy the full SHA 7fe60c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e8e6a4 - Browse repository at this point
Copy the full SHA 6e8e6a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76fa4f4 - Browse repository at this point
Copy the full SHA 76fa4f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e095e39 - Browse repository at this point
Copy the full SHA e095e39View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 6403a2f - Browse repository at this point
Copy the full SHA 6403a2fView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for d332aea - Browse repository at this point
Copy the full SHA d332aeaView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0d707d1 - Browse repository at this point
Copy the full SHA 0d707d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for bf15d04 - Browse repository at this point
Copy the full SHA bf15d04View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2da9efe - Browse repository at this point
Copy the full SHA 2da9efeView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for ba02739 - Browse repository at this point
Copy the full SHA ba02739View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for b6e755d - Browse repository at this point
Copy the full SHA b6e755dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cc9878 - Browse repository at this point
Copy the full SHA 8cc9878View commit details -
Configuration menu - View commit details
-
Copy full SHA for e840393 - Browse repository at this point
Copy the full SHA e840393View commit details -
The same example for ``reverse`` were in the ``reserve_exact``'s example.
Mário Feroldi committedMay 16, 2015 Configuration menu - View commit details
-
Copy full SHA for ce8fb6c - Browse repository at this point
Copy the full SHA ce8fb6cView commit details
Commits on May 17, 2015
-
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)`
Configuration menu - View commit details
-
Copy full SHA for c23a9d4 - Browse repository at this point
Copy the full SHA c23a9d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f83c4b - Browse repository at this point
Copy the full SHA 4f83c4bView commit details -
No need for `&b"foo"[..]` to make a CString, `"foo"` will do.
Configuration menu - View commit details
-
Copy full SHA for e1f73b8 - Browse repository at this point
Copy the full SHA e1f73b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8d29a9 - Browse repository at this point
Copy the full SHA e8d29a9View commit details -
Rollup merge of rust-lang#25469 - ecoal95:patch-1, r=alexcrichton
Just detected it while reading.
Configuration menu - View commit details
-
Copy full SHA for e06eb1c - Browse repository at this point
Copy the full SHA e06eb1cView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a25925a - Browse repository at this point
Copy the full SHA a25925aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27676ea - Browse repository at this point
Copy the full SHA 27676eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for bea1bba - Browse repository at this point
Copy the full SHA bea1bbaView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 4d3db38 - Browse repository at this point
Copy the full SHA 4d3db38View commit details -
Configuration menu - View commit details
-
Copy full SHA for b40fcf5 - Browse repository at this point
Copy the full SHA b40fcf5View commit details -
Rollup merge of rust-lang#25493 - coffeejunk:update_installed_rust_ve…
…rsion, r=alexcrichton Rust is out of beta 🎉 r? @steveklabnik
Configuration menu - View commit details
-
Copy full SHA for 094d29c - Browse repository at this point
Copy the full SHA 094d29cView commit details -
Configuration menu - View commit details
-
Copy full SHA for b3706de - Browse repository at this point
Copy the full SHA b3706deView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 1fd0a84 - Browse repository at this point
Copy the full SHA 1fd0a84View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 4e12a92 - Browse repository at this point
Copy the full SHA 4e12a92View commit details -
Rollup merge of rust-lang#25510 - thelostt:patch-1, r=alexcrichton
The same example for ``reverse`` were in the ``reserve_exact``'s example.
Configuration menu - View commit details
-
Copy full SHA for 8fa9474 - Browse repository at this point
Copy the full SHA 8fa9474View commit details -
Rollup merge of rust-lang#25516 - bstrie:cstrdoc, r=alexcrichton
No need for `&b"foo"[..]` to make a CString, `"foo"` will do.
Configuration menu - View commit details
-
Copy full SHA for 99ed2c9 - Browse repository at this point
Copy the full SHA 99ed2c9View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for a0815c8 - Browse repository at this point
Copy the full SHA a0815c8View commit details