about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2020-05-12Pointer printing: do not print 0 offsetRalf Jung-99/+107
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-11Clean up E0579 explanationGuillaume Gomez-4/+6
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-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
2020-05-09display `ConstKind::Param`Bastian Kauschke-14/+16
2020-05-09Add missing backtick in E0569 explanationGuillaume Gomez-1/+1
2020-05-09Sort "implementations on foreign types" section in the sidebarGuillaume Gomez-8/+7
2020-05-09Rollup merge of #71555 - cjgillot:nameless, r=matthewjasperRalf Jung-592/+539
Remove ast::{Ident, Name} reexports. The reexport of `Symbol` into `Name` confused me.
2020-05-09Rollup merge of #71508 - oli-obk:alloc_map_unlock, r=RalfJungRalf Jung-107/+115
Simplify the `tcx.alloc_map` API This PR changes all functions that require manually locking the `alloc_map` to functions on `TyCtxt` that lock the map internally. In the same step we make the `TyCtxt::alloc_map` field private. r? @RalfJung
2020-05-09Rollup merge of #71234 - maurer:init-array, r=cuviperRalf Jung-1/+23
rustllvm: Use .init_array rather than .ctors LLVM TargetMachines default to using the (now-legacy) .ctors representation of init functions. Mixing .ctors and .init_array representations can cause issues when linking with lld. This happens in practice for: * Our profiling runtime which is currently implicitly built with .init_array since it is built by clang, which sets this field. * External C/C++ code that may be linked into the same process. Fixes: #71233
2020-05-09Rollup merge of #71185 - JohnTitor:run-fail, r=petrochenkovRalf Jung-152/+537
Move tests from `test/run-fail` to UI Fixes #65440 cc #65865 #65506 r? @nikomatsakis
2020-05-09Rollup merge of #69406 - jackh726:chalk-upgrade, r=nikomatsakisRalf Jung-21/+2799
upgrade chalk and use chalk-solve/chalk-ir/chalk-rust-ir Reintegrate chalk into rustc. r? @nikomatsakis cc. @rust-lang/wg-traits
2020-05-09Address review commentsMatthew Jasper-7/+11
2020-05-09Bless mir-opt testsMatthew Jasper-974/+820
2020-05-09Add some more commentsMatthew Jasper-7/+22
2020-05-09Auto merge of #72030 - matthiaskrgr:submodule_upd, r=Mark-Simulacrumbors-0/+0
submodules: update cargo from f534844c2 to cb06cb269 Changes: ```` more clippy fixes Document that bench is unstable in the man page. Update assertions in LTO calculations Updated comments in resolve.rs to reflect actual data strcture used. Try to remove secrets from http.debug. Revert always computing filename Metadata. clean -p: call `get_many` once. Implement new `clean -p` using globs. Rework how Cargo computes the rustc file outputs. Add CrateType to replace LibKind. ```` I'd like to get the fix for https://github.com/rust-lang/cargo/issues/8223 into nightly asap. r? @ehuss
2020-05-09Reduce the number of drop-flag assignments in unwind pathsMatthew Jasper-39/+12
2020-05-09Defer creating drop trees in MIR lowering until leaving that scopeMatthew Jasper-735/+766
2020-05-09Auto merge of #71994 - jyn514:path-independent, r=Mark-Simulacrumbors-2/+11
x.py: allow configuring the build directory This allows configuring the directory for build artifacts, instead of having it always be `./build`. This means you can set it to a constant location, letting you reuse the same cache while working in several different directories. The configuration lives in `config.toml` under `build.build-dir`. By default, it keeps the existing default of `./build`, but it can be configured to any relative or absolute path. Additionally, it allows making outputs relative to the root of the git repository using `$ROOT`. r? @Mark-Simulacrum
2020-05-09Auto merge of #72036 - Dylan-DPC:rollup-ca8b0ql, r=Dylan-DPCbors-289/+414
Rollup of 8 pull requests Successful merges: - #70834 (Add core::future::{pending,ready}) - #71839 (Make BTreeMap::new and BTreeSet::new const) - #71890 (Simplify the error Registry methods a little) - #71942 (Shrink `LocalDecl`) - #71947 (Dead-code pass highlights too much of impl functions) - #71981 (Fix `strip-priv-imports` pass name in the rustdoc documentation) - #72018 (Fix canonicalization links) - #72031 (Better documentation for io::Read::read() return value) Failed merges: r? @ghost
2020-05-09Rollup merge of #72031 - Elinvynia:master, r=Mark-SimulacrumDylan DPC-0/+5
Better documentation for io::Read::read() return value Aims to provide the clarity requested in #70360