about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-10-25Reword to avoid using either re-assignment or reassignment in errorsCarol (Nichols || Goulding)-21/+21
2017-10-25Auto merge of #45473 - SimonSapin:variance-red-green, r=nikomatsakisbors-50/+11
Remove dependency tracking for variance computation This custom tracking is now replaced by the red/green algorithm. Fix https://github.com/rust-lang/rust/issues/45471
2017-10-25Auto merge of #45455 - kennytm:print-extern-impl-for-e0119, r=nikomatsakisbors-2/+428
Improve diagnostic of E0119 with extern crate, try to print the conflicting impl. Closes #27403. Closes #23563. Should improve #23980. The diagnostic now looks like: ``` error[E0119]: conflicting implementations of trait `std::convert::Into<_>` for type `GenX<_>`: --> $DIR/issue-27403.rs:15:1 | 15 | / impl<S> Into<S> for GenX<S> { 16 | | fn into(self) -> S { 17 | | self.inner 18 | | } 19 | | } | |_^ | = note: conflicting implementation in crate `core`: - impl<T, U> std::convert::Into<U> for T where U: std::convert::From<T>; error: aborting due to previous error ```
2017-10-24Auto merge of #44603 - SimonSapin:stylo, r=alexcrichtonbors-5/+55
Add Stylo and WebRender to src/tools/cargotest This is a subset of Servo that takes relatively less time to compile and does not use unstable Rust features.
2017-10-24Auto merge of #45446 - leodasvacas:remove-libcollections, r=alexcrichtonbors-97/+1
Remove deprecated `collections` crate. The real `collections` was merged with `alloc`, this facade was introduced [in this PR](https://github.com/rust-lang/rust/pull/42720) to give `#[no_std]` users time to adapt. This was done at least two cycles ago, now we can consider removing it for good.
2017-10-24Add WebRender to cargotestSimon Sapin-1/+12
2017-10-24Add Stylo to cargotestSimon Sapin-0/+9
2017-10-24Auto merge of #45350 - cjkenn:cjkenn/used-trait-imports, r=nikomatsakisbors-10/+28
Put used trait imports field into a distinct query Implementation for #45214 r+ @nikomatsakis
2017-10-24Auto merge of #45401 - zackmdavis:crate_shorthand_visibility_modifier, ↵bors-10/+97
r=nikomatsakis `crate` shorthand visibility modifier cc #45388. r? @nikomatsakis
2017-10-24Auto merge of #44984 - Maaarcocr:master, r=nikomatsakisbors-39/+37
Create NormalizeTy query As part of the effort to solve #44891, I've created the normalize_ty query. As outlined in the issue this meant: - renamed `normalize_associated_type()` to `normalize_associated_type_in()` - created the `normalize_ty` query - substituted the use of memoize with the query This PR is not ready. While running tests, one of the incremental ones failed. [This](https://pastebin.com/vGhH6bv6) is the error I got.
2017-10-24Auto merge of #44766 - sunjay:lift_generics, r=nikomatsakisbors-125/+107
Move Generics from MethodSig to TraitItem and ImplItem As part of `rust-impl-period/WG-compiler-traits`, we want to "lift" `Generics` from `MethodSig` into `TraitItem` and `ImplItem`. This is in preparation for adding associated type generics. (https://github.com/rust-lang/rust/issues/44265#issuecomment-331172238) Currently this change is only made in the AST. In the future, it may also impact the HIR. (Still discussing) To understand this PR, it's probably best to start from the changes to `ast.rs` and then work your way to the other files to understand the far reaching effects of this change. r? @nikomatsakis
2017-10-23update inherent_impls testsNiko Matsakis-6/+5
Now that we are visiting things in a different order during lowering, adding parameters winds up affecting the HirIds assigned to thinks in the method body, whereas it didn't before. We could fix this by reordering the order in which we visit `generics` during lowering, but this feels very fragile. Seems better to just let typeck tables be dirty here.
2017-10-23Remove dependency tracking for variance computationSimon Sapin-50/+11
This custom tracking is now replaced by the red/green algorithm. Fix https://github.com/rust-lang/rust/issues/45471
2017-10-23Move cargotest to separate jobs on Travis-CI and AppVeyorSimon Sapin-1/+21
2017-10-23Extend cargotest to specify packages to test (within a Cargo workspace).Simon Sapin-4/+14
2017-10-22`crate` shorthand visibility modifierZack M. Davis-12/+99
With regrets, this breaks rustfmt and rls. This is in the matter of #45388.
2017-10-22Auto merge of #45451 - durka:patch-45, r=steveklabnikbors-4/+4
fix stringify docs Update `stringify!` docs to show actual accepted syntax. Reported [on reddit](https://www.reddit.com/r/rust/comments/76o8rh/hey_rustaceans_got_an_easy_question_ask_here/dopzwys/).
2017-10-22Auto merge of #45429 - frewsxcv:frewsxcv-once-docs, r=quietmisdreavusbors-13/+81
Improve docs around `Once::call_once_force` and `OnceState`. Added some examples, clarify behavior, etc etc. Fixes https://github.com/rust-lang/rust/issues/43472.
2017-10-23Print the conflicting impl on E0119 with external crate.kennytm-2/+428
2017-10-22Auto merge of #45304 - kennytm:travis-color-color-conflict, r=aturonbors-2/+2
Fix rustbuild --color conflict when building on Travis outside of Docker When trying to build rust on Travis without using `stamp` or `docker`, both `RUSTC_COLOR=1` and `TRAVIS=true` will separately pass `--color always` to the command line. This causes the build to fail due to "*Option 'color' given more than once*". In this PR, the `RUSTC_COLOR=1` will not be passed in the CI environment.
2017-10-22fix stringify docs in stdAlex Burka-2/+2
2017-10-22fix stringify docsAlex Burka-2/+2
2017-10-22Don't build docs for removed libcollections.leonardo.yvens-1/+1
2017-10-22Remove deprecated `collections` crate.leonardo.yvens-96/+0
This reverts commit 6484258f1749499d3e51685df867b3d460a7f0be.
2017-10-22Auto merge of #45442 - matthewjasper:const-dynamic-capture-error, r=petrochenkovbors-1/+22
Cleanly error for non-const variable in associated const Not sure if wrapping the whole `visit::walk_impl_item` call is correct. Closes #44239
2017-10-22Improve docs around `Once::call_once_force` and `OnceState`.Corey Farwell-13/+81
2017-10-22Auto merge of #45432 - ollie27:rustbuild_error_index_gen, r=Mark-Simulacrumbors-5/+5
rustbuild: Build stage 1 error index generator at stage 0 At stage 1 rustdoc is built at stage 0 so the error index generator should be as well. This fixes `x.py --stage 1 doc` as rustdoc doesn't even build at stage 1. It was broken by #44605. r? @alexcrichton
2017-10-22Auto merge of #45433 - ollie27:rustbuild_nomicon, r=Mark-Simulacrumbors-1/+1
rustbuild: Fix path for the nomicon
2017-10-22Auto merge of #45423 - durka:update-jobserver, r=Mark-Simulacrumbors-9/+9
update jobserver version to work around macos bug Update `jobserver` crate to fix rust-lang/cargo#4643, a panic which can't happen according to `libc::poll`'s man page but was nevertheless reported on macOS 10.9 and 10.10. r? @alexcrichton
2017-10-22Auto merge of #45400 - alexcrichton:bootstrap-thinlto, r=Mark-Simulacrumbors-6/+21
rustbuild: Compile rustc with ThinLTO This commit enables ThinLTO for the compiler as well as multiple codegen units. This is intended to get the benefits of parallel codegen while also avoiding any major loss of perf. Finally this commit is also intended as further testing for #45320 and shaking out bugs.
2017-10-21renamed queryMarco Concetto Rudilosso-4/+4
2017-10-21anon NormalizeTy DepNodeMarco Concetto Rudilosso-1/+1
2017-10-21moved depnodeMarco Concetto Rudilosso-2/+1
2017-10-21removed unused importMarco Concetto Rudilosso-21/+1
2017-10-21trans_ -> fully_ prefixMarco Concetto Rudilosso-14/+14
2017-10-21tidierMarco Concetto Rudilosso-3/+9
2017-10-21added trans_ prefix and pluralised types. Solved failing test on the ↵Marco Concetto Rudilosso-14/+15
incremental test-suite.
2017-10-21added newlines at the end of the file and changed 'normalising' to 'normalizing'Marco Concetto Rudilosso-2/+2
2017-10-21Create NormalizeTy queryMarco Concetto Rudilosso-17/+29
2017-10-21Auto merge of #45399 - alexcrichton:compress-parallel, r=michaelwoeristerbors-175/+193
rustc: Move bytecode compression into codegen This commit moves compression of the bytecode from the `link` module to the `write` module, namely allowing it to be (a) cached by incremental compilation and (b) produced in parallel. The parallelization may show up as some nice wins during normal compilation and the caching in incremental mode should be beneficial for incremental compiles! (no more need to recompress the entire crate's bitcode on all builds)
2017-10-21rustc: Move bytecode compression into codegenAlex Crichton-175/+193
This commit moves compression of the bytecode from the `link` module to the `write` module, namely allowing it to be (a) cached by incremental compilation and (b) produced in parallel. The parallelization may show up as some nice wins during normal compilation and the caching in incremental mode should be beneficial for incremental compiles! (no more need to recompress the entire crate's bitcode on all builds)
2017-10-21Auto merge of #45393 - alexcrichton:update-musl, r=Mark-Simulacrumbors-3/+3
ci: Update musl with new release Apparently there's at least one CVE fixed in the new version of musl, and because we're distributing it seems like a good opportunity to update! Unfortunately it looks like #38618 still hasn't been fixed.
2017-10-21Auto merge of #45366 - ollie27:rustbuild_compiler_docs, r=alexcrichtonbors-5/+3
rustbuild: Don't try to build rustdoc API docs with compiler docs rustdoc is built separately to rustc now so the docs would need to be generated separately as well. Also rustdoc doesn't build at stage 1 which prevented the compiler docs being built at stage 1. Fixes: #44629
2017-10-21rustbuild: Fix path for the nomiconOliver Middleton-1/+1
2017-10-21rustbuild: Build stage 1 error index generator at stage 0Oliver Middleton-5/+5
At stage 1 rustdoc is built at stage 0 so the error index generator should be as well. This fixes `x.py --stage 1 doc` as rustdoc doesn't even build at stage 1.
2017-10-21Rollup merge of #45419 - steveklabnik:fix-commonmark-renderings, ↵Corey Farwell-19/+19
r=QuietMisdreavus Fix most rendering warnings from switching to CommonMark There's one big one lift, I'm filing a bug for it soon. r? @rust-lang/docs
2017-10-21Rollup merge of #45411 - oli-obk:clippy, r=ManishearthCorey Farwell-8/+168
Reactivate clippy in toolstate.toml The `Cargo.lock` changes are b/c clippy is not its own workspace anymore, but is part of the main workspace r? @Manishearth
2017-10-21Rollup merge of #45407 - topecongiro:fix-typos/librust-hir-README, r=kennytmCorey Farwell-8/+8
Fix typos in README.md
2017-10-21Rollup merge of #45356 - neunenak:master, r=GuillaumeGomezCorey Farwell-0/+4
Add explanatory text for error E0599 Add a text description of this error instead of just example error code r? GuillaumeGomez
2017-10-21Rollup merge of #45227 - frewsxcv:frewsxcv-set-nonblocking, r=sfacklerCorey Farwell-7/+66
Expand docs/examples for TCP `set_nonblocking` methods. Part of https://github.com/rust-lang/rust/issues/44050.