about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-03-01Address commentsJohn Kåre Alsaker-5/+8
2019-03-01Add support for using a jobserver with RayonJohn Kåre Alsaker-32/+172
2019-02-28update rustdoc coverage tests with new table layoutQuietMisdreavus-80/+51
2019-02-28tweak docs for rustdoc's `--show-coverage`QuietMisdreavus-4/+8
2019-02-28track items per-file instead of per-typeQuietMisdreavus-117/+33
2019-02-28update docs for doc coverageQuietMisdreavus-2/+4
2019-02-28add tests for doc coverageQuietMisdreavus-0/+251
2019-02-28tweak wording of extern typesQuietMisdreavus-1/+1
2019-02-28add a coverage mode for private itemsQuietMisdreavus-3/+20
2019-02-28print doc coverage as a table of individual item typesQuietMisdreavus-42/+166
2019-02-28refactor: combine item count numbers into a new structQuietMisdreavus-29/+57
2019-02-28count fewer items in calculate-doc-coverageQuietMisdreavus-1/+5
2019-02-28tabs -> spacesQuietMisdreavus-4/+4
2019-02-28add option to calculate documentation coverageQuietMisdreavus-4/+167
2019-02-28Fixed a syntax error in the pin docsAlex Gaynor-1/+1
2019-02-28fixed tests againMarcel Hellwig-14/+12
2019-02-28Introduce rustc_interface and move some methods thereJohn Kåre Alsaker-1055/+1303
2019-02-28Move rustdoc-js testing into compiletestGuillaume Gomez-53/+42
2019-02-28Clarify distinction between floor() and trunc()Jon Gjengset-8/+16
2019-02-28Auto merge of #57760 - dlrobertson:varargs1, r=alexregbors-902/+1778
Support defining C compatible variadic functions ## Summary Add support for defining C compatible variadic functions in unsafe rust with `extern "C"` according to [RFC 2137]. ## Details ### Parsing When parsing a user defined function that is `unsafe` and `extern "C"` allow variadic signatures and inject a "spoofed" `VaList` in the new functions signature. This allows the user to interact with the variadic arguments via a `VaList` instead of manually using `va_start` and `va_end` (See [RFC 2137] for details). ### Codegen When running codegen for a variadic function, remove the "spoofed" `VaList` from the function signature and inject `va_start` when the arg local references are created for the function and `va_end` on return. ## TODO - [x] Get feedback on injecting `va_start/va_end` in MIR vs codegen - [x] Properly inject `va_end` - It seems like it should be possible to inject `va_end` on the `TerminatorKind::Return`. I just need to figure out how to get the `LocalRef` here. - [x] Properly call Rust defined C variadic functions in Rust - The spoofed `VaList` causes problems here. Related to: #44930 r? @ghost [RFC 2137]: https://github.com/rust-lang/rfcs/blob/master/text/2137-variadic.md
2019-02-28add feature flag to testMarcel Hellwig-0/+1
2019-02-28Update src/libcore/mem.rsMazdak Farrokhzad-1/+1
Co-Authored-By: RalfJung <post@ralfj.de>
2019-02-28Ensure `record_layout_for_printing()` is inlined.Nicholas Nethercote-10/+12
This reduces instruction counts for the `ctfe-stress-2` benchmark by about 1%.
2019-02-28fixed nonzero testsMarcel Hellwig-4/+3
2019-02-28Make `Unique::as_ptr`, `NonNull::dangling` and `NonNull::cast` constTim-3/+97
Make `Unique::as_ptr` const without feature attribute as it's unstable Make `NonNull::dangling` and `NonNull::cast` const with `feature = "const_ptr_nonnull"`
2019-02-27Update edition-guideEric Huss-1/+1
2019-02-27Introduce assembly testsDenys Zariaiev-141/+328
2019-02-27allow specifying attributes for tool lintsAndy Russell-7/+19
2019-02-28Fix rebase failTaiki Endo-7/+8
2019-02-28Fix some imports and pathsTaiki Endo-6/+2
2019-02-28Fix error in tag-that-dare-not-speak-its-nameTaiki Endo-2/+1
2019-02-28Fix errors in test/uiTaiki Endo-3/+12
2019-02-28Revert removed #![feature(nll)]Taiki Endo-0/+1
2019-02-28Fix #[macro_use] extern crate in sys/cloudabiTaiki Endo-2/+1
2019-02-28libstd => 2018Taiki Endo-2040/+2005
2019-02-27improve readabilityRalf Jung-1/+1
2019-02-27replaced nonzeroparseerror with regular interrorMarcel Hellwig-99/+23
2019-02-27Don't promote function calls to nonpromotable thingsOliver Scherer-5/+20
2019-02-27Whitelist containers that allow older toolchainsAlex Crichton-1/+9
We'll use this as a temporary measure to get an LLVM update landed, but we'll have to go through and update images later to make sure they've got the right toolchains.
2019-02-27Replace `s` with `self` in docs for str methods taking self.Trevor Spiteri-3/+3
2019-02-27Auto merge of #58777 - Centril:rollup, r=Centrilbors-249/+387
Rollup of 14 pull requests Successful merges: - #58075 (Fix for issue #58050) - #58627 (rustdoc: move collapse and unindent docs passes earlier) - #58630 (Make `visit_clobber` panic-safe.) - #58678 (Deny `async fn` in 2015 edition) - #58680 (Fix an indexing error when using `x.py help`) - #58703 (Fix copy-pasted typo for read_string return value) - #58744 (Update dlmalloc to 0.1.3) - #58746 (std: docs: Disable running several Stdio doctests) - #58748 (update scoped_tls to 1.0) - #58749 (Reduce Repetitions of (n << amt) >> amt) - #58752 (Update string_cache_codegen to 0.4.2) - #58755 (Clarify `rotate_{left,right}` docs) - #58757 (Normalize the type Self resolves to in an impl) - #58761 (Add tracking issue for the unwind attribute) Failed merges: r? @ghost
2019-02-27Fix doc comments in librustc/hir/lowering.rsDan Robertson-16/+16
2019-02-27Rename variadic to c_variadicDan Robertson-119/+119
Function signatures with the `variadic` member set are actually C-variadic functions. Make this a little more explicit by renaming the `variadic` boolean value, `c_variadic`.
2019-02-27Refactor FunctionCx::codgen_terminatorDan Robertson-671/+771
- Move closures defined in codegen_terminator into a separate helper structure and implementation. - Create helper functions for each of the complex match arms on the terminators kind in codegen_terminator.
2019-02-27Add c_variadic to the unstable-bookDan Robertson-0/+50
- Add the c_variadic language feature - Add the c_variadic library feature
2019-02-27Add c_variadic language feature itemDan Robertson-0/+28
2019-02-27Support defining C compatible variadic functionsDan Robertson-152/+848
Add support for defining C compatible variadic functions in unsafe rust with extern "C".
2019-02-27Fix tidy check for language and library featuresDan Robertson-10/+12
2019-02-27Vastly simplify TryFrom docs.Simon Heath-28/+8
2019-02-27Incorporated review changes.Simon Heath-17/+35