about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-02-10Update the minimum external LLVM to 14Josh Stone-205/+54
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-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-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-10fix rustc_log doctestRalf Jung-3/+3
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-10create symlink only for non-windows operating systemsZephaniah Ong-3/+6
2023-02-10Auto merge of #107870 - matthiaskrgr:rollup-3z1q4rm, r=matthiaskrgrbors-120/+112
Rollup of 6 pull requests Successful merges: - #107043 (Support `true` and `false` as boolean flag params) - #107831 (Query refactoring) - #107841 (Handled snap curl issue inside Rust) - #107852 (rustdoc: remove unused fn parameter `tab`) - #107861 (Sync release notes for 1.67.1) - #107863 (Allow multiple candidates with same response in new solver) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-02-10Rollup merge of #107863 - compiler-errors:new-solver-multiple-candidates, ↵Matthias Krüger-15/+8
r=jackh726 Allow multiple candidates with same response in new solver Treat >1 candidates as *not* ambiguous if they return the same response.
2023-02-10Rollup merge of #107861 - cuviper:relnotes-1.67.1, r=Mark-SimulacrumMatthias Krüger-0/+7
Sync release notes for 1.67.1 Closes #107859.
2023-02-10Rollup merge of #107852 - notriddle:notriddle/rm-tab, r=GuillaumeGomezMatthias Krüger-7/+5
rustdoc: remove unused fn parameter `tab`
2023-02-10Rollup merge of #107841 - tharunsuresh-code:snap_curl, r=ozkanonurMatthias Krüger-2/+2
Handled snap curl issue inside Rust
2023-02-10Rollup merge of #107831 - nnethercote:query-refactoring, r=oli-obkMatthias Krüger-55/+49
Query refactoring Just some cleanups I found when learning about the query system. Best reviewed one commit at a time. r? `@oli-obk`
2023-02-10Rollup merge of #107043 - Nilstrieb:true-and-false-is-false, r=wesleywiserMatthias Krüger-41/+41
Support `true` and `false` as boolean flag params Implements [MCP 577](https://github.com/rust-lang/compiler-team/issues/577).
2023-02-10Auto merge of #101680 - jackh726:implied-cleanup, r=lcnrbors-106/+144
Fix implied outlives bounds logic for projections The logic here is subtly wrong. I put a bit of an explanation in a767d7b5165cea8ee5cbe494a4a636c50ef67c9c. TL;DR: we register outlives predicates to be proved, because wf code normalizes projections (from the unnormalized types) to type variables. This causes us to register those as constraints instead of implied. This was "fine", because we later added that implied bound in the normalized type, and delayed registering constraints. When I went to cleanup `free_region_relations` to *not* delay adding constraints, this bug was uncovered. cc. `@aliemjay` because this caused your test failure in #99832 (I only realized as I was writing this) r? `@nikomatsakis`
2023-02-09Allow wasi-libc to initialize its environment variables lazily.Dan Gohman-1/+7
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-09Update implied_outlives_bounds to properly register implied bounds behind ↵Jack Huey-41/+60
normalization
2023-02-09Cleanup free_region_relations a bitJack Huey-71/+90
2023-02-10Multiple candidates with same response is not ambiguousMichael Goulet-15/+8
2023-02-10Auto merge of #102963 - ilammy:xray-basic, r=estebankbors-9/+312
Add `-Z instrument-xray` flag Implement MCP https://github.com/rust-lang/compiler-team/issues/561, adding `-Z instrument-xray` flag which enables XRay instrumentation in LLVM.
2023-02-09Release 1.67.1Josh Stone-0/+7
2023-02-09Auto merge of #107853 - Dylan-DPC:rollup-macf1qo, r=Dylan-DPCbors-265/+437
Rollup of 6 pull requests Successful merges: - #107648 (unused-lifetimes: don't warn about lifetimes originating from expanded code) - #107655 (rustdoc: use the same URL escape rules for fragments as for examples) - #107659 (test: snapshot for derive suggestion in diff files) - #107786 (Implement some tweaks in the new solver) - #107803 (Do not bring trait alias supertraits into scope) - #107815 (Disqualify `auto trait` built-in impl in new solver if explicit `impl` exists) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-02-09Rollup merge of #107815 - compiler-errors:new-solver-no-auto-if-impl, r=lcnrDylan DPC-0/+22
Disqualify `auto trait` built-in impl in new solver if explicit `impl` exists
2023-02-09Rollup merge of #107803 - ↵Dylan DPC-17/+52
eggyal:do_not_bring_trait_alias_supertraits_into_scope, r=compiler-errors Do not bring trait alias supertraits into scope Fixes #107747 cc #41517
2023-02-09Rollup merge of #107786 - compiler-errors:new-solver-some-tweaks, r=lcnrDylan DPC-144/+129
Implement some tweaks in the new solver I've been testing the new solver on some small codebases, and these are a few small changes I've needed to make. The most "controversial" here is implementing `trait_candidate_should_be_dropped_in_favor_of`, which I just implemented to always return false. This surprisingly allows some code to compile, without us having to actually decide on any semantics yet. r? `@rust-lang/initiative-trait-system-refactor`
2023-02-09Rollup merge of #107659 - bvanjoi:issue-107649, r=estebankDylan DPC-11/+135
test: snapshot for derive suggestion in diff files fixed #107649
2023-02-09Rollup merge of #107655 - notriddle:notriddle/small-url-encode, r=GuillaumeGomezDylan DPC-81/+71
rustdoc: use the same URL escape rules for fragments as for examples Carries over improvements from #107284
2023-02-09Rollup merge of #107648 - matthiaskrgr:unused_lifetime_104432_fix, r=cjgillotDylan DPC-12/+28
unused-lifetimes: don't warn about lifetimes originating from expanded code previously, we would warn like this: ```` warning: lifetime parameter `'s` never used --> /tmp/unusedlif/code.rs:6:62 | 5 | #[derive(Clone)] | - help: elide the unused lifetime 6 | struct ShimMethod4<T: Trait2 + 'static>(pub &'static dyn for<'s> Fn(&'s mut T::As)); | ^^ | = note: requested on the command line with `-W unused-lifetimes` ```` Fixes #104432
2023-02-09rustdoc: remove unused fn parameter `tab`Michael Howell-7/+5
2023-02-09Disqualify auto-trait builtin impl in new solver if impl existsMichael Goulet-0/+22
2023-02-09Move winnowing to assemblyMichael Goulet-140/+81
2023-02-09Implement a dummy drop-in-favor-of for the new solverMichael Goulet-28/+65
2023-02-09Use elaborated item bounds for alias typesMichael Goulet-4/+13
2023-02-09Fix subst issue with object_ty_for_traitMichael Goulet-5/+3
2023-02-09test: snapshot for derive suggestion in diff filesbohan-11/+135
2023-02-09Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3bors-331/+640
Sync rustc_codegen_cranelift * Couple of bugfixes * A significant runtime perf improvement * Implemented sym and const support for inline asm * Improved self profile integration r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler