about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2016-06-12Auto merge of #34238 - jpreiss:master, r=steveklabnikbors-2/+2
fix typo in primitive-types section on slices
2016-06-11typo fix in loops.mdJames Alan Preiss-1/+1
2016-06-11fix typo in primitive-types section on slicesJames Alan Preiss-1/+1
2016-06-11Auto merge of #34132 - AtheMathmo:no-stdlib, r=steveklabnikbors-4/+20
Note warning of default features on libc The default features of libc include libstd. This should be noted on this page.
2016-06-11Auto merge of #34153 - apasel422:btree, r=alexcrichtonbors-4/+4
Update tracking issue for `{BTreeMap, BTreeSet}::{append, split_off}` r? @alexcrichton
2016-06-11Auto merge of #34211 - srinivasreddy:rf_libstd_coll, r=brsonbors-167/+178
run rustfmt on libstd/collections/hash folder
2016-06-11Auto merge of #34208 - shepmaster:llvm-3.7-linking-intrinsics, r=alexcrichtonbors-291/+32
Remove linking and intrinsics code made dead by only supporting LLVM 3.7 and up This is mostly based on Alex's throwaway comment: > probably reject those that LLVM just doesn't support... So I'm more than happy to adjust the PR based on how you thought this should look. Also happy to split it into two PRs, one for linking and one for intrinsics. r? @alexcrichton /cc @nagisa @brson
2016-06-10Auto merge of #34002 - jseyfried:strip_tests_in_cfg, r=nrcbors-51/+41
Treat `#[test]` like `#[cfg(test)]` in non-test builds This PR treats `#[test]` like `#[cfg(test)]` in non-test builds. In particular, like `#[cfg(test)]`, - `#[test]` nodes are stripped during `cfg` processing, and - `#[test]` is disallowed on non-optional expressions. Closes #33946. r? @nrc
2016-06-11Refactor away the `CfgFolder` trait.Jeffrey Seyfried-34/+18
2016-06-11Forbid `#[test]` attributes on non-optional expressions.Jeffrey Seyfried-1/+3
2016-06-11Strip `#[test]` nodes during `cfg` processing on non-test builds.Jeffrey Seyfried-16/+20
2016-06-10Auto merge of #34174 - shepmaster:16-bit-mir, r=Aatchbors-22/+26
Support 16-bit pointers in MIR
2016-06-10Auto merge of #34172 - jseyfried:avoid_configuring_interpolated_ast, ↵bors-0/+28
r=alexcrichton Fix ICE regression caused by configuring interpolated AST Fixes #34171. r? @nrc
2016-06-11run rustfmt on libstd/collections/hash folderSrinivas Reddy Thatiparthy-167/+178
2016-06-10All intrinsics are available in all supported LLVM versionsJake Goulding-39/+1
2016-06-10Remove linking with ARJake Goulding-252/+31
Since we only support LLVM 3.7 and above, we will never need to use the AR linker. Remove the possibility of calling it and all the now-dead code.
2016-06-10Update tracking issue for `{BTreeMap, BTreeSet}::{append, split_off}`Andrew Paseltiner-4/+4
2016-06-10Auto merge of #34199 - jseyfried:visit_all_attrs, r=nrcbors-1/+12
Visit statement and expression attributes in the AST visitor Currently, these attributes are not visited, so they are not gated feature checked in the post expansion visitor. This only affects crates using `#![feature(stmt_expr_attributes)]`. r? @nrc
2016-06-10Allow truncating constants to 16-bit u/isizeJake Goulding-22/+25
2016-06-10Auto merge of #34200 - sanxiyn:rollup, r=sanxiynbors-256/+341
Rollup of 12 pull requests - Successful merges: #34088, #34129, #34136, #34145, #34146, #34148, #34159, #34160, #34165, #34175, #34184, #34185 - Failed merges:
2016-06-10Rollup merge of #34185 - tshepang:shorten-paragraph, r=steveklabnikSeo Sanghyeon-2/+4
doc: intro should be 1 sentence Also, do not repeat name of type
2016-06-10Rollup merge of #34175 - rwz:patch-2, r=alexcrichtonSeo Sanghyeon-1/+1
Fix BTreeMap example typo The whole example is made around movies reviews, but that one line says "review some books".
2016-06-10Rollup merge of #34165 - ollie27:docs_char_case, r=steveklabnikSeo Sanghyeon-9/+15
docs: Improve char::to_{lower,upper}case examples Collect the results to a String to make it clear that it will not always return only one char and add examples showing that. r? @steveklabnik
2016-06-10Rollup merge of #34160 - hoodie:bug/GoT_References, r=GuillaumeGomezSeo Sanghyeon-4/+4
Fixed two little Game Of Thrones References Fixed: conflicting spelling of "Jon Snow" Fixed: It's call "Night's Watch"
2016-06-10Rollup merge of #34148 - srinivasreddy:bitflags_rustfmt, r=nagisaSeo Sanghyeon-2/+2
run rustfmt on librustc_bitflags folder
2016-06-10Rollup merge of #34146 - srinivasreddy:libflate_rustfmt, r=nagisaSeo Sanghyeon-5/+5
run rustfmt on libflate folder
2016-06-10Rollup merge of #34145 - matklad:any-docs, r=steveklabnikSeo Sanghyeon-1/+1
docs: simplify wording It took me more then a moment to decipher "with no non-`'static`" thing :) "`'static` type" should say the same thing more clearly. r? @steveklabnik
2016-06-10Rollup merge of #34136 - imjacobclark:ice-test-case-25579, r=nikomatsakisSeo Sanghyeon-0/+27
Test case for borrowk ICE #25579 r? @nikomatsakis Fixes #25579
2016-06-10Rollup merge of #34129 - jviide:from-string-box-error, r=steveklabnikSeo Sanghyeon-12/+8
Remove a gotcha from book/error-handling.md The book's "Error handling with `Box<Error>`" section talks about `Box<Error>`. In the actual example `Box<Error + Send + Sync>` is used instead so that the corresponding From impls could be used to convert a plain string to an error type. Rust 1.7 added support for conversion from `&str`/`String` to `Box<Error>`, so this gotcha and later references to it can now be removed. r? @steveklabnik
2016-06-10Rollup merge of #34088 - srinivasreddy:rustfmt_map.rs, r=nrcSeo Sanghyeon-220/+274
run rustfmt on map.rs in libcollections/btree folder
2016-06-10Auto merge of #34178 - shepmaster:llvm-3.7-and-up, r=alexcrichtonbors-224/+5
Reflect supporting only LLVM 3.7+ in the LLVM wrappers Based on 12abddb06b681f5c1cb389074b5a35d3e260698f, it appears we can drop support for these older LLVM versions. Hopefully, this will make it slightly easier to support the changes needed for LLVM 3.9. r? @nagisa /cc @brson
2016-06-10Check that custom attributes are disallowed on statements and expressionsJeffrey Seyfried-1/+6
2016-06-10Visit statement and expression attributesJeffrey Seyfried-0/+6
2016-06-10Auto merge of #34086 - srinivasreddy:rustfmt_liballoc_jemalloc, r=nagisabors-14/+26
run rustfmt on liballoc_jemalloc folder
2016-06-09Auto merge of #34046 - Vtec234:fix-atomic-doc, r=steveklabnikbors-3/+3
Fix wrong statement in compare_exchange doc The documentation for `core::sync::atomic::AtomicSomething::compare_exchange` contains a wrong, or imprecise, statement about the return value. It goes: The return value is a result indicating whether the new value was written and containing the previous value. On success this value is guaranteed to be equal to `new`. In the second sentence, `this value` is gramatically understood as referring to `return value` from the first sentence. Due to how CAS works, the returned value is always what was in the atomic variable _before_ the operation occurred, not what was written into it during the operation. Hence, the fixed doc should say: The return value is a result indicating whether the new value was written and containing the previous value. On success this value is guaranteed to be equal to `current`. This version is confirmed by the runnable examples in variants of `AtomicSomething`, e.g. assert_eq!(some_bool.compare_exchange(true, false, Ordering::Acquire, Ordering::Relaxed), Ok(true)); where the returned value is `Ok(current)`. This PR fixes all occurrences of this bug I could find. An alternative solution would be to modify the second sentence so that it refers to the value _written_ into the Atomic rather than what was there before, in which case it would be correct. Example alternative formulation: On success the value written into the `bool`/`usize`/`whatever` is guaranteed to be equal to `new`. r? @steveklabnik
2016-06-09Auto merge of #34173 - srinivasreddy:rm_redundant, r=alexcrichtonbors-16/+14
remove redundant assert statements
2016-06-10Address review comments + fix rebaseVadim Petrochenkov-167/+51
2016-06-10make all pattern bindings with the same name resolve to the first oneAriel Ben-Yehuda-77/+22
This simplifies the code considerably, removing one of the last uses of hygienic matching out of resolution.
2016-06-10Add testsVadim Petrochenkov-1/+56
2016-06-10Introduce TyCtxt::expect_def/expect_resolution helpers and use them where ↵Vadim Petrochenkov-473/+277
possible
2016-06-10Move the hack with fake partial resolution for <A>::B from typeck to resolveVadim Petrochenkov-105/+40
2016-06-10resolve: Rewrite resolve_patternVadim Petrochenkov-483/+339
2016-06-09doc: intro should be 1 sentenceTshepang Lekhonkhobe-2/+4
Also, do not repeat name of type
2016-06-09Support getting the minimum 16-bit isize valueJake Goulding-0/+1
2016-06-09Remove unneeded indirection of GET_ARCHIVEJake Goulding-2/+1
2016-06-09Reflect supporting only LLVM 3.7+ in the LLVM wrappersJake Goulding-222/+4
2016-06-09Auto merge of #34149 - arielb1:remove-remove-dead-blocks, r=nikomatsakisbors-942/+1262
MIR cleanups and predecessor cache This PR cleans up a few things in MIR and adds a predecessor cache to allow graph algorithms to be run easily. r? @nikomatsakis
2016-06-09fix issuesAriel Ben-Yehuda-2/+10
2016-06-09Auto merge of #33895 - AndrewBrinker:master, r=steveklabnikbors-137/+114
Rewrote "How Safe and Unsafe Interact" Nomicon chapter. The previous version of the chapter covered a lot of ground, but was a little meandering and hard to follow at times. This draft is intended to be clearer and more direct, while still providing the same information as the previous version. r? @steveklabnik
2016-06-09use the type name as the pass nameAriel Ben-Yehuda-27/+12