about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-10-11Rollup merge of #65191 - varkor:const-generics-test-cases, r=nikomatsakisTyler Mandry-0/+142
Add some regression tests - Add a test for #62187. - Clean up the directory structure in `src/test/ui/const-generics` - Closes #64792. - Closes #57399. - Closes #57271.
2019-10-11Rollup merge of #65048 - Kixunil:patch-1, r=KodrAusTyler Mandry-0/+2
Added doc about behavior of extend on HashMap It was unclear what the implementation does when it encounters existing keys. This change makes it clear by documenting the trait impl.
2019-10-11Rollup merge of #64986 - skinny121:fn-ptr-const-generics, r=varkorTyler Mandry-152/+389
Function pointers as const generic arguments Makes function pointers as const generic arguments usable. Fixes #62395 r? @varkor
2019-10-11Rollup merge of #64337 - rick68:patch-17, r=Dylan-DPCTyler Mandry-4/+4
libstd: Fix typos in doc
2019-10-11Remove painful test that is not pulling its weightMark Rousskov-39/+0
Research suggests that we are not properly testing this case anyway, and even if we were, it is unlikely that we will regress here -- or, perhaps more accurately, if we do, I am uncertain that we care too much. It definitely seems like an edge case, and one that is particularly unlikely to occur as time goes on.
2019-10-11Add regression test for CONST_ERR lints in extern macrosmemoryruins-0/+38
2019-10-11don't assume we can *always* find a return type hint in async fnNiko Matsakis-3/+31
In particular, we sometimes cannot if there is an earlier error.
2019-10-11Report lint in external macrosmemoryruins-1/+2
2019-10-11InterpCx: make memory field publicRalf Jung-17/+6
2019-10-11rustdoc: forward -Z options to rustcTomasz Miąsko-15/+39
Currently rustdoc does not forward `-Z` options to rustc when building test executables. This makes impossible to use rustdoc to run test samples when crate under test is instrumented with one of sanitizers `-Zsanitizer=...`, since the final linking step will not include sanitizer runtime library. Forward `-Z` options to rustc to solve the issue. Helps with #43031.
2019-10-11resolve: shorten wording on private constructor errorDan Aloni-56/+56
2019-10-11make File::try_clone produce non-inheritable handles on WindowsJack O'Connor-1/+1
File handles shouldn't be inheritable in general. `std::process::Command` takes care of making them inheritable when child processes are spawned, and the `CREATE_PROCESS_LOCK` protects against races in that section on Windows. But `File::try_clone` has been creating inheritable file descriptors outside of that lock, which could be leaking into other child processes unintentionally. See also https://github.com/rust-lang/rust/pull/31069#discussion_r334117665.
2019-10-11Auto merge of #64877 - lzutao:stabilize-repeat_generic_slice, r=SimonSapinbors-6/+1
Stabilize `slice::repeat` (feature `repeat_generic_slice`) Closes #48784 r? @SimonSapin
2019-10-11improve performance of signed saturating_mulTrevor Spiteri-1/+1
Reciprocal throughput is improved from 2.3 to 1.7. https://godbolt.org/z/ROMiX6
2019-10-11resolve: fix error title regarding private constructorsDan Aloni-128/+140
The constructor is private, not the type. Idea credit to @petrochenkov, discussed at #65153
2019-10-11Clarify comment about purpose of ReifyShim.Adam Perry-2/+2
2019-10-11resolve_for_fn_ptr checks that the instance is an Item before returning shim.Adam Perry-10/+12
2019-10-11test: extend derive_on_deprecated to include more derivationsDan Aloni-0/+6
2019-10-11deriving: avoid dummy Span on an artificial `type_ident` pathDan Aloni-2/+2
The dummy Span pointed to the beginning of the source file instead to where the `#[derive]` is located. Later, it tripped the `in_derive_expansion(span)` check at `src/librustc/middle/stability.rs`, causing a span-less deprecation warning to be emitted. Fixes #56195, #55417.
2019-10-11emcscripten: ignore another thread-using testRalf Jung-0/+1
2019-10-11Auto merge of #64716 - jonhoo:stabilize-mem-take, r=SimonSapinbors-18/+1
Stabilize mem::take (mem_take) Tracking issue: https://github.com/rust-lang/rust/issues/61129 r? @matklad
2019-10-11Revert "Remove reference to Ubuntu 15.10 ARM toolchain"qtmlabs-3/+5
This reverts commit 4f97e5d41160e256c9d76d26432831ece83ef480.
2019-10-11Update ui stderrOliver Scherer-15/+2
2019-10-11Ensure we do not treat all unions as not having any drop glue.Oliver Scherer-0/+47
2019-10-11Clarify a vague commentOliver Scherer-1/+2
2019-10-11Prefer `ManuallyDrop::{take,new}` over `ptr::{read,write}`Oliver Scherer-3/+4
2019-10-11Preserve originally intended test semanticsOliver Scherer-4/+6
2019-10-11rpass tests are now part of `ui` testsOliver Scherer-1/+1
2019-10-11Extend union-nodrop.rs testSimon Sapin-1/+5
2019-10-11More descriptive variable nameSimon Sapin-2/+2
2019-10-11Update src/test/run-pass/union/union-nodrop.rsSimon Sapin-1/+1
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-10-11Update src/librustc_typeck/error_codes.rsSimon Sapin-1/+1
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-10-11Update src/librustc_typeck/check/mod.rsSimon Sapin-1/+3
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-10-11Update src/librustc_typeck/check/mod.rsSimon Sapin-1/+1
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-10-11Fixes #41073, it is no longer an ICESimon Sapin-0/+39
2019-10-11Remove unions_with_drop_fields lintSimon Sapin-57/+0
Cases where it would trigger are now hard errors.
2019-10-11Change untagged_unions to not allow union fields with dropUlrik Sverdrup-76/+222
Union fields may now never have a type with attached destructor. This for example allows unions to use arbitrary field types only by wrapping them in ManuallyDrop. The stable rule remains, that union fields must be Copy. We use the new rule for the `untagged_union` feature. See RFC 2514. Note for ui tests: We can't test move out through Box's deref-move since we can't have a Box in a union anymore.
2019-10-11Remove most uses of `allow(unions_with_drop_fields)` in testsSimon Sapin-121/+118
2019-10-11Remove uses of `allow(unions_with_drop_fields)` in the standard librarySimon Sapin-8/+7
2019-10-11Make <*const/mut T>::offset_from `const fn`Oliver Scherer-3/+276
2019-10-11Remove reference to Ubuntu 15.10 ARM toolchainqtmlabs-5/+3
2019-10-11Upgrade GCC to 8.3.0, glibc to 1.17.0 and crosstool-ng to 1.24.0 for ↵qtmlabs-366/+509
dist-armv7-linux
2019-10-11ignore-emcscripten as it does not support threadsRalf Jung-0/+1
2019-10-11Print lifetimes with backticksYuki Okushi-260/+260
2019-10-10Override nth for VecDeque Iter and IterMutCharles Gleason-0/+20
2019-10-10Add tests for VecDeque clone_fromCharles Gleason-0/+23
2019-10-10Implement Clone::clone_from for VecDequeCharles Gleason-2/+79
2019-10-10Move diagnostics code out of the critical pathEsteban Küber-18/+19
2019-10-11Fix issue 65284varkor-21/+41
2019-10-10Auto merge of #64823 - cuviper:min-std, r=Mark-Simulacrumbors-33/+127
minimize the rust-std component This changes the `rust-std` dist component to only include the artifacts of compiling the `libstd` step, as listed in `.libstd.stamp`. This does include `test` and `proc-macro` as well. The remaining _unstable_ libraries that are built as part of `rustc` are packaged into a new `rustc-dev` component, intended for use in the development of closely related tools (clippy, miri, rls). Here are the component sizes from the [try build](https://dev-static.rust-lang.org/dist/2019-10-07/index.html): | Name | Size | --- | --- | rust-std-nightly-x86_64-unknown-linux-gnu.tar.gz | 23.94 MiB | rust-std-nightly-x86_64-unknown-linux-gnu.tar.xz | 17.4 MiB | rustc-dev-nightly-x86_64-unknown-linux-gnu.tar.gz | 182.03 MiB | rustc-dev-nightly-x86_64-unknown-linux-gnu.tar.xz | 157.91 MiB Fixes #61978 Fixes #62486