about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2017-10-03Use HTTPS protocol for `chat.mibbit.com`Suriyaa ✌️️-1/+1
2017-10-03Auto merge of #44920 - vi:rustdoc_implementors_src_link, r=GuillaumeGomezbors-15/+61
rustdoc: Render [src] links for trait implementors Should close #43893. <s>No tests [yet].</s> r? @QuietMisdreavus
2017-10-03Auto merge of #44966 - zackmdavis:no_mangle_no_snake, r=aturonbors-1/+24
make non_snake_case lint allow extern no-mangle functions Resolves #31924. r? @sfackler
2017-10-02Auto merge of #44977 - steveklabnik:update-mdbook, r=alexcrichtonbors-18/+18
update mdbook Fixes #44704
2017-10-02Auto merge of #44885 - lu-zero:master, r=alexcrichtonbors-0/+120
More Altivec Intrinsics Float-specific intrinsics
2017-10-02update mdbooksteveklabnik-18/+18
Fixes #44704
2017-10-02rustdoc: Remove cruft from the testVitaly _Vi Shukela-14/+4
per @GuillaumeGomez's sample, but with one change.
2017-10-02Auto merge of #44959 - arielb1:generic-errors, r=eddybbors-14/+133
handle nested generics in Generics::type_param/region_param Fixes #44952. r? @eddyb
2017-10-02fix handling of `Self`Ariel Ben-Yehuda-26/+79
2017-10-02Auto merge of #44942 - zackmdavis:lint_suggestions, r=estebankbors-20/+153
code suggestions for unused-mut, while-true, deprecated-attribute, and unused-parens lints ![lint_suggestions](https://user-images.githubusercontent.com/1076988/31044068-b2074de8-a57c-11e7-9319-6668508b6d1f.png) r? @estebank
2017-10-01correct unused-parens lint suggestion to strip exact pairZack M. Davis-1/+51
2017-10-02Auto merge of #44960 - SeanPrashad:master, r=steveklabnikbors-5/+1
Resolves #36284 - vec.rs documentation Removed comments associated with `[into_vec]` being equivalent to `[shrink_to_fit]` as requested.
2017-10-01make non_snake_case lint allow extern no-mangle functionsZack M. Davis-1/+24
Resolves #31924.
2017-10-01Auto merge of #44955 - laumann:small-typo-fix, r=steveklabnikbors-2/+2
Fix typo: geneartor -> generator
2017-10-01fix handling of SelfAriel Ben-Yehuda-5/+14
2017-10-01Auto merge of #44919 - diwic:79-pretty-mir, r=arielb1bors-1/+3
Mir pretty print: Add cleanup comment I found it useful to add a comment indicating whether or not a BasicBlock is a cleanup block or not. Hopefully you'll find it useful too.
2017-10-01Auto merge of #44897 - Havvy:doc-size_of, r=steveklabnikbors-0/+78
Docs for size_of::<#[repr(C)]> items. Most of this info comes from camlorn's blog post on optimizing struct layout and the Rustonomicon. I don't really like my wording in the first paragraph. I also cannot find a definition of what `#[repr(C)]` does for enums that have variants with fields. They're allowed, unlike `#[repr(C)] enum`s with no variants.
2017-10-01Resolves #36284 - vec.rs documentationSean Prashad-5/+1
2017-10-01handle nested generics in Generics::type_param/region_paramAriel Ben-Yehuda-11/+68
Fixes #44952.
2017-10-01Fix typo: geneartor -> generatorThomas Jespersen-2/+2
2017-10-01Auto merge of #44945 - petrochenkov:fixtyrec, r=arielb1bors-14/+23
Do not require semantic types for all syntactic types when there are errors Fixes https://github.com/rust-lang/rust/issues/44814 Fixes https://github.com/rust-lang/rust/issues/44858 Fixes https://github.com/rust-lang/rust/issues/44946 r? @nikomatsakis
2017-10-01rustdoc: Style of [src] link for trait implementorsVitaly _Vi Shukela-1/+8
A change suggested by @GuillaumeGomez and @QuietMisdreavus. Also slight reindenting of the appropriate CSS section.
2017-10-01Auto merge of #44906 - dkl:main-signature, r=nagisabors-6/+153
Fix native main() signature on 64bit Hello, in LLVM-IR produced by rustc on x86_64-linux-gnu, the native main() function had incorrect types for the function result and argc parameter: i64, while it should be i32 (really c_int). See also #20064, #29633. So I've attempted a fix here. I tested it by checking the LLVM IR produced with --target x86_64-unknown-linux-gnu and i686-unknown-linux-gnu. Also I tried running the tests (`./x.py test`), however I'm getting two failures with and without the patch, which I'm guessing is unrelated.
2017-10-01Auto merge of #44921 - est31:master, r=alexcrichtonbors-8/+2
Update the libcompiler_builtins submodule Pulls in the latest changes from libcompiler_builtins. It should work, but it would be best if this wouldn't get put into a rollup so that bisecting is possible if there is a regression. r? @alexcrichton
2017-09-30test: Update target specs test for new target-c-int-width fieldDaniel Klauer-0/+3
2017-09-30Auto merge of #44944 - dbrgn:trace-macros-docs, r=QuietMisdreavusbors-0/+39
Docs: Add trace_macros! to unstable book As TIL'd at Rustfest :) Note: This is unfortunately untested, since I'm on my laptop battery, and compiling LLVM would probably eat at least 50% of it on my dual core CPU. (Is there a way to build docs without compiling LLVM?)
2017-09-30code suggestions for unused-mut, while-true lints; UI testZack M. Davis-8/+81
2017-09-30code suggestion for unused-parentheses lintZack M. Davis-3/+11
Resolves #42892.
2017-09-30code suggestion for deprecated-attribute lintZack M. Davis-6/+8
Also, fix the deprecation message for the late no-debug feature.
2017-09-30Auto merge of #44783 - alexcrichton:lto-codegen-units, r=michaelwoeristerbors-430/+803
rustc: Enable LTO and multiple codegen units This commit is a refactoring of the LTO backend in Rust to support compilations with multiple codegen units. The immediate result of this PR is to remove the artificial error emitted by rustc about `-C lto -C codegen-units-8`, but longer term this is intended to lay the groundwork for LTO with incremental compilation and ultimately be the underpinning of ThinLTO support. The problem here that needed solving is that when rustc is producing multiple codegen units in one compilation LTO needs to merge them all together. Previously only upstream dependencies were merged and it was inherently relied on that there was only one local codegen unit. Supporting this involved refactoring the optimization backend architecture for rustc, namely splitting the `optimize_and_codegen` function into `optimize` and `codegen`. After an LLVM module has been optimized it may be blocked and queued up for LTO, and only after LTO are modules code generated. Non-LTO compilations should look the same as they do today backend-wise, we'll spin up a thread for each codegen unit and optimize/codegen in that thread. LTO compilations will, however, send the LLVM module back to the coordinator thread once optimizations have finished. When all LLVM modules have finished optimizing the coordinator will invoke the LTO backend, producing a further list of LLVM modules. Currently this is always a list of one LLVM module. The coordinator then spawns further work to run LTO and code generation passes over each module. In the course of this refactoring a number of other pieces were refactored: * Management of the bytecode encoding in rlibs was centralized into one module instead of being scattered across LTO and linking. * Some internal refactorings on the link stage of the compiler was done to work directly from `CompiledModule` structures instead of lists of paths. * The trans time-graph output was tweaked a little to include a name on each bar and inflate the size of the bars a little
2017-09-30Do not require semantic types for all syntactic types when there are type errorspetrochenkov-14/+23
2017-09-30rustc: Use 16bit c_int for msp430Daniel Klauer-1/+36
Fix regression from c2fe69b9, where main() signature was changed from using 16bit isize to 32bit c_int for argc parameter/result.
2017-09-30rustc: Specify c_int width for each targetDaniel Klauer-1/+81
(all i32 for now, as in liblibc)
2017-09-30Docs: Add trace_macros! to unstable bookDanilo Bargen-0/+39
2017-09-30Auto merge of #44936 - Mark-Simulacrum:rollup, r=Mark-Simulacrumbors-318/+458
Rollup of 15 pull requests - Successful merges: #44124, #44287, #44320, #44694, #44708, #44794, #44797, #44824, #44836, #44840, #44845, #44854, #44889, #44900, #44903 - Failed merges:
2017-09-30rustc: Enable LTO and multiple codegen unitsAlex Crichton-430/+803
This commit is a refactoring of the LTO backend in Rust to support compilations with multiple codegen units. The immediate result of this PR is to remove the artificial error emitted by rustc about `-C lto -C codegen-units-8`, but longer term this is intended to lay the groundwork for LTO with incremental compilation and ultimately be the underpinning of ThinLTO support. The problem here that needed solving is that when rustc is producing multiple codegen units in one compilation LTO needs to merge them all together. Previously only upstream dependencies were merged and it was inherently relied on that there was only one local codegen unit. Supporting this involved refactoring the optimization backend architecture for rustc, namely splitting the `optimize_and_codegen` function into `optimize` and `codegen`. After an LLVM module has been optimized it may be blocked and queued up for LTO, and only after LTO are modules code generated. Non-LTO compilations should look the same as they do today backend-wise, we'll spin up a thread for each codegen unit and optimize/codegen in that thread. LTO compilations will, however, send the LLVM module back to the coordinator thread once optimizations have finished. When all LLVM modules have finished optimizing the coordinator will invoke the LTO backend, producing a further list of LLVM modules. Currently this is always a list of one LLVM module. The coordinator then spawns further work to run LTO and code generation passes over each module. In the course of this refactoring a number of other pieces were refactored: * Management of the bytecode encoding in rlibs was centralized into one module instead of being scattered across LTO and linking. * Some internal refactorings on the link stage of the compiler was done to work directly from `CompiledModule` structures instead of lists of paths. * The trans time-graph output was tweaked a little to include a name on each bar and inflate the size of the bars a little
2017-09-30Auto merge of #44893 - spastorino:remove_new_and_index, r=nikomatsakisbors-21/+5
Remove new and index methods already implement for Idx These are the rest of the repeated implementations for new and index methods. Follow up of https://github.com/rust-lang/rust/pull/44889
2017-09-29fix comment typo, `CodeSuggestion` path in doc commentZack M. Davis-3/+3
`CodeSuggestion` doesn't live in the `diagnostic` module.
2017-09-30rustdoc: A test for local and foreign [src] trait impl linksVitaly _Vi Shukela-0/+34
2017-09-29Rollup merge of #44903 - kallisti5:ci-build-disabled, r=aidanhsMark Simulacrum-5/+7
ci: Fix building disabled containers * Change the context into the disabled directory. Now you can test containers which are disabled.
2017-09-29Rollup merge of #44900 - Havvy:normalize-lang-attribute-spacing, r=sfacklerMark Simulacrum-5/+5
Normalize spaces in lang attributes. So, like, I grepped for all `lang` attributes for *reasons* and I noticed that they all share the same spacing of `#[lang = "item_name"]` except these five instances. So I decided to fix that. So enjoy this PR of exactly ten spaces.
2017-09-29Rollup merge of #44889 - spastorino:remove_new, r=arielb1Mark Simulacrum-9/+1
Remove DepNodeIndex::new is already impl for Idx
2017-09-29Rollup merge of #44854 - lucasem:atomic-docs, r=steveklabnikMark Simulacrum-1/+25
docs improvement sync::atomic::Atomic* Addresses the `Atomic*` part of #29377. r? @steveklabnik
2017-09-29Rollup merge of #44845 - SimonSapin:nll_mod_rs, r=nikomatsakisMark Simulacrum-0/+0
Move src/librustc_mir/transform/nll.rs to a subdirectory CC https://github.com/rust-lang/rust/issues/43234
2017-09-29Rollup merge of #44840 - steveklabnik:fix-wording, r=BurntSushiMark Simulacrum-1/+1
Improve wording for StepBy No other iterator makes the distinction between an iterator and an iterator adapter in its summary line, so change it to be consistent with all other adapters.
2017-09-29Rollup merge of #44836 - GuillaumeGomez:fmt-missing-links, r=QuietMisdreavusMark Simulacrum-4/+8
Add missing links in fmt module r? @rust-lang/docs
2017-09-29Rollup merge of #44824 - dtolnay:22really21, r=alexcrichtonMark Simulacrum-12/+12
Backport libs stabilizations to 1.21 beta Includes the following stabilizations: - tcpstream_connect_timeout https://github.com/rust-lang/rust/pull/44563 - iterator_for_each https://github.com/rust-lang/rust/pull/44567 - ord_max_min https://github.com/rust-lang/rust/pull/44593 - compiler_fences https://github.com/rust-lang/rust/pull/44595 - needs_drop https://github.com/rust-lang/rust/pull/44639 - vec_splice https://github.com/rust-lang/rust/pull/44640 These have been backported in https://github.com/rust-lang/rust/pull/44823.
2017-09-29Rollup merge of #44797 - lucasem:master, r=frewsxcvMark Simulacrum-2/+55
docs improvement std::sync::{PoisonError, TryLockError} Addresses the `PoisonError` and `TryLockError` parts of #29377. Adds examples and links. r? @steveklabnik
2017-09-29Rollup merge of #44794 - napen123:master, r=frewsxcvMark Simulacrum-0/+11
Add doc example to HashMap::hasher None
2017-09-29Rollup merge of #44708 - toidiu:ak-44493, r=nikomatsakisMark Simulacrum-0/+6
Infer `T: 'x` outlives requirements on structs #44493 https://github.com/rust-lang/rust/issues/44493