about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-02-11Rollup merge of #107895 - matthiaskrgr:cl, r=compiler-errorsMatthias Krüger-5/+3
remove redundant clones
2023-02-11Rollup merge of #107873 - zephaniahong:issue-107832-fix, r=albertlarsan68Matthias Krüger-0/+4
Emit JSON output for the building of bootstrap itself Fixes #107832 . Main changes are from line 792 onwards. Other changes are due to the flake8 formatter. Let me know if I should not use the formatter.
2023-02-11Rollup merge of #107864 - notriddle:notriddle/rustdoc-write-stutter, ↵Matthias Krüger-15/+12
r=GuillaumeGomez rustdoc: clean up `write!` calls with less stuttering
2023-02-11Rollup merge of #107657 - chenyukang:yukang/add-only-modified, r=albertlarsan68Matthias Krüger-28/+139
Add only modified subcommand for compiletest r? `@jyn514` From [discussion](https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/Add.20subcommand.20to.20retest.20all.20tests.20with.20different.20results)
2023-02-11Auto merge of #94857 - petrochenkov:doclink2, r=oli-obkbors-873/+764
Resolve documentation links in rustc and store the results in metadata This PR implements MCP https://github.com/rust-lang/compiler-team/issues/584. Doc links are now resolved in rustc and stored into metadata, so rustdoc simply retrieves them through a query (local or extern), Code that is no longer used is removed, and some code that no longer needs to be public is privatized. The removed code includes resolver cloning, so this PR fixes https://github.com/rust-lang/rust/issues/83761.
2023-02-11Auto merge of #107919 - Dylan-DPC:rollup-fkl9swa, r=Dylan-DPCbors-70/+320
Rollup of 9 pull requests Successful merges: - #105019 (Add parentheses properly for borrowing suggestion) - #106001 (Stop at the first `NULL` argument when iterating `argv`) - #107098 (Suggest function call on pattern type mismatch) - #107490 (rustdoc: remove inconsistently-present sidebar tooltips) - #107855 (Add a couple random projection tests for new solver) - #107857 (Add ui test for implementation on projection) - #107878 (Clarify `new_size` for realloc means bytes) - #107888 (revert #107074, add regression test) - #107900 (Zero the `REPARSE_MOUNTPOINT_DATA_BUFFER` header) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-02-11Auto merge of #107507 - BoxyUwU:deferred_projection_equality, r=lcnrbors-163/+585
Implement `deferred_projection_equality` for erica solver Somewhat of a revival of #96912. When relating projections now emit an `AliasEq` obligation instead of attempting to determine equality of projections that may not be as normalized as possible (i.e. because of lazy norm, or just containing inference variables that prevent us from resolving an impl). Only do this when the new solver is enabled
2023-02-11Rollup merge of #107900 - ChrisDenton:zero-header, r=thomccDylan DPC-0/+2
Zero the `REPARSE_MOUNTPOINT_DATA_BUFFER` header Makes sure the full header is correctly initialized. Fixes #107884
2023-02-11Rollup merge of #107888 - lcnr:opaque-ty-validate, r=wesleywiserDylan DPC-2/+14
revert #107074, add regression test fixes #107346
2023-02-11Rollup merge of #107878 - workingjubilee:new-size-means-bytes, r=scottmcmDylan DPC-4/+5
Clarify `new_size` for realloc means bytes Minor docs fix requested by https://github.com/rust-lang/rust/issues/107875
2023-02-11Rollup merge of #107857 - GuillaumeGomez:ui-test-impl-projections, r=oli-obkDylan DPC-0/+30
Add ui test for implementation on projection The error in full can be seen in https://github.com/rust-lang/rust/pull/107263 and is part of why the PR is blocked (it still requires the approval from the team for supporting it). r? ``@oli-obk``
2023-02-11Rollup merge of #107855 - compiler-errors:new-solver-random-tests, r=lcnrDylan DPC-0/+71
Add a couple random projection tests for new solver Self-explanatory, they're just some cases that have been on my mind in the past (especially `tests/ui/traits/new-solver/param-candidate-doesnt-shadow-project.rs`).
2023-02-11Rollup merge of #107490 - notriddle:notriddle/rm-sidebar-tooltip, ↵Dylan DPC-41/+4
r=GuillaumeGomez rustdoc: remove inconsistently-present sidebar tooltips Discussed in https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Inconsistent.20sidebar.20tooltips/near/323565625
2023-02-11Rollup merge of #107098 - compiler-errors:pat-mismatch-fn-call, r=lcnrDylan DPC-10/+68
Suggest function call on pattern type mismatch Fixes #101208 This could definitely be generalized to support more suggestions in pattern matches. We can't use all of [`FnCtxt::emit_type_mismatch_suggestions`](https://doc.rust-lang.org/nightly/nightly-rustc/rustc_hir_typeck/fn_ctxt/struct.FnCtxt.html#method.emit_type_mismatch_suggestions), but it's on my to-do list to play around with more suggestions that would be productive in this position.
2023-02-11Rollup merge of #106001 - sdroege:glibc-skip-over-null-argv, r=ChrisDentonDylan DPC-6/+22
Stop at the first `NULL` argument when iterating `argv` Some C commandline parsers (e.g. GLib and Qt) are replacing already handled arguments in `argv` with `NULL` and move them to the end. That means that `argc` might be bigger than the actual number of non-`NULL` pointers in `argv` at this point. To handle this we simply stop iterating at the first `NULL` argument. `argv` is also guaranteed to be `NULL`-terminated so any non-`NULL` arguments after the first `NULL` can safely be ignored. Fixes https://github.com/rust-lang/rust/issues/105999
2023-02-11Rollup merge of #105019 - chenyukang:yukang/fix-104961-borrow, r=cjgillotDylan DPC-7/+104
Add parentheses properly for borrowing suggestion Fixes #104961
2023-02-11emit JSON output for building of bootstrap itselfZephaniah Ong-0/+4
2023-02-10Auto merge of #85158 - JulianKnodt:array_const_val, r=cjgillotbors-0/+789
Mir-Opt for copying enums with large discrepancies I have been meaning to make this for quite a while, based off of this [hackmd](https://hackmd.io/`@ft4bxUsFT5CEUBmRKYHr7w/rJM8BBPzD).` I'm not sure where to put this opt now that I've made it, so I'd appreciate suggestions on that! It's also one long chain of statements, not sure if there's a more friendly format to make it. r? `@tmiasko` I would `r` oli but he's on leave so he suggested I `r` tmiasko or wesleywiser.
2023-02-10Auto merge of #107886 - flip1995:clippyup, r=Manishearthbors-566/+2200
Update Clippy r? `@Manishearth` One day late. Sorry forgot about it yesterday :|
2023-02-10Suggest fn call on pattern type mismatchMichael Goulet-10/+68
2023-02-10Zero the `REPARSE_MOUNTPOINT_DATA_BUFFER` headerChris Denton-0/+2
Makes sure the full header is correctly initialized, including reserve parameters.
2023-02-10Add a couple random projection testsMichael Goulet-0/+71
2023-02-10cleanup and fix namingyukang-10/+13
2023-02-10remove redundant clonesMatthias Krüger-5/+3
2023-02-10add only modified for compiletestyukang-29/+137
2023-02-10Auto merge of #107889 - matthiaskrgr:rollup-c0d4al0, r=matthiaskrgrbors-43/+88
Rollup of 6 pull requests Successful merges: - #107789 (Avoid exposing type parameters and implementation details sourced from macro expansions) - #107836 (Handle properly when there is no crate attrs) - #107839 (avoid duplicating the RUSTC_LOG env var name) - #107866 (Allow wasi-libc to initialize its environment variables lazily.) - #107876 (create symlink only for non-windows operating systems) - #107882 (Cleanup typos in en_US/borrowck.ftl) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-02-10Add testsBoxy-0/+188
2023-02-10implement `compute_alias_eq_goal`Boxy-14/+163
2023-02-10emit `AliasEq` when relating type and const aliasesBoxy-147/+157
2023-02-10Rollup merge of #107882 - workingjubilee:fix-en-borrowck-ftl-typos, ↵Matthias Krüger-3/+3
r=compiler-errors Cleanup typos in en_US/borrowck.ftl Noticed these while opening https://github.com/rust-lang/rust/pull/107881.
2023-02-10Rollup merge of #107876 - zephaniahong:issue-107547-fix, r=albertlarsan68Matthias Krüger-3/+6
create symlink only for non-windows operating systems Follow up on #107834 It's my first time using the #cfg attribute. Did I use it correctly? Thank you!
2023-02-10Rollup merge of #107866 - sunfishcode:sunfishcode/wasi-lazy-environ, ↵Matthias Krüger-1/+7
r=workingjubilee Allow wasi-libc to initialize its environment variables lazily. Use `__wasilibc_get_environ()` to read the environment variable list from wasi-libc instead of using `environ`. `environ` is a global variable which effectively requires wasi-libc to initialize the environment variables eagerly, and `__wasilibc_get_environ()` is specifically designed to be an alternative that lets wasi-libc intiailize its environment variables lazily. This should have the side effect of fixing at least some of the cases of #107635.
2023-02-10Rollup merge of #107839 - RalfJung:rustc-log, r=oli-obkMatthias Krüger-9/+3
avoid duplicating the RUSTC_LOG env var name We also have the env var name here: https://github.com/rust-lang/rust/blob/c40919b7a75f93ed7ef040361e82c656d246d41e/compiler/rustc_driver_impl/src/lib.rs#L1247-L1251 Redundantly having this name twice doesn't seem great. Looks like `rustc_log::init_rustc_env_logger` is dead code anyway. r? `@oli-obk`
2023-02-10Rollup merge of #107836 - chenyukang:yukang/fix-107822, r=oli-obkMatthias Krüger-1/+10
Handle properly when there is no crate attrs Fixes #107822 r? `@oli-obk`
2023-02-10Rollup merge of #107789 - jieyouxu:issue-107745, r=lcnrMatthias Krüger-26/+59
Avoid exposing type parameters and implementation details sourced from macro expansions Fixes #107745. ~~I would like to **request some guidance** for this issue, because I don't think this is a good fix (a band-aid at best).~~ ### The Problem The code ```rust fn main() { println!("{:?}", []); } ``` gets desugared into (`rustc +nightly --edition=2018 issue-107745.rs -Z unpretty=hir`): ```rust #[prelude_import] use std::prelude::rust_2018::*; #[macro_use] extern crate std; fn main() { { ::std::io::_print(<#[lang = "format_arguments"]>::new_v1(&["", "\n"], &[<#[lang = "format_argument"]>::new_debug(&[])])); }; } ``` so the diagnostics code tries to be as specific and helpful as possible, and I think it finds that `[]` needs a type parameter and so does `new_debug`. But since `[]` doesn't have an origin for the type parameter definition, it points to `new_debug` instead and leaks the internal implementation detail since all `[]` has is an type inference variable. ### ~~The Bad Fix~~ ~~This PR currently tries to fix the problem by bypassing the generated function `<#[lang = "format_argument"]>::new_debug` to avoid its generic parameter (I think it is auto-generated from the argument `[_; 0]`?) from getting collected as an `InsertableGenericArg`. This is problematic because it also prevents the help from getting displayed.~~ ~~I think this fix is not ideal and hard-codes the format generated code pattern, but I can't think of a better fix. I have tried asking on Zulip but no responses there yet.~~
2023-02-10revert #107074lcnr-2/+14
2023-02-10fix rustc_log doctestRalf Jung-3/+3
2023-02-10Add test for implementation on projectionGuillaume Gomez-0/+30
2023-02-10add `AliasEq` to `PredicateKind`Boxy-5/+80
2023-02-10Update Cargo.lockPhilipp Krones-6/+8
2023-02-10Merge commit '0f7558148c22e53cd4608773b56cdfa50dcdeac3' into clippyupPhilipp Krones-560/+2192
2023-02-10Auto merge of #10314 - flip1995:clippy_dev-cli-fix, r=xFrednetbors-14/+14
Fix CLI of clippy_dev Clap was updated in rust-lang/rust-clippy#10270, which broke the command line of clippy_dev. This swaps out contains_id, which now returns always true in the places it was used with get_flag. r? `@xFrednet` This should also fix https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/.60cargo.20dev.20setup.20intellij.60.20is.20degraded/near/325770850 changelog: none
2023-02-10Fix CLI of clippy_devPhilipp Krones-14/+14
Clap was updated in rust-lang/rust-clippy#10270, which broke the command line of clippy_dev. This swaps out contains_id, which now returns always true in the places it was used with get_flag.
2023-02-10Auto merge of #10313 - flip1995:rustup, r=flip1995bors-244/+285
Rustup r? `@ghost` changelog: none
2023-02-10Bump nightly version -> 2023-02-10Philipp Krones-1/+1
2023-02-10Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-589/+2218
2023-02-10Cleanup typos in en_US/borrowck.ftlJubilee-3/+3
2023-02-10Auto merge of #107652 - estebank:re_error, r=oli-obkbors-227/+248
Introduce `ReError` CC #69314 r? `@nagisa`
2023-02-10add test for no input fileyukang-1/+10
2023-02-09Clarify `new_size` for realloc means bytesJubilee-4/+5