about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-03-26Update jemalloc-sys to version 0.3.0gnzlbg-1/+1
2019-03-26bump bootstrap; adjust stage0 uses in libsyntax_posMazdak Farrokhzad-1/+0
2019-03-26bump bootstrap; adjust stage0 uses in core::ptr.Mazdak Farrokhzad-2/+2
2019-03-26bump bootstrap => 2019-03-20Mazdak Farrokhzad-1/+1
2019-03-26fix some uses I missedRalf Jung-10/+13
2019-03-26adjust MaybeUninit API to discussionsRalf Jung-63/+97
uninitialized -> uninit into_initialized -> assume_init read_initialized -> read set -> write
2019-03-26Rollup merge of #59419 - frewsxcv:frewsxcv-qu, r=varkorMazdak Farrokhzad-13/+4
Utilize `?` instead of `return None`. None
2019-03-26Rollup merge of #59410 - tbu-:pr_doc_clarifyclamp, r=joshtriplettMazdak Farrokhzad-16/+40
Clarify `{Ord,f32,f64}::clamp` docs a little Explicitly call out when it returns NaN, adhere to the panic doc guidelines.
2019-03-26Rollup merge of #59389 - euclio:deprecated-suggestion, r=varkorMazdak Farrokhzad-6/+72
replace redundant note in deprecation warning
2019-03-26Rollup merge of #59374 - faern:simplify-checked-duration-since, r=shepmasterMazdak Farrokhzad-37/+29
Simplify checked_duration_since This follows the same design as we updated to in #56490. Internally, all the system specific time implementations are checked, no panics. Then the panicking publicly exported API can just call the checked version of itself and make do with a single panic (`expect`) at the top. Since the internal sys implementations are now checked, this gets rid of the extra `if self >= &earlier` check in `checked_duration_since`. Except likely making the generated machine code simpler, it also reduces the algorithm from "Check panic condition -> call possibly panicking method" to just "call non panicking method". Added two test cases: * Edge case: Make sure `checked_duration_since` on two equal `Instant`s produce a zero duration, not a `None`. * Most common/intended usage: Make sure `later.checked_duration_since(earlier)`, returns an expected value.
2019-03-26Rollup merge of #59362 - pnkfelix:demo-from-iterator-short-circuiting, r=CentrilMazdak Farrokhzad-0/+48
Demo `FromIterator` short-circuiting while looking at a FIXME in `FromIterator for Option` and `FromIterator for Result`, I realized that the current documentation does not have example code showing exactly what is meant by "no further elements are taken." The code snippets provided here are meant to correct that.
2019-03-26Rollup merge of #59315 - Zoxc:move-query, r=oli-obkMazdak Farrokhzad-339/+380
Add no_hash to query macro and move some queries over r? @oli-obk
2019-03-26Rollup merge of #59267 - estebank:assoc-const-as-field, r=davidtwcoMazdak Farrokhzad-55/+66
Provide suggestion when using field access instead of path When trying to access an associated constant as if it were a field of an instance, provide a suggestion for the correct syntax. Fix #57316.
2019-03-26Rollup merge of #59232 - saleemjaffer:mir_place_refactor, r=oli-obkMazdak Farrokhzad-210/+233
Merge `Promoted` and `Static` in `mir::Place` fixes #53848
2019-03-26Rollup merge of #59150 - estebank:type-ascription, r=varkorMazdak Farrokhzad-22/+302
Expand suggestions for type ascription parse errors Fix #51222. CC #48016, #47666, #54516, #34255.
2019-03-26Improve some compiletest documentationPhilipp Hansch-3/+20
This adds some missing documentation for rustfix related things and adds a test for the `is_test` function.
2019-03-25review commentsEsteban Küber-4/+14
2019-03-26renames EvalContext to InterpretCx.kenta7777-70/+70
2019-03-25When moving out of a for loop head, suggest borrowing it in nll modeEsteban Küber-38/+63
2019-03-26Auto merge of #59136 - jethrogb:jb/sgx-std-test, r=sanxiynbors-94/+236
SGX target: fix std unit tests This fixes some tests and some code in the SGX sys implementation to make the `std` unit test suite pass. #59009 must be merged first.
2019-03-26Fix code block display in portability element in dark themeGuillaume Gomez-0/+8
2019-03-25Reject integer suffix when tuple indexingEsteban Küber-43/+69
2019-03-25Utilize `?` instead of `return None`.Corey Farwell-13/+4
2019-03-25[CI] record docker image info for reuseJosh Stone-2/+8
This writes an extra `dist/image-$image.txt` which contains the S3 URL of the cached image and the `sha256` digest of the docker entry point. This will be uploaded with the rest of the deployed artifacts in the Travis `after_success` script.
2019-03-25Link to PhantomData in NonNull documentationChris Gregory-2/+3
2019-03-25Update testsJohn Kåre Alsaker-26/+26
2019-03-25Make more lints incrementalJohn Kåre Alsaker-21/+29
2019-03-25Make some lints incrementalJohn Kåre Alsaker-24/+127
2019-03-25compile all crates under test w/ -Zemit-stack-sizesJorge Aparicio-13/+20
2019-03-25Save coverage file in build_base path, not /tmpPhilipp Hansch-7/+11
2019-03-25Formatting changes, including better wrapping and creating short summary lines.Christian-16/+21
2019-03-25Rework documentation into examplesChris Gregory-8/+46
2019-03-25Rework documentation to be about fat pointersChris Gregory-5/+9
2019-03-25Allocate HIR id counters on demandJohn Kåre Alsaker-18/+13
2019-03-25SGX target: fix std unit testsJethro Beekman-94/+236
2019-03-25black_box should use inline assembly on wasm32gnzlbg-3/+3
2019-03-25Refactor tuple comparison testsChris Gregory-20/+24
2019-03-25Auto merge of #59258 - euclio:suggestions-filter-crate, r=oli-obkbors-7/+44
filter suggestions from extern prelude Fixes #59027. Modifies the candidate gathering code to call `filter_fn` on extern crates, which causes them to be filtered out when looking for a type.
2019-03-25Allocate HIR id counters for use trees in MiscCollectorJohn Kåre Alsaker-16/+43
2019-03-25Auto merge of #59256 - petrochenkov:derval2, r=Zoxcbors-97/+84
Make meta-item API compatible with `LocalInternedString::get` soundness fix r? @Zoxc
2019-03-25hir: replace NodeId with HirId in ItemIdljedrz-56/+59
2019-03-25Clarify `{Ord,f32,f64}::clamp` docs a littleTobias Bucher-16/+40
Explicitly call out when it returns NaN, adhere to the panic doc guidelines.
2019-03-25add missing bracesFelix S Klock II-2/+2
add missing braces analogous to those suggested by killercup
2019-03-25black_box should inhibit optimizations on platforms without inline assemblygnzlbg-3/+6
2019-03-25Update src/libcore/option.rsPascal Hertleif-1/+1
Co-Authored-By: pnkfelix <pnkfelix@pnkfx.org>
2019-03-25Remove dupplicated configgnzlbg-2/+2
2019-03-25Moves test::black_box to core::hintgnzlbg-17/+20
This changes removes a cyclic dependency between the "test" and "libtest" crates, where "libtest" depends on "test" for "black_box", but "test" depends on "libtest" for everything else. I've chosen the "hint" module because there seems to be enough consensus in the discussion of RFC2360 that this module is where such an intrinsic would belong, but this PR does not implement that RFC! (note: if that RFC ever gets merged, the API, docs, etc. of this API will need to change). For backwards compatibility reasons I've chosen to also keep the "test" feature gate for these instead of adding a new feature gate. If we change the feature gate, we'll potentially all benchmarks, and while that's something that we could do, it seems unnecessary to do that now - if RFC2360 gets merged, we'll need to do that anyways.
2019-03-25Auto merge of #59242 - euclio:asm-ice, r=nagisabors-2/+29
make asm diagnostic instruction optional `DiagnosticInfoInlineAsm::getInstruction` may return a null pointer, so the instruction shouldn't be blindly unwrapped. Reopening from #55193. I was unable to trigger the assertion on Windows after rebasing. Fixes #23458. Fixes #55216.
2019-03-25s/lints/diagnosticsPhilipp Hansch-2/+2
Not all suggestions come from lints
2019-03-25Fix two bootstrap testsPhilipp Hansch-0/+2