about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
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-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
2019-10-11Add long error explanation for E0697Yuki Okushi-1/+19
2019-10-10stability: Do not use `buffer_lint` after lowering to HIRVadim Petrochenkov-6/+32
2019-10-10Auto merge of #65153 - da-x:issue-58017, r=petrochenkovbors-120/+222
Improve message when attempting to instantiate tuple structs with private fields Fixes #58017, fixes #39703. ``` error[E0603]: tuple struct `Error` is private --> main.rs:22:16 | 2 | pub struct Error(usize, pub usize, usize); | ----- ----- field is private | | | field is private ... 22 | let x = a::Error(3, 1, 2); | ^^^^^ | = note: a tuple struct constructor is private if any of its fields is private ```
2019-10-10query generator kind for error reportingcsmoe-26/+55
2019-10-10Don't cc rust-lang/compiler for toolstate changesvarkor-1/+1
2019-10-10Check that we don't access nonexisting union fieldsOliver Scherer-1/+5
2019-10-10vxWorks: implement get_path() and get_mode() for File fmt::DebugBaoshanPang-6/+20
2019-10-10Auto merge of #59546 - sfanxiang:interminable-ub, r=nagisabors-1/+107
Add llvm.sideeffect to potential infinite loops and recursions LLVM assumes that a thread will eventually cause side effect. This is not true in Rust if a loop or recursion does nothing in its body, causing undefined behavior even in common cases like `loop {}`. Inserting llvm.sideeffect fixes the undefined behavior. As a micro-optimization, only insert llvm.sideeffect when jumping back in blocks or calling a function. A patch for LLVM is expected to allow empty non-terminate code by default and fix this issue from LLVM side. https://github.com/rust-lang/rust/issues/28728 **UPDATE:** [Mentoring instructions here](https://github.com/rust-lang/rust/pull/59546#issuecomment-515072429) to unstall this PR
2019-10-10Clarify shim implementation comment.Adam Perry-1/+2
2019-10-10Instance::resolve_for_fn_ptr unconditionally resolves first.Adam Perry-9/+13
Per review feedback.
2019-10-10Improve docs for InstanceDef::ReifyShim.Adam Perry-1/+4
2019-10-10Update ui testsGuillaume Gomez-2/+5
2019-10-10Add long error explanation for E0568Guillaume Gomez-1/+29
2019-10-10Auto merge of #65140 - petrochenkov:disapp, r=nikomatsakisbors-1/+37
resolve: Remove an incorrect assert Fixes https://github.com/rust-lang/rust/issues/64803.
2019-10-10Mark Path::join as must_useAleksey Kladov-0/+1
I've accidentally did `mut_path_buf.jon(a_path);`, expecting this to be an in-place modification. Seems like we can easily warn in such cases?
2019-10-10Add and update rustdoc ui testGuillaume Gomez-2/+24
2019-10-10Don't pass doctest feature by defaultGuillaume Gomez-7/+4
2019-10-10Preserve output of raw pointers in mir dump.ben-1/+8
2019-10-10Auto merge of #65129 - andjo403:cargo_args, r=alexcrichtonbors-0/+10
make it possible to add args to cargo in x.py eg. make it easier to test -Ztimings for rustc cc https://github.com/rust-lang/rust/issues/65088
2019-10-10Add 'unlikely' annotation to branch in crate DepNodeIndex caching.Michael Woerister-1/+3
2019-10-09Qualify LangItemMatt Stavola-1/+1
2019-10-09Delegate is_{freeze,copy,sized}_raw to is_item_rawMatt Stavola-21/+12
2019-10-10Remove `tag` from `iterate_until_fixed_point()`.Nicholas Nethercote-4/+4
The function only has one call site, so we don't need a tag argument.
2019-10-10Special-case `ReEmpty` in `expand_node()`.Nicholas Nethercote-1/+9
This wins 6% on `unicode_normalization`, by avoiding a call to `lub_concrete_regions()` and a `Region` equality test.
2019-10-10Tweak `tcx` usage in `lub_concrete_regions()`.Nicholas Nethercote-5/+3
Some places use the local `tcx` variable, some use `self.tcx()`. This commit removes the local variable so that all places use `self.tcx()`, for consistency.
2019-10-09miri calls resolve_for_fn_ptr when reifying.Adam Perry-1/+8
2019-10-10Auto merge of #65077 - estebank:mut-trait-expected, r=nikomatsakisbors-57/+297
Note when a mutable trait object is needed Fix https://github.com/rust-lang/rust/issues/63619, fix https://github.com/rust-lang/rust/issues/37914. CC https://github.com/rust-lang/rust/issues/64068.
2019-10-09Clarify comment, dedupe match arms in shim.rs.Adam Perry-14/+9
Also add a missing terminal newline to a test.
2019-10-09Return ReifyShim from Instance::resolve_for_fn_ptr when track_caller present.Adam Perry-2/+39
This ICEs in MIR currently, which I think is to be expected since none of the MIR plumbing is set up. I added a test which confirms that the shim is being used for reifying a track_caller function.
2019-10-09Reifying callers of Instance::resolve use resolve_for_fn_ptr.Adam Perry-12/+28
2019-10-09Add Instance::resolve_for_fn_ptrAdam Perry-1/+23
2019-10-09Add InstanceDef::ReifyShim for track_caller functions.Adam Perry-1/+27
2019-10-10Auto merge of #64939 - nnethercote:snapshot-cleanups, r=nikomatsakisbors-37/+28
Snapshot clean-ups Two minor clean-ups involving snapshots.
2019-10-09Auto merge of #65249 - matthewjasper:revert-into-drop, r=nnethercotebors-466/+247
Revert "Make `into` schedule drop for the destination" This was a *very* large perf regression in some cases. I'll undo the revert once I have time to avoid the regression.
2019-10-09Revert "Make `into` schedule drop for the destination"Matthew Jasper-466/+247
This reverts commit 37026837a3f23486d3cf1009d9136927168ddb33.