about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2019-10-06Rollup merge of #65101 - mati865:rustc_macro-deps, r=nikomatsakisTyler Mandry-8/+8
Upgrade librustc_macros dependencies Passed tests on Linux.
2019-10-06Rollup merge of #65095 - GuillaumeGomez:sort-librustc_passes-err-codes, r=varkorTyler Mandry-162/+161
Sort error codes in librustc_passes This is just a little cleanup.
2019-10-06Auto merge of #64564 - jonas-schievink:cowardly-default, r=nikomatsakisbors-45/+268
Deny specializing items not in the parent impl Part of https://github.com/rust-lang/rust/issues/29661 (https://github.com/rust-lang/rfcs/pull/2532). At least sort of? This was discussed in https://github.com/rust-lang/rust/pull/61812#discussion_r300504114 and is needed for that PR to make progress (fixing an unsoundness). One annoyance with doing this is that it sometimes requires users to copy-paste a provided trait method into an impl just to mark it `default` (ie. there is no syntax to forward this impl method to the provided trait method). cc @Centril and @arielb1
2019-10-06minor changes to follow the Rust's style guidelinesStefan Lankes-5/+10
2019-10-06redesign of the interface to the unikernel HermitCoreStefan Lankes-451/+2388
- the old interface between HermitCore and the Rust Standard Library based on a small C library (newlib) - remove this interface and call directly the unikernel - remove the dependency to the HermitCore linker - use rust-lld as linker
2019-10-06add testcase for generator move suggestioncsmoe-0/+31
2019-10-06Add long error explanation for E0566Guillaume Gomez-1/+24
2019-10-06Auto merge of #65089 - nnethercote:optimize-integral-pattern-matching, ↵bors-165/+199
r=Mark-Simulacrum Optimize integral pattern matching Various improvements to integral pattern matching. Together they reduce instruction counts for `unicode_normalization-check-clean` by about 16%. r? @Mark-Simulacrum
2019-10-06Remove loaded_from_cache map from DepGraphMark Rousskov-31/+0
It's now unused, even with -Zquery-dep-graph
2019-10-06sort error codes in librustc_passesGuillaume Gomez-162/+161
2019-10-06Suggest dereferencing boolean reference when used in 'if' or 'while'wangxiangqing-40/+2
Change-Id: I0c5c4d767be2647e6f017ae7bf83558c56dbca97
2019-10-06Suggest dereferencing boolean reference when used in 'if' or 'while'wangxiangqing-12/+80
Change-Id: I0c5c4d767be2647e6f017ae7bf83558c56dbca97
2019-10-06Auto merge of #65043 - Aaron1011:fix/reexport-determinism, r=petrochenkovbors-29/+19
Make re-export collection deterministic Fixes https://github.com/rust-lang/rust/issues/65036 Previously, we were using an `FxHashMap` to collect module re-exports. However, re-exports end up getting serialized into crate metadata, which means that metadata generation was non-deterministic. This resulted in spurious error messages changes (e.g. PR #64906) due to pretty-printing implicitly depending on the order of re-exports when computing the proper path to show to the user. See #65042 for a long-term strategy to detect this kind of issue
2019-10-06Use shorthand initialization in rustdocAvi Dessauer-9/+9
2019-10-06Fix const arguments not displaying in types mismatch diagnostic.ben-7/+24
2019-10-05Rollup merge of #65151 - tmandry:revert-emscripten-upgrade, r=tmandryTyler Mandry-376/+537
Revert #63649 - "Upgrade Emscripten targets to use upstream LLVM backend" This change caused the runtime of the linux-asmjs builder to nearly double from 2+ hours to about 4 hours, which happens to be the bors timeout. (It made it in barely under 4 hours when it was merged.) This is causing timeouts on all new changes. This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-05Rollup merge of #65130 - davidtwco:rfc-2008-improper-ctypes, r=petrochenkovTyler Mandry-0/+175
lint: extern non-exhaustive types are improper This PR makes the `improper_ctype` lint trigger for non-exhaustive types when those types aren't defined in the current crate, as per [this comment](https://github.com/rust-lang/rust/issues/44109#issuecomment-537583344). cc @Centril
2019-10-05Rollup merge of #65126 - BO41:time_typo, r=kennytmTyler Mandry-28/+23
Fix typo on `now()` comments Fix typo, update words, and remove some redundant word. Also rustfmt on the rest of the file (hope this is okay :) revival of #61433 r? @kennytm
2019-10-05Rollup merge of #65124 - memoryruins:castaway, r=petrochenkovTyler Mandry-24/+24
Replace some instances of `as *[const | mut] _` with `.cast()` While in `codegen_llvm`, noticed some places for the recent `pointer::cast` method.
2019-10-05Rollup merge of #65123 - Centril:mac-invoc-in-mut-pat, r=estebankTyler Mandry-1/+76
Account for macro invocation in `let mut $pat` diagnostic. Fixes https://github.com/rust-lang/rust/issues/65122. r? @estebank
2019-10-05Rollup merge of #65118 - cuviper:Zmutable-noalias-default, r=rkruppeTyler Mandry-1/+1
Update the documented default of -Z mutable-noalias It has been fully disabled by default since #54639.
2019-10-05Rollup merge of #65116 - spastorino:remove-unneeded-fn, r=oli-obkTyler Mandry-6/+0
Remove unneeded visit_statement definition r? @oli-obk
2019-10-05Rollup merge of #65113 - Qwaz:master, r=jonas-schievinkTyler Mandry-1/+1
Fix lonely backtick That backtick won't be sad anymore
2019-10-05Rollup merge of #65106 - Mark-Simulacrum:unused-attr-allow, r=CentrilTyler Mandry-0/+2
Allow unused attributes to avoid incremental bug cc #65023 This isn't labeled as fixing that issue because it's not really a fix, just a patch.
2019-10-05Rollup merge of #65105 - Mark-Simulacrum:split-librustc, r=nikomatsakisTyler Mandry-229/+237
Split out some passes from librustc This is just moving them out to librustc_passes -- I've not measured compile time or run time. I don't expect any significant impact, but this seems prudent regardless.
2019-10-05Rollup merge of #65100 - csmoe:generator, r=nikomatsakisTyler Mandry-126/+110
Replace GeneratorSubsts with SubstsRef Closes #42340 r? @nikomatsakis
2019-10-05Rollup merge of #65066 - ↵Tyler Mandry-11/+29
wesleywiser:fix_const_prop_ice_on_polymorphic_promoted_mir, r=oli-obk [const-prop] Fix ICE when trying to eval polymorphic promoted MIR Fixes #64908 r? @oli-obk cc @nikomatsakis @pnkfelix
2019-10-05Rollup merge of #65011 - estebank:ice-o-matic, r=zackmdavisTyler Mandry-5/+41
Do not ICE when dereferencing non-Copy raw pointer CC #52262. Confirmed to remove the unnecessary ICE, but without a repro case.
2019-10-05Rollup merge of #64909 - estebank:turbofish-reloaded, r=CentrilTyler Mandry-86/+286
When encountering chained operators use heuristics to recover from bad turbofish
2019-10-05Rollup merge of #64765 - alexcrichton:less-check-backtrace, r=sfacklerTyler Mandry-50/+50
std: Reduce checks for `feature = "backtrace"` This is a stylistic change to libstd to reduce the number of checks of `feature = "backtrace"` now that we unconditionally depend on the `backtrace` crate and rely on it having an empty implementation. otherwise.
2019-10-05Rollup merge of #64728 - messense:udp-peer-addr, r=dtolnayTyler Mandry-3/+1
Stabilize UdpSocket::peer_addr Fixes #59127
2019-10-05Rollup merge of #64708 - SimonSapin:option-deref, r=CentrilTyler Mandry-17/+4
Stabilize `Option::as_deref` and `Option::as_deref_mut` The tracking issue https://github.com/rust-lang/rust/issues/50264 still has unresolved question for the corresponding `Result` methods.
2019-10-05Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, ↵Tyler Mandry-376/+537
r=alexcrichton" This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-06Suggest dereferencing boolean reference when used in 'if' or 'while'wangxiangqing-1/+7
Change-Id: I0c5c4d767be2647e6f017ae7bf83558c56dbca97
2019-10-05Account for derefs when suggesting assoc functionEsteban Küber-3/+52
2019-10-05When suggesting assoc function with type params, include turbofishEsteban Küber-8/+52
2019-10-05Ensure that associated `async fn`s have unique fresh param namesMatthew Jasper-1/+24
2019-10-05resolve: Remove an incorrect assertVadim Petrochenkov-1/+37
2019-10-05Remove `for_each_child_stable`Aaron Hill-28/+17
Now that `Resolutions` has a deterministic iteration order, it's no longer necessary to sort its entries before iterating over them
2019-10-05Make re-export collection deterministicAaron Hill-1/+2
Previously, we were using an `FxHashMap` to collect module re-exports. However, re-exports end up getting serialized into crate metadata, which means that metadata generation was non-deterministic. This resulted in spurious error messages changes (e.g. PR #64906) due to pretty-printing implicitly depending on the order of re-exports when computing the proper path to show to the user. See #65042 for a long-term strategy to detect this kind of issue
2019-10-05remove event that causes panics in measureme toolsAndreas Jonson-4/+0
the measureme tools summarize and crox do not alow a event to go out of scope of the parent event codegen_and_optimize_crate ends after the codegen_crate event
2019-10-05Rename the testJonas Schievink-6/+6
2019-10-05Extend test and fix nitsJonas Schievink-8/+72
2019-10-05Pacify tidyJonas Schievink-3/+6
2019-10-05Test that we get the proper errorsJonas Schievink-0/+70
2019-10-05Fix the bootstrapJonas Schievink-0/+8
2019-10-05Hide the `Iterator` specialization behind a traitJonas Schievink-5/+22
2019-10-05Add comment to `Type` and `OpaqueTy` matchJonas Schievink-1/+1
2019-10-05Deny specializing items not in the parent implJonas Schievink-43/+104
2019-10-05lint: extern non-exhaustive types are improperDavid Wood-0/+175
This commit makes the `improper_ctype` lint trigger for non-exhaustive types when those types aren't defined in the current crate. Signed-off-by: David Wood <david@davidtw.co>