about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2016-04-17Refactor the per-module node map `module_children` into a per-resolver map.Jeffrey Seyfried-22/+22
2016-04-17Make import resolution and error resolution reporting deterministic.Jeffrey Seyfried-26/+22
These tasks used to depend on the iteration order of `module_children`.
2016-04-17Refactor `is_prelude` to only apply to glob importsJeffrey Seyfried-30/+16
2016-04-17Auto merge of #33016 - tbu-:pr_doc_peekable, r=alexcrichtonbors-2/+7
Add a note about side effects for "peekable" iterators
2016-04-17Auto merge of #33049 - Manishearth:rollup, r=Manishearthbors-224/+541
Rollup of 10 pull requests - Successful merges: #31441, #32956, #33003, #33022, #33023, #33032, #33039, #33044, #33045, #33046 - Failed merges:
2016-04-17Rollup merge of #33046 - jseyfried:fix_unresolved_pattern_diagnostics, r=eddybManish Goregaokar-1/+5
Fix diagnostics for unresolved patterns This fixes #33043, a bug in the diagnostics for unresolved patterns. r? @eddyb
2016-04-17Rollup merge of #33045 - jseyfried:no_def_modifiers, r=eddybManish Goregaokar-75/+56
resolve: Refactor away `DefModifiers` This refactors away `DefModifiers`, which is unneeded now that #32875 has landed. r? @eddyb
2016-04-17Rollup merge of #33044 - petrochenkov:prefix, r=eddybManish Goregaokar-134/+224
syntax: Parse import prefixes as paths Fixes https://github.com/rust-lang/rust/issues/10415 r? @eddyb (This partially intersects with https://github.com/rust-lang/rust/pull/33041)
2016-04-17Rollup merge of #33039 - bluss:trait-obj-error, r=arielb1Manish Goregaokar-2/+2
Adjust example for error E0225 Adjust example for error E0225 It's using Copy as a trait object compatible trait, which is not appropriate, change to use a more typical Read + Send + Sync example. Also use whitespace around `+`. This seems appropriate apropos issue #32963
2016-04-17Rollup merge of #33032 - kindlychung:patch-3, r=ManishearthManish Goregaokar-4/+9
Update casting-between-types.md
2016-04-17Rollup merge of #33023 - tbu-:pr_wrapping_traits, r=alexcrichtonManish Goregaokar-1/+15
Implement `Display` and `Hash` for `std::num::Wrapping` Also, change the `Debug` implementation to only show the inner value. Fixes #33006.
2016-04-17Rollup merge of #33022 - Mr4x:master, r=blussManish Goregaokar-2/+2
Fix f32::sin_cos and f64::sin_cos examples
2016-04-17Rollup merge of #32956 - GuillaumeGomez:ptr_examples, r=steveklabnikManish Goregaokar-0/+52
Add examples for std::ptr module functions Part of #29371. r? @steveklabnik
2016-04-17Rollup merge of #31441 - gereeter:btree-docs, r=blussManish Goregaokar-5/+176
Start documenting BTreeMap's node interface cc @Gankro @apasel422
2016-04-17Auto merge of #33012 - pravic:describe-L-rustc-option, r=alexcrichtonbors-2/+3
List possible keys of the -L rustc option. Since `rustc --help -v` does not describe it, only *rustc.1* man page, but there is no man for Windows. r? @alexcrichton cc @steveklabnik
2016-04-17Auto merge of #32987 - xosmig:binary_heap_extension, r=apasel422bors-5/+121
collections: add append for binary heap
2016-04-16Auto merge of #32977 - alexcrichton:ignore-panics, r=brsonbors-5/+9
std: Change String::truncate to panic less The `Vec::truncate` method does not panic if the length argument is greater than the vector's current length, but `String::truncate` will indeed panic. This semantic difference can be a bit jarring (e.g. #32717), and after some discussion the libs team concluded that although this can technically be a breaking change it is almost undoubtedly not so in practice. This commit changes the semantics of `String::truncate` to be a noop if `new_len` is greater than the length of the current string. Closes #32717
2016-04-16Auto merge of #32952 - eddyb:mir-debuginfo-2, r=michaelwoeristerbors-80/+206
Get all (but one) of debuginfo tests to pass with MIR codegen. I didn't get much feedback in #31005 so I went ahead and implemented something simple. Closes #31005, as MIR debuginfo should work now for most usecases. The `no-debug-attribute` test no longer assumes variables are in scope of `return`. We might also want to revisit that in #32949, but the test is more reliable now either way. In order to get one last function in the `associated-type` test pass, this PR also fixes #32790.
2016-04-17resolve: Refactor away `DefModifiers`Jeffrey Seyfried-75/+56
2016-04-17Fix diagnostics for unresolved patternsJeffrey Seyfried-1/+5
2016-04-16Auto merge of #32909 - sanxiyn:unused-trait-import-2, r=alexcrichtonbors-36/+13
Remove unused trait imports
2016-04-17syntax: Parse import prefixes as pathsVadim Petrochenkov-134/+224
2016-04-16Auto merge of #32875 - jseyfried:1422_implementation, r=nikomatsakisbors-196/+478
Implement `pub(restricted)` privacy (RFC 1422) This implements `pub(restricted)` privacy from RFC 1422 (cc #32409) behind a feature gate. `pub(restricted)` paths currently cannot use re-exported modules both for simplicity of implementation and for future compatibility with RFC 1560 (cf #31783). r? @nikomatsakis
2016-04-16Add tests for `pub(restricted)`Jeffrey Seyfried-0/+205
2016-04-16Always report PRIVATE_IN_PUBLIC violations as hard errors whenJeffrey Seyfried-2/+4
the feature `pub_restricted` is enabled.
2016-04-16Adjust example for error E0225Ulrik Sverdrup-2/+2
It's using Copy as a trait object compatible trait, which is not appropriate, change to use a more typical Read + Send + Sync example. Also use whitespace around `+`.
2016-04-16mir: place match pattern bindings in their respective arms.Eduard Burtescu-18/+24
2016-04-16debuginfo: argument and upvar names for MIR.Eduard Burtescu-58/+176
2016-04-16Auto merge of #33019 - kamalmarhubi:binary_search_by_key, r=alexcrichtonbors-2/+2
slice: Add tracking issue for slice_binary_search_by_key
2016-04-16Update casting-between-types.mdKaiyin Zhong-4/+9
2016-04-16test: don't depend on locals being in scope on the return path.Eduard Burtescu-4/+6
2016-04-16Implement `Display` and `Hash` for `std::num::Wrapping`Tobias Bucher-1/+15
Also, change the `Debug` implementation to only show the inner value. Fixes #33006.
2016-04-16Fix f32::sin_cos and f64::sin_cos examplesMaxim Samburskiy-2/+2
2016-04-15Auto merge of #32785 - tbu-:pr_more_defaults, r=alexcrichtonbors-2/+30
Implement `Default` for more types in the standard library Also add `Hash` to `std::cmp::Ordering` and most possible traits to `fmt::Error`.
2016-04-15Auto merge of #32779 - michaelwoerister:partitioning, r=nikomatsakisbors-69/+1326
Add initial version of codegen unit partitioning for incremental compilation. The task of the partitioning module is to take the complete set of translation items of a crate and produce a set of codegen units from it, where a codegen unit is a named set of (translation-item, linkage) pairs. That is, this module decides which translation item appears in which codegen units with which linkage. This version only handles the case of partitioning for incremental compilation, not the regular N-codegen units case. In the future the regular case should be handled too, maybe even doing a bit more analysis to intelligently figure out a good partitioning. One thing that could be improved is the syntax of the codegen unit tests. Right now they still use the compile-fail error specification infrastructure, so everything has to be on one line. Would be nice to be able to format things in a more readable way.
2016-04-15slice: Add tracking issue for slice_binary_search_by_keyKamal Marhubi-2/+2
2016-04-16Add a note about side effects for "peekable" iteratorsTobias Bucher-2/+7
2016-04-15Auto merge of #33005 - Manishearth:rollup, r=Manishearthbors-79/+248
Rollup of 11 pull requests - Successful merges: #32923, #32926, #32929, #32931, #32935, #32945, #32946, #32964, #32970, #32973, #32997 - Failed merges:
2016-04-16collections: add append and extend specialization for binary heapAndrey Tonkih-5/+121
2016-04-15Describe possible keys of the -L rustc option.pravic-2/+3
2016-04-16Rollup merge of #32997 - alexcrichton:fix-alloc-system-how-did-this-land, ↵Manish Goregaokar-2/+4
r=nagisa alloc_system: Handle failure properly The Unix implementation was incorrectly handling failure for reallocation of over-aligned types by not checking for NULL. Closes #32993
2016-04-16Rollup merge of #32973 - kindlychung:patch-1, r=steveklabnikManish Goregaokar-2/+2
remove "#" symbols to make the code compile
2016-04-16Rollup merge of #32970 - taralx:patch-2, r=alexcrichtonManish Goregaokar-7/+13
Accommodate the case where dup lang items are entirely external. Fixes #32961
2016-04-16Rollup merge of #32964 - tshepang:comma, r=GuillaumeGomezManish Goregaokar-1/+1
doc: add missing comma
2016-04-16Rollup merge of #32946 - eddyb:issue-32783, r=dotdashManish Goregaokar-32/+40
trans: always register an item's symbol, even if duplicated. Fixes #32783 which was introduced by not always registering item symbols in #32742.
2016-04-16Rollup merge of #32945 - durka:rfc1494, r=pnkfelixManish Goregaokar-4/+7
implement RFC amendment 1494 Adds `:block` to the follow set for `:ty` and `:path`. See rust-lang/rfcs#1494.
2016-04-16Rollup merge of #32935 - pierzchalski:restore_trait_impl_docs, r=alexcrichtonManish Goregaokar-8/+85
Restore trait impl docs Currently, documentation on methods in trait implementations doesn't get rendered. This changes that; trait implementations have all documentation associated with impl items displayed (documentation from the trait definition is ignored). Fixes #24838 Fixes #26871
2016-04-16Rollup merge of #32931 - ↵Manish Goregaokar-0/+4
deepak:gh-issue-32928-update-cargo-in-getting-started-doc, r=GuillaumeGomez Doc fix: Update Cargo.toml in book/getting-started The Cargo.toml mentioned in book/getting-started is missing the section called `[dependencies]` fixes https://github.com/rust-lang/rust/issues/32928
2016-04-16Rollup merge of #32929 - LeoTestard:featureck-comment, r=GuillaumeGomezManish Goregaokar-2/+2
Update a comment to reflect changes in tidy checks.
2016-04-16Rollup merge of #32926 - caipre:rustbuild-verify-download, r=alexcrichtonManish Goregaokar-13/+40
rustbuild: Verify sha256 of downloaded tarballs Here's a quick first pass at this. I don't use Python often enough to claim that this is totally Pythonic. I've left off some (almost certainly unnecessary) error handling regarding opening and processing files. The whole tarball is read into memory to calculate the hash, but the file isn't *so* large so that should be fine. I don't care for the output from `raise RuntimeError`, but that's how `run()` does it so I'm following precedent. Tested by manually changing the value of `expected`, and by modifying the tarball then forcing `rustc_out_of_date()`. Both cases tripped the error. Closes https://github.com/rust-lang/rust/issues/32902