about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2023-04-04Rollup merge of #109937 - compiler-errors:rustdoc-rpit-cant-be-documented, ↵Michael Goulet-1/+24
r=GuillaumeGomez Don't collect return-position impl traits for documentation #104889 modified the rustdoc ast collection step to use a HIR visitor, which more thoroughly walks the HIR tree. that means that we're going to encounter inner items (incl return-position impl traits and async fn opaque futures) that are not possible to document. FIxes (but does not close due to being a beta regression) #109931 r? `@GuillaumeGomez`
2023-04-04Rollup merge of #109919 - fmease:rustdoc-fix-issue-109488, r=notriddleMichael Goulet-16/+33
rustdoc: escape GAT args in more cases Fixes #109488. Previously we printed the *un*escaped form of GAT arguments not only when `f.alternate()` was true but *also* when we failed to compute the URL of the trait associated with the type projection, i.e. when `href(…)` returned an `Err(_)`. In this PR the argument printing logic is entirely separate from the link resolution code above as it should be. Further, we now only try to compute the URL if the HTML format was requested with `!f.alternate()`. Before, we would sometimes compute the `href` only to throw it away later.
2023-04-04Rollup merge of #109914 - compiler-errors:rtn-bad-parens, r=oli-obkMichael Goulet-12/+64
Emit feature error for parenthesized generics in associated type bounds We don't actually do AST->HIR lowering with some `-Zunpretty` flags, so it's not correct to just delay a bug instead of emitting a feature error. Some diagnostics regressed because of the new errors, but oh well. :shrug: Fixes #109898
2023-04-04Rollup merge of #109913 - scottmcm:index-slice, r=WaffleLapkinMichael Goulet-7/+17
Doc-comment `IndexVec::from_elem` and use it in a few more places Since this PR is a reply to https://github.com/rust-lang/rust/pull/109819#discussion_r1156128164, r? ``@WaffleLapkin``
2023-04-04Rollup merge of #109901 - cjgillot:validate-debuginfo, r=b-naberMichael Goulet-16/+65
Enforce VarDebugInfo::Place in MIR validation.
2023-04-04Rollup merge of #109838 - clubby789:non-exhaustive-span, r=NilstriebMichael Goulet-21/+46
Fix `non_exhaustive_omitted_patterns` lint span Fixes #109837 `DUMMY_SP` was being passed as the span in many cases where we have a span available to use. This meant that the location of the violating pattern wasn't shown, or the list of un-covered variants r? `@Nilstrieb`
2023-04-04Rollup merge of #109723 - oli-obk:ast_refactor, r=NilstriebMichael Goulet-150/+202
Pull some tuple variant fields out into their own struct This is groundwork for adding more fields to those new structs, but I believe the change to be useful on its own. r? `@Nilstrieb` but feel free to reroll for `compiler`
2023-04-04Rename `ast::Static` to `ast::StaticItem` to match `ast::ConstItem`Oli Scherer-68/+68
2023-04-04Don't collect return-position impl traits for documentationMichael Goulet-1/+24
2023-04-04box a bunch of large typesOli Scherer-79/+83
2023-04-04Auto merge of #109917 - compiler-errors:remove-relation-methods, r=oli-obkbors-133/+22
Remove `intercrate` and `mark_ambiguous` from `TypeRelation` Fixes #109863 Pulls this logic into `super_combine_tys`, which has access to `InferCtxt` and takes a `ObligationEmittingRelation` -- both of which simplify the logic here. r? `@oli-obk` `@aliemjay`
2023-04-04Split out ast::ItemKind::Const into its own structOli Scherer-61/+89
2023-04-04rust-analyzer guided tuple field to named fieldOli Scherer-24/+33
2023-04-04rust-analyzer guided enum variant structificationOli Scherer-25/+36
2023-04-04Auto merge of #109891 - the8472:llvm-16-fixes-79308, r=nikicbors-11/+31
llvm 16 finally reconizes some additional vec in-place conversions as noops closes #79308 r? `@nikic`
2023-04-04Auto merge of #109599 - notriddle:notriddle/use-redundant-glob, r=petrochenkovbors-14/+142
diagnostics: account for glob shadowing when linting redundant imports Fixes #92904
2023-04-04Auto merge of #109888 - Mark-Simulacrum:balanced-compression, r=pietroalbinibors-46/+13
Remove optimal xz settings from CI This is a companion PR to rust-lang/promote-release#58, which moves the relevant optimal code to rust-lang/promote-release. As mentioned in the comments of that PR, this is expected to cut CI costs (and time, though predominantly felt on fast builders) and reduce wasted resources due to in-practice single-threaded compression not using the full 8+ vCPU builders we have available. This probably shouldn't land before that PR + a simpleinfra change to enable the recompression of xz artifacts. But if it does land, it's just a matter of a few nightlies with slightly larger artifacts, so not a big deal. r? `@pietroalbini`
2023-04-04Auto merge of #109876 - jsha:uniquify-intra-doc, r=notriddlebors-10/+14
rustdoc: make intra-doc link pass non-quadratic for repeated links In the collect_intra_doc_links pass, links to a given item that occurred repeatedly were getting inserted into a `Vec<clean::ItemLink>` repeatedly. This led to n^2 behavior (where n = the number of pages generated), particularly for the intra-doc link on the `Into<U> for T where U: From<T>` blanket implementation, since that link appears on every single struct page. Fixes #109851
2023-04-04rustdoc: escape GAT args in more casesLeón Orell Valerian Liehr-16/+33
2023-04-04Remove intercrate and mark_ambiguous from RelationMichael Goulet-133/+22
2023-04-03Auto merge of #109911 - JohnTitor:rollup-7gjiqim, r=JohnTitorbors-11/+51
Rollup of 6 pull requests Successful merges: - #109783 (Update contributing links for rustc-dev-guide changes) - #109883 (Add links to <cell.rs>) - #109889 (Update book, rustc-dev-guide, rust-by-example) - #109896 (Never consider int and float vars for `FnPtr` candidates) - #109902 (Add async-await test for #107414) - #109903 (Add Chris Denton to `.mailmap`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-04-03Doc-comment `IndexVec::from_elem` and use it in a few more placesScott McMurray-7/+17
2023-04-03Emit feature error for parenthesized generics in associated type boundsMichael Goulet-12/+64
2023-04-04Rollup merge of #109903 - ChrisDenton:map-me, r=compiler-errorsYuki Okushi-0/+1
Add Chris Denton to `.mailmap`
2023-04-04Rollup merge of #109902 - Nilstrieb:107414test, r=compiler-errorsYuki Okushi-0/+24
Add async-await test for #107414 fixes #107414 r? `@cjgillot`
2023-04-04Rollup merge of #109896 - ↵Yuki Okushi-8/+24
Nilstrieb:integers-are-not-fn-ptrs-remember-this-dear-transmuter, r=compiler-errors Never consider int and float vars for `FnPtr` candidates This solves a regression where `0.0.cmp()` was ambiguous when a custom trait with a `cmp` method was in scope. For integers it shouldn't be a problem in practice so I wasn't able to add a test. I'm not sure whether there could be more issues hidden in the shadows as mentioned in the issue, but this should at least fix the problematic regression immediately. fixes #109892 r? oli-obk
2023-04-04Rollup merge of #109889 - ferrocene:pa-update-books, r=ehussYuki Okushi-0/+0
Update book, rustc-dev-guide, rust-by-example Changes from `rust-lang/book`: * https://github.com/rust-lang/book/pull/3598 Changes from `rust-lang/rust-by-example`: * https://github.com/rust-lang/rust-by-example/pull/1695 * https://github.com/rust-lang/rust-by-example/pull/1694 * https://github.com/rust-lang/rust-by-example/pull/1693 * https://github.com/rust-lang/rust-by-example/pull/1688 * https://github.com/rust-lang/rust-by-example/pull/1696 Changes from `rust-lang/rustc-dev-guide`: * https://github.com/rust-lang/rustc-dev-guide/pull/1655 * https://github.com/rust-lang/rustc-dev-guide/pull/1657 * https://github.com/rust-lang/rustc-dev-guide/pull/1659 * https://github.com/rust-lang/rustc-dev-guide/compare/d436bf134e2262dcd3527877964c9df589bf631c...fca8af6c154c6cde2512f1331cf2704f214a818e r? `@ehuss`
2023-04-04Rollup merge of #109883 - skaunov:patch-1, r=thomccYuki Okushi-1/+1
Add links to <cell.rs> `UnsafeCell` page could benefit too from having links to these most popular structs in the module.
2023-04-04Rollup merge of #109783 - jyn514:dev-guide-links, r=Mark-SimulacrumYuki Okushi-2/+1
Update contributing links for rustc-dev-guide changes Companion PR to https://github.com/rust-lang/rustc-dev-guide/pull/1653. - Remove unused reference link in CONTRIBUTING.md - Change the contributing_url for triagebot to the getting started page
2023-04-03Auto merge of #109771 - uweigand:s390x-miri-libffi, r=oli-obkbors-5/+5
Increase libffi version to 3.2 to support s390x libffi versions prior to 3.2 have no support for s390x, causing the Miri build to fail on our platform.
2023-04-03Add Chris Denton to `.mailmap`Chris Denton-0/+1
2023-04-03Add testNilstrieb-0/+24
2023-04-03Enforce VarDebugInfo::Place in MIR validation.Camille GILLOT-16/+65
2023-04-03Auto merge of #109819 - scottmcm:index-slice, r=WaffleLapkinbors-118/+168
Use `&IndexSlice` instead of `&IndexVec` where possible All the same reasons as for `[T]`: more general, less pointer chasing, and `&mut IndexSlice` emphasizes that it doesn't change *length*. r? `@ghost`
2023-04-03Never consider int and float vars for `FnPtr` candidatesNilstrieb-8/+24
This solves a regression where `0.0.cmp()` was ambiguous when a custom trait with a `cmp` method was in scope. FOr integers it shouldn't be a problem in practice so I wasn't able to add a test.
2023-04-03llvm 16 finally reconizes some additional vec in-place conversions as noopsThe 8472-11/+31
2023-04-03Auto merge of #109756 - cr1901:msp-shift, r=Mark-Simulacrumbors-3/+3
Update compiler-builtins to 0.1.91 to bring in msp430 shift primitive… … fixes. This fixes unsoundness on MSP430 where `compiler-builtins` and LLVM didn't agree on the width of the shift amount argument of the shifting primitives (4 bytes vs 2 bytes). See https://github.com/rust-lang/compiler-builtins/pull/522 for more details.
2023-04-03update rust-by-examplePietro Albini-0/+0
2023-04-03update rustc dev guidePietro Albini-0/+0
2023-04-03Remove optimal xz settings from CIMark Rousskov-46/+13
This is a companion PR to rust-lang/promote-release#58, which moves the relevant optimal code to rust-lang/promote-release. As mentioned in the comments of that PR, this is expected to cut CI costs (and time, though predominantly felt on fast builders) and reduce wasted resources due to in-practice single-threaded compression not using the full 8+ vCPU builders we have available.
2023-04-03Increase libffi version to 3.2 to support s390xUlrich Weigand-5/+5
2023-04-03Auto merge of #108448 - ishitatsuyuki:binary-heap, r=Mark-Simulacrumbors-51/+19
binary_heap: Optimize Extend implementation. This PR makes the `Extend` implementation for `BinaryHeap` no longer rely on specialization, so that it always use the bulk rebuild optimization that was previously only available for the `Vec` specialization.
2023-04-03update bookPietro Albini-0/+0
2023-04-03Auto merge of #109884 - matthiaskrgr:rollup-5wapig9, r=matthiaskrgrbors-97/+119
Rollup of 7 pull requests Successful merges: - #109526 (LIBPATH is used as dylib's path environment variable on AIX) - #109642 (check for missing codegen backeng config) - #109722 (Implement read_buf for RustHermit) - #109856 (fix(middle): emit error rather than delay bug when reaching limit) - #109868 (Improve PR job names in Github Actions preview) - #109871 (Include invocation start times) - #109873 (Move some UI tests into subdirectories) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2023-04-03Rollup merge of #109873 - jyn514:subdirectories, r=compiler-errorsMatthias Krüger-1/+1
Move some UI tests into subdirectories
2023-04-03Rollup merge of #109871 - Mark-Simulacrum:metrics-timestamp, r=ozkanonurMatthias Krüger-1/+12
Include invocation start times For multi-invocation builders (e.g., dist-x86_64-linux) this timestamp is necessary to correlate the data in the metrics JSON with other data sources (e.g., logs, cpu-usage CSV, etc.). Such correlation may not be perfect but is sometimes helpful and awkward to do otherwise.
2023-04-03Rollup merge of #109868 - jyn514:ci-names, r=Mark-SimulacrumMatthias Krüger-6/+6
Improve PR job names in Github Actions preview Fixes https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/PR.20CI.20job.20names. Before: `CI / PR (mingw-check, false, ubuntu-20.04-16core-64gb) (pull_request)` After: `CI / PR - mingw-check (pull_request)` r? ``@jyn514``
2023-04-03Rollup merge of #109856 - bvanjoi:fix-issue-109304, r=compiler-errorsMatthias Krüger-81/+26
fix(middle): emit error rather than delay bug when reaching limit close #109304
2023-04-03Rollup merge of #109722 - hermitcore:read, r=Mark-SimulacrumMatthias Krüger-7/+24
Implement read_buf for RustHermit In principle, this PR extends rust-lang/rust#108326 for RustyHermit.
2023-04-03Rollup merge of #109642 - ↵Matthias Krüger-1/+43
lenko-d:rust_codegen-backends_interacts_confusingly_with_paths, r=Mark-Simulacrum check for missing codegen backeng config Fixes [#109610](https://github.com/rust-lang/rust/issues/109610)