about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2022-05-25Auto merge of #97409 - GuillaumeGomez:rollup-808v9ge, r=GuillaumeGomezbors-64/+55
Rollup of 4 pull requests Successful merges: - #97317 (Allow to click on setting text) - #97375 (Simplify implementation of `-Z gcc-ld`) - #97394 (Add more eslint rules) - #97407 (Update books) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-05-26Rollup merge of #97375 - petrochenkov:zgccld, r=bjorn3Guillaume Gomez-63/+38
Simplify implementation of `-Z gcc-ld` - The logic is now unified for all targets (wasm targets should also be supported now) - Additional "symlink" files like `ld64` are eliminated - lld-wrapper is used for propagating the correct lld flavor - Cleanup "unwrap or exit" logic in lld-wrapper cc https://github.com/rust-lang/rust/issues/97352 r? `@bjorn3`
2022-05-26Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jshaGuillaume Gomez-1/+17
Allow to click on setting text You can test it [here](https://rustdoc.crud.net/imperio/gui-settings-text-click/doc/foo/index.html). This PR allows to click on the text alongside the toggle to change it. r? `@jsha`
2022-05-25Simplify implementation of `-Z gcc-ld`Vadim Petrochenkov-63/+38
- The logic is now unified for all targets (wasm targets should also be supported now) - Additional "symlink" files like `ld64` are eliminated - lld-wrapper is used for propagating the correct lld flavor - Cleanup "unwrap or exit" logic in lld-wrapper
2022-05-25Update cargoArlo Siemsen-0/+0
2022-05-24update MiriRalf Jung-7/+9
2022-05-24Allow to pass more arguments to tester.jsGuillaume Gomez-1/+17
2022-05-24Auto merge of #96098 - JakobDegen:always-return-place, r=oli-obkbors-2/+3
Refactor call terminator to always include destination place In #71117 people seemed to agree that call terminators should always have a destination place, even if the call was guaranteed to diverge. This implements that. Unsurprisingly, the diff touches a lot of code, but thankfully I had to do almost nothing interesting. The only interesting thing came up in const prop, where the stack frame having no return place was also used to indicate that the layout could not be computed (or similar). I replaced this with a ZST allocation, which should continue to do the right things. cc `@RalfJung` `@eddyb` who were involved in the original conversation r? rust-lang/mir-opt
2022-05-24Auto merge of #97342 - JohnTitor:rollup-zqxctaw, r=JohnTitorbors-24/+24
Rollup of 5 pull requests Successful merges: - #97240 (Typo suggestion for a variable with a name similar to struct fields) - #97289 (Lifetime variance fixes for clippy) - #97290 (Turn on `fast_submodules` unconditionally) - #97336 (typo) - #97337 (Fix stabilization version of `Ipv6Addr::to_ipv4_mapped`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-05-24Rollup merge of #97289 - compiler-errors:tcxify-clippy, r=Mark-SimulacrumYuki Okushi-24/+24
Lifetime variance fixes for clippy #97287 migrates rustc to a `Ty` type that is invariant over its lifetime `'tcx`, so I need to fix a bunch of places that assume that `Ty<'a>` and `Ty<'b>` can be shortened to some common lifetime. This is doable, since everything is already `'tcx`, so all this PR does is be a bit more explicit that elided lifetimes are actually `'tcx`. Split out from #97287 so the clippy team can review independently.
2022-05-24Auto merge of #97272 - jackh726:ban-compare-mode-nll, r=Mark-Simulacrumbors-18/+44
Disallow compare-mode=nll test differences This ensures that new tests don't get added not as revisions if they have nll output. This will make stabilization PR easier. r? `@Mark-Simulacrum`
2022-05-23Refactor call terminator to always hold a destination placeJakob Degen-2/+3
2022-05-23Lifetime variance fixes for clippyMichael Goulet-24/+24
2022-05-23Rollup merge of #97254 - jhpratt:remove-crate-vis, r=cjgillotDylan DPC-15/+5
Remove feature: `crate` visibility modifier FCP completed in #53120.
2022-05-22Disallow non-same compare-mode-nllJack Huey-18/+44
2022-05-22Fix clippy explicit_write lint for new writeln implementationDavid Tolnay-2/+34
2022-05-22Rollup merge of #97043 - c410-f3r:z-errors, r=petrochenkovJack Huey-2/+2
Move some tests to more reasonable directories r? `@petrochenkov`
2022-05-22factor out the rvalue lifetime ruleDing Xiang Fei-46/+76
remove region_scope_tree from RegionCtxt Apply suggestions from code review Co-authored-by: Niko Matsakis <niko@alum.mit.edu>
2022-05-21Merge crate and restricted visibilitiesJacob Pratt-9/+4
2022-05-21Remove feature: `crate` visibility modifierJacob Pratt-11/+6
2022-05-21Auto merge of #97248 - xFrednet:clippyup, r=Manishearthbors-1712/+4449
Clippyup This direction was simpler. All test Clippy pass locally :upside_down_face: r? `@Manishearth`
2022-05-21Fix lint registrationxFrednet-1/+0
2022-05-21Merge 'rust-clippy/master' into clippyupxFrednet-1711/+4449
2022-05-21update MiriRalf Jung-8/+6
2022-05-21Auto merge of #97239 - jhpratt:remove-crate-vis, r=joshtriplettbors-28/+2
Remove `crate` visibility modifier FCP to remove this syntax is just about complete in #53120. Once it completes, this should be merged ASAP to avoid merge conflicts. The first two commits remove usage of the feature in this repository, while the last removes the feature itself.
2022-05-21Remove `crate` visibility modifier in libs, testsJacob Pratt-28/+2
2022-05-21Auto merge of #96923 - eholk:fix-fake-read, r=nikomatsakisbors-5/+5
Drop Tracking: Implement `fake_read` callback This PR updates drop tracking's use of `ExprUseVisitor` so that we treat `fake_read` events as borrows. Without doing this, we were not handling match expressions correctly, which showed up as a breakage in the `addassign-yield.rs` test. We did not previously notice this because we still had rather large temporary scopes that we held borrows for, which changed in #94309. This PR also includes a variant of the `addassign-yield.rs` test case to make sure we continue to have correct behavior here with drop tracking. r? `@nikomatsakis`
2022-05-20Rollup merge of #97203 - ehuss:rustc-summary-formatting, r=Dylan-DPCMatthias Krüger-3/+3
Minor tweaks to rustc book summary formatting. This includes a few minor tweaks to the summary/titles of chapters for the rustc book: * Use a consistent chapter capitalization and hyphenation. * Move "Codegen Options" underneath "Command-line Arguments". I feel like they are two closely related chapters, where codegen is just a subset of the total arguments. * Move "Target Tier Policy" underneath "Platform Support". That chapter includes that policy for platform support, and thus I feel it is more closely related to that grouping.
2022-05-20Rollup merge of #97201 - ydah:fix_spelling, r=GuillaumeGomezMatthias Krüger-2/+2
Fix typo This PR is fixes typo "avaiable" to "available".
2022-05-20Move testsCaio-2/+2
2022-05-20Auto merge of #97147 - Mark-Simulacrum:stage0-bump, r=pietroalbinibors-0/+0
stage0 bootstrap bump r? `@pietroalbini`
2022-05-19Minor tweaks to rustc book summary formatting.Eric Huss-3/+3
2022-05-20Fix typoydah-2/+2
This PR is fixes typo "avaiable" to "available".
2022-05-19Auto merge of #97114 - klensy:cursor-ref, r=petrochenkovbors-2/+2
use CursorRef more This allows skipping clone of `TreeAndSpacing` (and `TokenTree`).
2022-05-19Rollup merge of #97152 - ehuss:update-cargo, r=ehussYuki Okushi-0/+0
Update cargo 3 commits in 3f052d8eed98c6a24f8b332fb2e6e6249d12d8c1..a4c1cd0eb6b18082a7e693f5a665548fe1534be4 2022-05-12 15:19:04 +0000 to 2022-05-18 01:52:07 +0000 - Add notes about pre-stabilization to contributor unstable docs (rust-lang/cargo#10675) - reference: Update syntax supported by `rustc-link-lib` (rust-lang/cargo#10674) - Correct the release dates for 1.61 and 1.62 (rust-lang/cargo#10665)
2022-05-18Update cargoEric Huss-0/+0
2022-05-18Auto merge of #96863 - SparrowLii:let, r=michaelwoeristerbors-12/+14
use `hir::Let` in `hir::Guard::IfLet` This PR fixes the FIXME about using `hir::Let` in `hir::Guard::IfLet`
2022-05-18fix rustfmtklensy-2/+2
2022-05-18Bump RLS to latest masterMark Rousskov-0/+0
2022-05-17Auto merge of #92570 - jsha:rustdoc-search-refactor, r=GuillaumeGomezbors-261/+44
Simplify rustdoc search test Previously, rustdoc search attempted to parse search.js and extract out only certain methods and variables. This change makes search.js and search-index.js loadable as [CommonJS modules](https://nodejs.org/api/modules.html#modules-commonjs-modules), so they can be loaded directly. As part of that change, I had to separate execSearch from interacting with the DOM. This wound up being a nice cleanup that made more explicit what inputs it was taking. I removed search.js' dependency on storage.js by moving hasOwnPropertyRustdoc directly into search.js, and replacing onEach with forEach in a path that is called by the tester. r? `@GuillaumeGomez` Demo: https://rustdoc.crud.net/jsha/rustdoc-search-refactor/std/?search=foo
2022-05-17rustdoc: make search.js a moduleJacob Hoffman-Andrews-261/+44
Previously, search.js relied on the DOM and the `window` object. It can now be loaded in the absence of the DOM, for instance by Node. The same is true of search-index.js. This allows removing a lot of code from src/tools/rustdoc-js/tester.js that tried to parse search.js and extract specific functions that were needed for testing.
2022-05-17Auto merge of #97111 - JohnTitor:rollup-x3vjf6u, r=JohnTitorbors-2/+2
Rollup of 7 pull requests Successful merges: - #96329 (Add a couple tests for #90887 fixes) - #97009 (Allow `unused_macro_rules` in path tests) - #97075 (Add regression test for #81804) - #97079 (Change `Successors` to `impl Iterator<Item = BasicBlock>`) - #97080 (remove the `RelateResultCompare` trait) - #97093 (Migrate `maybe_recover_from_bad_type_plus` diagnostic) - #97102 (Update function pointer call error message) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-05-17Rollup merge of #97079 - SparrowLii:successors, r=lcnrYuki Okushi-2/+2
Change `Successors` to `impl Iterator<Item = BasicBlock>` This PR fixes the FIXME in `compiler\rustc_middle\src\mir\mod.rs`. This can omit several `&`, `*` or `cloned` operations on Successros' generated elements
2022-05-17Auto merge of #97012 - oli-obk:🦀_intrinsics, r=davidtwcobors-2/+1
Add a query for checking whether a function is an intrinsic. work towards #93145 This will reduce churn when we add more ways to declare intrinsics r? `@scottmcm`
2022-05-17Auto merge of #96825 - kckeiks:remove-item-like-visitor-trait, r=cjgillotbors-35/+23
Retire `ItemLikeVisitor` trait Issue #95004 cc `@cjgillot`
2022-05-17Change `Successors` to `impl Iterator<Item = BasicBlock>`SparrowLii-2/+2
2022-05-16Add a query for checking whether a function is an intrinsic.Oli Scherer-2/+1
2022-05-15update miriRalf Jung-6/+8
2022-05-14Auto merge of #96883 - jackh726:early-binder-2, r=oli-obkbors-8/+8
Add EarlyBinder Chalk has no concept of `Param` (https://github.com/rust-lang/chalk/blob/e0ade19d139bc784384acc6736cd960c91dd55a1/chalk-ir/src/lib.rs#L579) or `ReEarlyBound` (https://github.com/rust-lang/chalk/blob/e0ade19d139bc784384acc6736cd960c91dd55a1/chalk-ir/src/lib.rs#L1308). Everything is just "bound" - the equivalent of rustc's late-bound. It's not completely clear yet whether to move everything to the same time of binder in rustc or add `Param` and `ReEarlyBound` in Chalk. Either way, tracking when we have or haven't already substituted out these in rustc can be helpful. As a first step, I'm just adding a `EarlyBinder` newtype that is required to call `subst`. I also add a couple "transparent" `bound_*` wrappers around a couple query that are often immediately substituted. r? `@nikomatsakis`
2022-05-14Rollup merge of #97018 - GuillaumeGomez:fail-on-js-error, r=notriddleYuki Okushi-1/+1
Ensure that test fail if a JS error occurs Fixes #96902. r? ``@notriddle``