about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2022-12-30Rollup merge of #106232 - maurer:transparent-subst, r=rcvalleMichael Goulet-3/+19
CFI: Monomorphize transparent ADTs before typeid Monomorphise `#[repr(transparent)]` parameterized ADTs before turning them into an Itanium mangled String. `#[repr(transparent)]` ADTs currently use the single field to represent them in their CFI type ID to ensure that they are compatible. However, if that type involves a type parameter instantiated at the ADT level, as in `ManuallyDrop`, this will currently ICE as the `Parameter` type cannot be mangled. Since this happens at lowering time, it should always be concrete after substitution. Fixes #106230
2022-12-31Revert "Auto merge of #105058 - ↵Joshua Nelson-174/+60
Nilstrieb:no-merge-commits-for-you-only-bors-is-allowed-to-do-that, r=jyn514" This reverts commit 4839886f0abe208ab8f2bb73a3076a59fe2ab60c, reversing changes made to ce85c98575e3016cf2007d90a85be321e592aa96.
2022-12-31Fix panic on `x build --help`Joshua Nelson-22/+22
2022-12-30Added link from Targets to Platform Support in the bookTrevor Gross-1/+4
2022-12-30Auto merge of #105058 - ↵bors-60/+174
Nilstrieb:no-merge-commits-for-you-only-bors-is-allowed-to-do-that, r=jyn514 Add tidy check to deny merge commits This will prevent users with the pre-push hook from pushing a merge commit. Exceptions are added for subtree updates. These exceptions are a little hacky and may be non-exhaustive but can be extended in the future. I added a link to `@jyn514's` blog post for the error case because that's the best resource to solve merge commits. But it would probably be better if it was integrated into https://rustc-dev-guide.rust-lang.org/git.html#no-merge-policy, then we could link that instead. r? `@jyn514`
2022-12-30Dont use `--merge-base` during bootstrap formatting subcommandMichael Goulet-14/+9
2022-12-30Make tidy errors redNilstrieb-9/+23
This makes it easier to see them (and makes people go owo).
2022-12-30bootstrap: Get rid of `tail_args` in `stream_cargo`Joshua Nelson-52/+17
2022-12-30Use more consistent progress messages in bootstrapJoshua Nelson-24/+40
Before: ``` Testing ["rustc_interface"] stage0 (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu) ``` After: ``` Testing {rustc_interface} stage0 (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu) ``` Note there is a slight consistency between `build` and `test`: The former doesn't print "compiler artifacts". It would be annoying to fix and doesn't hurt anything, so I left it be. ``` ; x t rustc_interface --stage 0 --dry-run Testing {rustc_interface} stage0 (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu) ; x b rustc_interface --stage 0 --dry-run Building {rustc_interface} stage0 compiler artifacts (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu) ```
2022-12-30Add ui test for #106182Obei Sideg-0/+46
2022-12-30Fix incorrect suggestion for extra `&` in patternObei Sideg-3/+2
see #106182
2022-12-30Suppress errors due to TypeError not coercing with inference variablesMichael Goulet-72/+31
2022-12-30Add `build_helper` crate to share code between tidy and bootstrapNilstrieb-119/+96
2022-12-30rustdoc: use the regular arrow indicator for dir-entry CSSMichael Howell-23/+2
This mostly reverts 468acca108e65101b802821bded17149dc1d86c9, while still fixing the problem it fixed by using an internal list-style-position. It results in a slight change in the hover indicator, but nothing misleading.
2022-12-30Regression test for issue 106247Gary Guo-0/+9
2022-12-30rustdoc: merge scrape-help CSSMichael Howell-10/+6
2022-12-30Rollup merge of #106273 - notriddle:notriddle/source-content-overflow, ↵Matthias Krüger-4/+0
r=GuillaumeGomez rustdoc: remove redundant CSS `.source .content { overflow: visible }` When added in 7669f04fb0ddc3d71a1fb44dc1c5c00a6564ae99 / #16066, the page itself was set to scroll. Now it's set so that the `example-wrap` is scrolling inside the page, so the overflow setting for the content is irrelevant.
2022-12-30Extend scraped examples layout GUI test for position of buttonsGuillaume Gomez-0/+14
2022-12-30Add codegen test for `Box::new(uninit)` of big arraysNilstrieb-6/+22
2022-12-30Tidy up tidy error codes checkNilstrieb-26/+11
2022-12-30Checkout `master` branch in CINilstrieb-0/+6
2022-12-30Add tidy check to deny merge commitsNilstrieb-0/+131
This will prevent users with the pre-push hook from pushing a merge commit. Exceptions are added for subtree updates. These exceptions are a little hacky and may be non-exhaustive but can be extended in the future.
2022-12-30Add regression test for #105501Arpad Borsos-0/+165
The test was minified from the published `msf-ice:0.2.1` crate which failed in a crater run. A faulty compiler was triggering a `higher-ranked lifetime error`: > could not prove `[async block@...]: Send`
2022-12-30Auto merge of #106262 - GuillaumeGomez:migrate-more-scraped-examples-css, ↵bors-25/+47
r=notriddle Migrate more scraped examples CSS rules to CSS variables It's based on https://github.com/rust-lang/rust/pull/106218 so it will need to wait for it to be merged first. r? `@notriddle`
2022-12-30Auto merge of #106210 - fee1-dead-contrib:const-closure-trait-method, ↵bors-0/+61
r=compiler-errors Allow trait method paths to satisfy const Fn bounds r? `@oli-obk`
2022-12-29Auto merge of #105920 - MarcusCalhoun-Lopez:respect_set, r=jyn514bors-1/+6
Respect --set=target.platform when building rustbuild itself `--set=target.platform.cc` and `--set=target.platform.cxx` are ignored if target is quoted. `--set=target.platform.linker` is ignored if RUSTFLAGS is not set. Undo parts of https://github.com/rust-lang/rust/commit/d1291dc8b4ac9a98ff1d286402559e4ba5d68488 and https://github.com/rust-lang/rust/commit/1532fd8cd0db93f469e414f9da31ef083a44fcba
2022-12-29Support `x clean --stage 1 rustc_query_impl`Joshua Nelson-16/+40
Previously, clean only supported `--stage 0` for specific crates. The new `crate_description` function generates a string that looks like ``` : {rustc_query_impl} ```
2022-12-29rustdoc: remove redundant CSS `.source .content { overflow: visible }`Michael Howell-4/+0
When added in 7669f04fb0ddc3d71a1fb44dc1c5c00a6564ae99 / #16066, the page itself was set to scroll. Now it's set so that the `example-wrap` is scrolling inside the page, so the overflow setting for the content is irrelevant.
2022-12-29Auto merge of #106266 - matthiaskrgr:rollup-cxrdbzy, r=matthiaskrgrbors-421/+2704
Rollup of 9 pull requests Successful merges: - #104531 (Provide a better error and a suggestion for `Fn` traits with lifetime params) - #105899 (`./x doc library --open` opens `std`) - #106190 (Account for multiple multiline spans with empty padding) - #106202 (Trim more paths in obligation types) - #106234 (rustdoc: simplify settings, help, and copy button CSS by not reusing) - #106236 (docs/test: add docs and a UI test for `E0514` and `E0519`) - #106259 (Update Clippy) - #106260 (Fix index out of bounds issues in rustdoc) - #106263 (Formatter should not try to format non-Rust files) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-12-29Respect --set=target.platform during buildMarcus Calhoun-Lopez-1/+6
Avoid quoting targets that do not contain a period. See https://github.com/rust-lang/rust/commit/1532fd8cd0db93f469e414f9da31ef083a44fcba `--set=target.platform.linker` is ignored if RUSTFLAGS is not set. Undo parts of https://github.com/rust-lang/rust/commit/d1291dc8b4ac9a98ff1d286402559e4ba5d68488
2022-12-29CFI: Monomorphize transparent ADTs before typeidMatthew Maurer-3/+19
Monomorphise `#[repr(transparent)]` parameterized ADTs before turning them into an Itanium mangled String. `#[repr(transparent)]` ADTs currently use the single field to represent them in their CFI type ID to ensure that they are compatible. However, if that type involves a type parameter instantiated at the ADT level, as in `ManuallyDrop`, this will currently ICE as the `Parameter` type cannot be mangled. Since this happens at lowering time, it should always be concrete after substitution. Fixes #106230
2022-12-29Add codegen test for issue 103840clubby789-0/+9
2022-12-29Rollup merge of #106263 - chenyukang:yukang/fix-106261-formater, r=jyn514Matthias Krüger-3/+4
Formatter should not try to format non-Rust files Fixes #106261
2022-12-29Rollup merge of #106260 - chenyukang:yukang/fix-106213-doc, r=GuillaumeGomezMatthias Krüger-3/+18
Fix index out of bounds issues in rustdoc Fixes #106213 r? `@matthiaskrgr`
2022-12-29Rollup merge of #106259 - flip1995:clippyup, r=matthiaskrgrMatthias Krüger-356/+2555
Update Clippy r? `@Manishearth` I think this was the very first sync with no conflicts whatsoever. I love this time of the year :D
2022-12-29Rollup merge of #106236 - Ezrashaw:add-test+docs-e0519-e0514, r=GuillaumeGomezMatthias Krüger-2/+19
docs/test: add docs and a UI test for `E0514` and `E0519` No UI test on `E0514`, it would need to compile with a different `rustc` version. r? `@GuillaumeGomez`
2022-12-29Rollup merge of #106234 - notriddle:notriddle/button-width, r=GuillaumeGomezMatthias Krüger-5/+3
rustdoc: simplify settings, help, and copy button CSS by not reusing Since there remains only one common CSS rule shared between them, there's no point to it: the block and selector costs more than the single `width` rule saves.
2022-12-29Rollup merge of #106202 - estebank:trim-paths, r=NilstriebMatthias Krüger-7/+7
Trim more paths in obligation types
2022-12-29Rollup merge of #106190 - estebank:multiline-start-tweak, r=jackh726Matthias Krüger-44/+11
Account for multiple multiline spans with empty padding Instead of ``` LL | fn oom( | __^ | | _| | || LL | || ) { | ||_- LL | | } | |__^ ``` emit ``` LL | // fn oom( LL | || ) { | ||_- LL | | } | |__^ ```
2022-12-29Rollup merge of #105899 - lukas-code:stage-1-docs, r=jyn514Matthias Krüger-1/+5
`./x doc library --open` opens `std` fix https://github.com/rust-lang/rust/issues/105898
2022-12-29Rollup merge of #104531 - ohno418:recover-fn-traits-with-lifetime-params, ↵Matthias Krüger-0/+82
r=estebank Provide a better error and a suggestion for `Fn` traits with lifetime params Given `Fn`-family traits with lifetime params in trait bounds like `fn f(_: impl Fn<'a>(&'a str) -> bool)`, we currently produce many unhelpful errors. This PR allows these situations to suggest simply using Higher-Rank Trait Bounds like `for<'a> Fn(&'a str) -> bool`. Fixes https://github.com/rust-lang/rust/issues/103490.
2022-12-29Account for multiple multiline spans with empty paddingEsteban Küber-44/+11
Instead of ``` LL | fn oom( | __^ | | _| | || LL | || ) { | ||_- LL | | } | |__^ ``` emit ``` LL | // fn oom( LL | || ) { | ||_- LL | | } | |__^ ```
2022-12-29Auto merge of #106256 - matthiaskrgr:rollup-g1ovcqq, r=matthiaskrgrbors-300/+894
Rollup of 9 pull requests Successful merges: - #106208 (Make trait/impl `where` clause mismatch on region error a bit more actionable) - #106216 (Powershell: Use `WaitForExit` instead of `-Wait`) - #106217 (rustdoc: remove unnecessary `.tooltip::after { text-align: center }`) - #106218 (Migrate css var scraped examples) - #106221 (Rename `Rptr` to `Ref` in AST and HIR) - #106223 (On unsized locals with explicit types suggest `&`) - #106225 (Remove CraftSpider from review rotation) - #106229 (update Miri) - #106242 (Detect diff markers in the parser) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-12-30fix #106261, formater should not try to format non-Rust filesyukang-3/+4
2022-12-29Auto merge of #106196 - Mark-Simulacrum:bump-installer, r=jyn514bors-0/+0
Bump rust-installer `--without=component-a,component-b` now requires full component names. This fixes rust-lang/rust#105755 (rust-lang/rust-installer#119). dev-static build succeeded, and installer script seems to work (see comment in thread).
2022-12-29Fix index out of bounds issues in rustdocyukang-3/+18
2022-12-29Merge commit '4f3ab69ea0a0908260944443c739426cc384ae1a' into clippyupPhilipp Krones-356/+2555
2022-12-29`./x doc library --open` opens `std`Lukas Markeffsky-1/+5
2022-12-29Rollup merge of #106242 - estebank:diff-markers, r=jyn514Matthias Krüger-0/+318
Detect diff markers in the parser Partly address #32059.
2022-12-29Rollup merge of #106229 - RalfJung:miri, r=RalfJungMatthias Krüger-239/+340
update Miri Main PRs: - https://github.com/rust-lang/miri/pull/2741 - https://github.com/rust-lang/miri/pull/2744 This should help quite a bit with Miri support for less common targets. :)