about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-01-23Evaluate `output_filenames` before one of its dependencies gets stolenOli Scherer-0/+1
2023-01-23Store the gctxt instead of fetching it twice.Oli Scherer-5/+9
2023-01-23Prefer queries over Compiler methodsOli Scherer-5/+4
2023-01-23Make `output_filenames` a real queryOli Scherer-28/+92
2023-01-23Remove another unneeded use of the resolverOli Scherer-19/+23
2023-01-23Auto merge of #107215 - Dylan-DPC:rollup-zqtiufk, r=Dylan-DPCbors-136/+465
Rollup of 7 pull requests Successful merges: - #104926 (Move relationships from FulfillmentContext to Inherited) - #106854 (Add `Arc::into_inner` for safely discarding `Arc`s without calling the destructor on the inner type.) - #107108 (Consider doc(alias) when providing typo suggestions) - #107186 (rustdoc: Use correct pseudo-element selector) - #107192 (Add myself to the mailmap) - #107195 (Fix typo in universal_regions.rs comment) - #107203 (Suggest remove deref for type mismatch) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-23Rollup merge of #107203 - chenyukang:yukang/fix-106496-remove-deref, ↵Dylan DPC-5/+144
r=compiler-errors Suggest remove deref for type mismatch Fixes #106496
2023-01-23Rollup merge of #107195 - smoelius:patch-2, r=NilstriebDylan DPC-1/+1
Fix typo in universal_regions.rs comment
2023-01-23Rollup merge of #107192 - fmease:mailmap-me-at-fmease-dev, r=albertlarsan68Dylan DPC-0/+1
Add myself to the mailmap
2023-01-23Rollup merge of #107186 - GuillaumeGomez:correct-pseudo-element-selector, ↵Dylan DPC-4/+4
r=notriddle rustdoc: Use correct pseudo-element selector As explained [here](https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements#syntax). I wrote it on top of #107152 so we'll need to wait for this one to be merged first. r? `@notriddle`
2023-01-23Rollup merge of #107108 - sulami:issue-83968-doc-alias-typo-suggestions, ↵Dylan DPC-13/+77
r=compiler-errors Consider doc(alias) when providing typo suggestions This means that ```rust impl Foo { #[doc(alias = "quux")] fn bar(&self) {} } fn main() { (Foo {}).quux(); } ``` will suggest `bar`. This currently uses the "there is a method with a similar name" help text, because the point where we choose and emit a suggestion is different from where we gather the suggestions. Changes have mainly been made to the latter. The selection code will now fall back to aliased candidates, but generally only if there is no candidate that matches based on the existing Levenshtein methodology. Fixes #83968.
2023-01-23Rollup merge of #106854 - steffahn:drop_linear_arc_rebased, r=Mark-SimulacrumDylan DPC-0/+177
Add `Arc::into_inner` for safely discarding `Arc`s without calling the destructor on the inner type. ACP: rust-lang/libs-team#162 Reviving #79665. I want to get this merged this time; this does not contain changes (apart from very minor changes in comments/docs). See #79665 for further description of the PR. The only “unresolved” points that led to that PR being closed, AFAICT, were * The desire to also implement a `Rc::into_inner` function * however, this can very well also happen as a subsequent PR * Possible need for further discussion on the naming “`into_inner`” (?) * `into_inner` seems fine to me; also, this PR introduces unstable API, and names can be changed later, too * ~~I don't know if a tracking issue for the feature flag is supposed to be opened before or after this PR gets merged (if *before*, then I can add the issue number to the `#[unstable…]` attribute)~~ There is a [tracking issue](https://github.com/rust-lang/rust/issues/106894) now. I say “unresolved” in quotation marks because from my point of view, if reviewers agree, the PR can be merged immediately and as-is :-)
2023-01-23Rollup merge of #104926 - spastorino:calculate_diverging_fallback-cleanups, ↵Dylan DPC-113/+61
r=lcnr Move relationships from FulfillmentContext to Inherited r? `@lcnr`
2023-01-23Auto merge of #107044 - cuviper:more-llvm-ci, r=Mark-Simulacrumbors-0/+152
ci: add runners for vanilla LLVM 14 and 15 As discussed in [zulip #t-infra][1] -- r? Mark-Simulacrum [1]: https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/testing.20multiple.20llvm.20versions
2023-01-23Consider doc(alias) when providing typo suggestionsRobin Schroer-13/+77
This means that ```rust impl Foo { #[doc(alias = "quux")] fn bar(&self) {} } fn main() { (Foo {}).quux(); } ``` will suggest `bar`. This currently uses the "there is a method with a similar name" help text, because the point where we choose and emit a suggestion is different from where we gather the suggestions. Changes have mainly been made to the latter. The selection code will now fall back to aliased candidates, but generally only if there is no candidate that matches based on the existing Levenshtein methodology. Fixes #83968.
2023-01-23Auto merge of #106981 - joboet:std_remove_box_syntax, r=thomccbors-59/+35
Do not use box syntax in `std` See #94970 and #49733. About half of the `box` instances in `std` do not even need to allocate, the other half can simply be replaced with `Box::new`. `@rustbot` label +T-libs r? rust-lang/libs
2023-01-22Auto merge of #106975 - tmiasko:basic-blocks-cache, r=cjgillotbors-296/+74
Refactor basic blocks control flow caches No functional changes.
2023-01-22Auto merge of #106827 - alexcrichton:update-llvm-to-15.0.7, r=cuviperbors-0/+0
Update LLVM to 15.0.7 This commit pulls in rust-lang/llvm-project#143 which updates the LLVM version used by rustc to 15.0.7, namely pulling in https://reviews.llvm.org/D136110 which is needed for some work I'm working on with wasm.
2023-01-23Fix #106496, suggest remove deref for type mismatchyukang-5/+144
2023-01-22fn-trait-closure test now pass on new solverSantiago Pastorino-8/+1
2023-01-22Rename relationships to infer_var_infoSantiago Pastorino-12/+12
2023-01-22Move relationships::update to Inherited::update_infer_var_infoSantiago Pastorino-53/+42
2023-01-22Store relationships on InherentSantiago Pastorino-61/+28
2023-01-22Remove duplicated debug callSantiago Pastorino-1/+0
2023-01-22Auto merge of #107187 - matthiaskrgr:rollup-lvwzlg2, r=matthiaskrgrbors-164/+484
Rollup of 8 pull requests Successful merges: - #107102 (Implement some more predicates in the new solver) - #107111 (Fix missing arguments issues and copy-paste bug for fluent) - #107114 (Add note about absolute paths to Path::join) - #107127 (Enable sanitizers for s390x-linux) - #107152 (Migrate scraped-examples top and bottom "borders" to CSS variables) - #107170 (Add myself to .mailmap) - #107174 (rustdoc: Use `DefId(Map,Set)` instead of `FxHash(Map,Set)`) - #107180 (Remove unnecessary `&format!`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-22Update universal_regions.rsSamuel Moelius-1/+1
2023-01-22add fmease to mailmapLeón Orell Valerian Liehr-0/+1
2023-01-22Rollup merge of #107180 - nvzqz:rm-fmt-ref, r=joshtriplettMatthias Krüger-41/+41
Remove unnecessary `&format!` These were likely from before the `PartialEq<str>` impl for `&String`.
2023-01-22Rollup merge of #107174 - petrochenkov:defidoc, r=notriddleMatthias Krüger-65/+55
rustdoc: Use `DefId(Map,Set)` instead of `FxHash(Map,Set)` Not all uses are converted, a few cases iterating through maps/sets and requiring nontrivial changes are kept. cc https://github.com/rust-lang/rust/pull/106977
2023-01-22Rollup merge of #107170 - albertlarsan68:update-mailmap, r=compiler-errorsMatthias Krüger-0/+1
Add myself to .mailmap
2023-01-22Rollup merge of #107152 - GuillaumeGomez:migrate-to-css-var, r=notriddleMatthias Krüger-21/+48
Migrate scraped-examples top and bottom "borders" to CSS variables r? `@notriddle`
2023-01-22Rollup merge of #107127 - uweigand:s390x-sanitizer, r=Mark-SimulacrumMatthias Krüger-5/+22
Enable sanitizers for s390x-linux Include sanitizers supported by LLVM on s390x (asan, lsan, msan, tsan) in the target definition, as well as in the compiletest supported list. Build sanitizer runtime for the target. Enable sanitizers in the CI.
2023-01-22Rollup merge of #107114 - Erk-:add-absolute-note-to-path-join, r=m-ou-seMatthias Krüger-0/+3
Add note about absolute paths to Path::join The note already exists on `PathBuf::push`, but I think it is good to have it on `Path::join` as well since it can cause issues if you are not careful with your input.
2023-01-22Rollup merge of #107111 - chenyukang:yukang/fix-107090-fluent-parameters, ↵Matthias Krüger-14/+223
r=petrochenkov Fix missing arguments issues and copy-paste bug for fluent Fixes #107090
2023-01-22Rollup merge of #107102 - compiler-errors:new-solver-new-candidats-4, r=lcnrMatthias Krüger-18/+91
Implement some more predicates in the new solver Implement a few more goals. The subtype goal specifically is important, since it's required for this code to compile: ``` fn main() { let mut x = vec![]; x.push(1i32); } ``` (I think we emit a subtype goal here because of coercion). Drive-by: Also implements `--compare-mode=next-solver` -- I've been using this locally a lot to find out what works and what doesn't. I'm also happy to split this out into another PR. r? `@lcnr`
2023-01-22Auto merge of #107137 - Mark-Simulacrum:169, r=Mark-Simulacrumbors-1/+1
Bump to 1.69.0 r? `@Mark-Simulacrum`
2023-01-22Use correct pseudo-element selectorGuillaume Gomez-4/+4
2023-01-22Auto merge of #107185 - compiler-errors:rollup-wkomjma, r=compiler-errorsbors-51/+577
Rollup of 8 pull requests Successful merges: - #103418 (Add `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` to future-incompat report) - #106113 (llvm-wrapper: adapt for LLVM API change) - #106144 (Improve the documentation of `black_box`) - #106578 (Label closure captures/generator locals that make opaque types recursive) - #106749 (Update cc to 1.0.77) - #106935 (Fix `SingleUseLifetime` ICE) - #107015 (Re-enable building rust-analyzer on riscv64) - #107029 (Add new bootstrap members to triagebot.toml) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-01-21Rollup merge of #107029 - albertlarsan68:patch-2, r=Mark-SimulacrumMichael Goulet-1/+3
Add new bootstrap members to triagebot.toml ```@ozkanonur``` if you want to be assigned to review PRs too, just post a message to this thread. Should a `T-bootstrap` label be created, since `src/tools/tidy` is assigned to the `bootstrap` members, but labeled `A-testsuite` (and not `A-bootstrap`) ? cc ```@jyn514```
2023-01-21Rollup merge of #107015 - cuviper:ra-riscv64, r=Mark-SimulacrumMichael Goulet-6/+0
Re-enable building rust-analyzer on riscv64 It was disabled in #75103 due to an LLVM bug, but followup comments have confirmed that it builds fine on Fedora with LLVM 15. r? ```@Mark-Simulacrum``` cc ```@matklad``` ```@davidlt```
2023-01-21Rollup merge of #106935 - TaKO8Ki:fix-104440, r=cjgillotMichael Goulet-25/+174
Fix `SingleUseLifetime` ICE Fixes #104440 cc: ``@matthiaskrgr``
2023-01-21Rollup merge of #106749 - glandium:dwarf, r=Mark-SimulacrumMichael Goulet-2/+2
Update cc to 1.0.77 Fixes (without a test) #98746.
2023-01-21Rollup merge of #106578 - compiler-errors:recursive-opaque-closure, r=TaKO8KiMichael Goulet-6/+99
Label closure captures/generator locals that make opaque types recursive cc https://github.com/rust-lang/rust/issues/46415#issuecomment-1374665828
2023-01-21Rollup merge of #106144 - tgross35:patch-1, r=Mark-SimulacrumMichael Goulet-0/+69
Improve the documentation of `black_box` There don't seem to be many great resources on how `black_box` should be used, so I added some information here
2023-01-21Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikicMichael Goulet-11/+9
llvm-wrapper: adapt for LLVM API change No functional changes intended. The LLVM commit https://github.com/llvm/llvm-project/commit/e6b02214c68df2c9f826e02310c9352ac652e456 added `TargetExtTyID` to the `TypeID` enum. This adapts `RustWrapper` accordingly.
2023-01-21Rollup merge of #103418 - Aaron1011:macro-semicolon-future-incompat, r=davidtwcoMichael Goulet-0/+221
Add `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` to future-incompat report See https://github.com/rust-lang/rust/issues/79813 for a discussion of this lint. This has been warn-by-default for over a year, so adding it to the future-incompat report should help to find libraries that haven't yet updated.
2023-01-22Auto merge of #107133 - pnkfelix:revert-pr-84022-for-issue-106337, ↵bors-49/+238
r=Mark-Simulacrum Revert "Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error" This reverts commit 7d82cadd97acc66993b69304c5a1a04ef7d1fa36 aka PR #84022 I am doing this to buy us some time with respect to issue #106337 w.r.t. the 1.67 release.
2023-01-21Remove unnecessary `&format!`Nikolai Vazquez-41/+41
These were likely from before the `PartialEq<str>` impl for `&String`.
2023-01-22rustdoc: Use `DefId(Map,Set)` instead of `FxHash(Map,Set)`Vadim Petrochenkov-65/+55
Not all uses are converted, a few cases iterating through maps/sets and requiring nontrivial changes are kept.
2023-01-21Auto merge of #106948 - cuviper:ci-mingw-check, r=nikicbors-145/+72
ci: upgrade mingw-check to ubuntu:22.04