about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-05-13Make intra links work inside trait impl blockTymoteusz Jankowski-11/+90
2020-05-13Auto merge of #71451 - estebank:suggest-super-trait-constraint, r=nikomatsakisbors-100/+282
Suggest adding super trait constraints
2020-05-13Auto merge of #70416 - mzohreva:mz/sgx-test, r=nikomatsakisbors-0/+32
Process termination test for SGX The issue is described in https://github.com/fortanix/rust-sgx/issues/109 cc @jethrogb
2020-05-12review commentsEsteban Küber-2/+9
2020-05-12fix test output after rebaseEsteban Küber-1/+1
2020-05-12Increase verbosity of bound restriction suggestionsEsteban Küber-123/+215
- Make the bound restriction suggestion `span_suggestion_verbose`. - Fix whitespace typo.
2020-05-12Suggest adding super trait constraintsEsteban Küber-13/+96
2020-05-12Auto merge of #72091 - RalfJung:miri, r=RalfJungbors-8/+7
update miri Fixes https://github.com/rust-lang/rust/issues/72037 Cc @rust-lang/miri r? @ghost
2020-05-12Rollup merge of #72128 - RalfJung:str-validity, r=oli-obkDylan DPC-11/+12
strings do not have to be valid UTF-8 any more Cc https://github.com/rust-lang/reference/pull/792 r? @oli-obk
2020-05-12Rollup merge of #72096 - jonas-schievink:mirck-docs, r=matthewjasperDylan DPC-54/+50
Make MIR typeck use `LocalDefId` and fix docs The docs on `fn type_check` were not in sync with the arguments it takes. r? @matthewjasper
2020-05-12Rollup merge of #72048 - jonas-schievink:visit-return, r=oli-obkDylan DPC-3/+38
Visit move out of `_0` when visiting `return` Closes https://github.com/rust-lang/rust/issues/72032
2020-05-12Rollup merge of #71928 - mibac138:strikethrough, r=GuillaumeGomezDylan DPC-3/+17
Add strikethrough support to rustdoc Implements uncontroversial part of #71183. r? @GuillaumeGomez
2020-05-12Rollup merge of #71737 - RalfJung:miri-test-threads, r=shepmasterDylan DPC-9/+10
Miri: run liballoc tests with threads Miri now supports threads, so we can run these tests. :)
2020-05-12strings do not have to be valid UTF-8 any moreRalf Jung-11/+12
2020-05-11Rollup merge of #72109 - matthiaskrgr:cl8ppy, r=Dylan-DPCDylan DPC-79/+68
Fix clippy warnings Fixes clippy::{cone_on_copy, filter_next, redundant_closure, single_char_pattern, len_zero,redundant_field_names, useless_format, identity_conversion, map_clone, into_iter_on_ref, needless_return, option_as_ref_deref, unused_unit, unnecessary_mut_passed} r? @Dylan-DPC
2020-05-11Rollup merge of #72107 - GuillaumeGomez:cleanup-e0579, r=Dylan-DPCDylan DPC-4/+6
Clean up E0579 explanation r? @Dylan-DPC
2020-05-11Rollup merge of #72077 - GuillaumeGomez:cleanup-E0571, r=Dylan-DPCDylan DPC-3/+3
Improve E0571 wording r? @Dylan-DPC
2020-05-11Rollup merge of #72072 - tspiteri:minus-inf, r=Dylan-DPCDylan DPC-2/+2
doc: minus (U+2212) instead of dash (U+002D) for negative infinity Like #67430, for the new associated constants.
2020-05-11Rollup merge of #72067 - jonas-schievink:fuel-warn, r=varkorDylan DPC-7/+11
Emit a warning when optimization fuel runs out `eprintln!` gets swallowed by Cargo too easily.
2020-05-11Rollup merge of #72052 - lcnr:const_pprint, r=ecstatic-morseDylan DPC-14/+16
display `ConstKind::Param`
2020-05-11Rollup merge of #72044 - RalfJung:min-spec, r=matthewjasperDylan DPC-9/+9
use min_specialization for some rustc crates where it requires no changes and add FIXME for the rest Cc @matthewjasper
2020-05-11Rollup merge of #72027 - Mark-Simulacrum:ci-caches, r=pietroalbiniDylan DPC-4/+8
Use CDN for ci-caches on download This will reduce costs, as well as lays the groundwork for developers to be able to locally pull the published docker images without needing AWS credentials. r? @pietroalbini
2020-05-11Rollup merge of #72019 - matthewjasper:dont-skip-binder, r=davidtwcoDylan DPC-0/+45
Fix debug assertion in error code Closes #70813
2020-05-11Rollup merge of #72014 - GuillaumeGomez:deprecated-emoji, r=kinnison,ollie27Dylan DPC-3/+6
Deprecated emoji Fixes #67872. r? @kinnison cc @rust-lang/rustdoc
2020-05-11Auto merge of #72089 - Mark-Simulacrum:error-is-really-an-error, r=pietroalbinibors-1/+4
Fail if I/O error occurs during testing First known case of this is in https://github.com/rust-lang/rust/pull/72053#issuecomment-626364402 but may have happened before then. r? @pietroalbini
2020-05-11Fix clippy warningsMatthias Krüger-79/+68
Fixes clippy::{cone_on_copy, filter_next, redundant_closure, single_char_pattern, len_zero,redundant_field_names, useless_format, identity_conversion, map_clone, into_iter_on_ref, needless_return, option_as_ref_deref, unused_unit, unnecessary_mut_passed}
2020-05-11Configure cache domain for GHAMark Rousskov-0/+2
2020-05-11fix test_weak_count_locked for MiriRalf Jung-1/+5
2020-05-11Clean up E0579 explanationGuillaume Gomez-4/+6
2020-05-11update miri some moreRalf Jung-12/+7
2020-05-11Auto merge of #71953 - oli-obk:const_prop_deaggregates, r=wesleywiserbors-42/+342
Const prop aggregates even if partially or fully modified r? @wesleywiser cc @rust-lang/wg-mir-opt I'm moderately scared of this change, but I'm confident in having reviewed all the cases.
2020-05-11Make MIR typeck use `LocalDefId` and fix docsJonas Schievink-54/+50
2020-05-10update miriRalf Jung-7/+11
2020-05-10Fail if I/O error occurs during testingMark Rousskov-1/+4
2020-05-10Auto merge of #71825 - contrun:cg-option-strip, r=petrochenkovbors-38/+81
add codegen option strip closes https://github.com/rust-lang/rust/issues/71757 I don't know if the flags added here works for all linkers. I only tested on my Linux pc. I also don't know what is the best for emlinker, PtxLinker, MsvcLinker. The option for WasmLd is copied from https://aransentin.github.io/cwasm/.
2020-05-10Emit a warning when optimization fuel runs outJonas Schievink-7/+11
`eprintln!` gets swallowed by Cargo too easily.
2020-05-10Auto merge of #72074 - RalfJung:rollup-1ns58no, r=RalfJungbors-1758/+1626
Rollup of 4 pull requests Successful merges: - #71840 (Rework MIR drop tree lowering) - #71882 (Update the `cc` crate) - #71945 (Sort "implementations on foreign types" section in the sidebar) - #72043 (Add missing backtick in E0569 explanation) Failed merges: r? @ghost
2020-05-10Improve E0571 wordingGuillaume Gomez-3/+3
2020-05-10Rollup merge of #72043 - GuillaumeGomez:clean-up-e0569, r=Dylan-DPCRalf Jung-1/+1
Add missing backtick in E0569 explanation r? @Dylan-DPC
2020-05-10Rollup merge of #71945 - GuillaumeGomez:sort-impl-on-foreign-types-section, ↵Ralf Jung-8/+7
r=kinnison,ollie27 Sort "implementations on foreign types" section in the sidebar Fixes #71926. We were sorting by the ID instead of sorting by the name. They're not in the same order as the implementations but I think it makes more sense this way considering this is what we do for the methods as well. r? @kinnison cc @rust-lang/rustdoc
2020-05-10Rollup merge of #71840 - matthewjasper:drop-trees, r=oli-obkRalf Jung-1749/+1618
Rework MIR drop tree lowering This PR changes how drops are generated in MIR construction. This is the first half of the fix for #47949. Rather than generating the drops for a given unwind/break/continue/return/generator drop path as soon as they are needed, the required drops are recorded and get generated later. The motivation for this is * It simplifies the caching scheme, because it's now possible to walk up the currently scheduled drop tree to recover state. * The basic block order for MIR more closely resembles execution order. This PR also: * Highlights cleanup blocks in the graphviz MIR output. * Removes some unnecessary drop flag assignments.
2020-05-10use min_specialization for some rustc crates where it requires no changesRalf Jung-9/+9
2020-05-10doc: minus (U+2212) instead of dash (U+002D) for negative infinityTrevor Spiteri-2/+2
2020-05-10add linking option stripYI-38/+81
move strip option to "Z" add more strip options, remove strip-debuginfo-if-disabled merge strip and debuginfo
2020-05-10Auto merge of #71775 - petrochenkov:crtcfg, r=matthewjasperbors-14/+6
Enable `cfg` predicate for `target_feature = "crt-static"` only if the target supports it That's what all other `target_feature`s do.
2020-05-10Auto merge of #72020 - alexcrichton:fix-incremental-linker-plugin-lto, r=oli-obkbors-35/+71
Fix disagreeement about CGU reuse and LTO This commit fixes an issue where the codegen backend's selection of LTO disagreed with what the codegen later thought was being done. Discovered in #72006 we have a longstanding issue where if `-Clinker-plugin-lto` in optimized mode is compiled incrementally it will always panic on the second compilation. The underlying issue turned out to be that the production of the original artifact determined that LTO should not be done (because it's being postponed to the linker) but the CGU reuse selection thought that LTO was done so it was trying to load pre-LTO artifacts which were never generated. The fix here is to ensure that the logic when generating code which determines what kind of LTO is being done is shared amongst the CGU reuse decision and the backend actually doing LTO. This means that they'll both be in agreement about whether the previous compilation did indeed produce incremental pre-LTO artifacts. Closes #72006
2020-05-09Fix disagreeement about CGU reuse and LTOAlex Crichton-35/+71
This commit fixes an issue where the codegen backend's selection of LTO disagreed with what the codegen later thought was being done. Discovered in #72006 we have a longstanding issue where if `-Clinker-plugin-lto` in optimized mode is compiled incrementally it will always panic on the second compilation. The underlying issue turned out to be that the production of the original artifact determined that LTO should not be done (because it's being postponed to the linker) but the CGU reuse selection thought that LTO was done so it was trying to load pre-LTO artifacts which were never generated. The fix here is to ensure that the logic when generating code which determines what kind of LTO is being done is shared amongst the CGU reuse decision and the backend actually doing LTO. This means that they'll both be in agreement about whether the previous compilation did indeed produce incremental pre-LTO artifacts. Closes #72006
2020-05-10Auto merge of #71557 - matthewjasper:mir-asymmetric-or-pattern, r=oli-obkbors-19/+102
Fix ICE for broken or-pattern in async fn closes #71297
2020-05-09Auto merge of #69530 - Aaron1011:perf/skip-coerce-var, r=nikomatsakisbors-1/+35
[perf] Skip attempting to run coerce_unsized on an inference variable See the included comment for a detailed explanation of why this is sound.
2020-05-09Auto merge of #72041 - RalfJung:rollup-xivrvy2, r=RalfJungbors-873/+4013
Rollup of 5 pull requests Successful merges: - #69406 (upgrade chalk and use chalk-solve/chalk-ir/chalk-rust-ir) - #71185 (Move tests from `test/run-fail` to UI) - #71234 (rustllvm: Use .init_array rather than .ctors) - #71508 (Simplify the `tcx.alloc_map` API) - #71555 (Remove ast::{Ident, Name} reexports.) Failed merges: r? @ghost