summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2023-01-19Bump rust-installerMark Rousskov-0/+0
* `--without=component-a,component-b` now requires full component names. This fixes rust-lang/rust#105755 (rust-lang/rust-installer#119).
2023-01-11Move manual_clamp to nurseryPhilipp Krones-1/+4
2023-01-10add subtle dependencyPietro Albini-0/+2
2023-01-10bump Cargo submodule to fix CVE-2022-46176Pietro Albini-0/+0
2022-12-31Fix new_return_no_self with recursive boundsGary Guo-50/+105
2022-12-26Make Clippy test no longer unsoundMichael Goulet-1/+1
2022-12-09Auto merge of #105486 - matthiaskrgr:rollup-o7c4l1c, r=matthiaskrgrbors-4/+2
Rollup of 10 pull requests Successful merges: - #105216 (Remove unused GUI test) - #105245 (attempt to clarify align_to docs) - #105387 (Improve Rustdoc scrape-examples UI) - #105389 (Enable profiler in dist-powerpc64le-linux) - #105427 (Dont silently ignore rustdoc errors) - #105442 (rustdoc: clean up docblock table CSS) - #105443 (Move some queries and methods) - #105455 (use the correct `Reveal` during validation) - #105470 (Clippy: backport ICE fix before beta branch) - #105474 (lib docs: fix typo) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-12-09Rollup merge of #105470 - flip1995:clippy_backport, r=ManishearthMatthias Krüger-4/+2
Clippy: backport ICE fix before beta branch r? `@Manishearth` Before beta is branched tomorrow we should backport the fix from https://github.com/rust-lang/rust-clippy/pull/10027 for an ICE. That way we'll get this into stable one release sooner. This only cherry-picks the fix, not the tests for it. The proper sync of this will be done next week Thursday.
2022-12-09Auto merge of #104449 - oli-obk:unhide_unknown_spans, r=estebank,RalfJungbors-80/+84
Start emitting labels even if their pointed to file is not available locally r? `@estebank` cc `@RalfJung` fixes #97699
2022-12-08Fix #10021Samuel Moelius-4/+2
2022-12-08Rollup merge of #105317 - RalfJung:retag-rework, r=oli-obkMatthias Krüger-179/+239
make retagging work even with 'unstable' places This is based on top of https://github.com/rust-lang/rust/pull/105301. Only the last two commits are new. While investigating https://github.com/rust-lang/unsafe-code-guidelines/issues/381 I realized that we would have caught this issue much earlier if the add_retag pass wouldn't bail out on assignments of the form `*ptr = ...`. So this PR changes our retag strategy: - When a new reference is created via `Rvalue::Ref` (or a raw ptr via `Rvalue::AddressOf`), we do the retagging as part of just executing that address-taking operation. - For everything else, we still insert retags -- these retags basically serve to ensure that references stored in local variables (and their fields) are always freshly tagged, so skipping this for assignments like `*ptr = ...` is less egregious. r? ```@oli-obk```
2022-12-07Make -Zsimulate-remapped-rust-src-base reproducible on CIOli Scherer-0/+2
2022-12-06Emit full spans in miriOli Scherer-3/+2
2022-12-06Bless after rebaseOli Scherer-4/+4
2022-12-06Reintroduce the span printing in miri (plus point to spans where possible)Oli Scherer-420/+423
2022-12-06Remove now-redundant file/line info from const backtracesOli Scherer-492/+492
2022-12-06Rollup merge of #104439 - ferrocene:pa-generate-copyright, r=pnkfelixMatthias Krüger-0/+553
Add prototype to generate `COPYRIGHT` from REUSE metadata This PR adds a prototype to generate the `COPYRIGHT` file from the metadata gathered with REUSE. There are two new tools: * `src/tools/collect-license-metadata` invokes REUSE, parses its output and stores a concise JSON representation of the metadata in `src/etc/license-metadata.json`. * `src/tools/generate-copyright` parses the metadata generated above, (in the future will) gather crate dependencies metadata, and renders the `COPYRIGHT.md` file. Note that since the contents of those files are currently incorrect, rather than outputting in the paths above, the files will be stored in `build/` and not committed. This will be changed once we're confident about the metadata. Eventually, `src/etc/license-metadata.json` will be committed into the repository and verified to be up to date by CI (similar to our GitHub Actions configuration), to avoid having people install REUSE on their local machine in most cases. You can see the (incorrect) generated files in https://gist.github.com/pietroalbini/3f3f22b6f9cc8533abf7494b6a50cf97. r? `@pnkfelix`
2022-12-06Stacked Borrows: factor the logic determining the new permissions on retag ↵Ralf Jung-167/+187
into a separate function
2022-12-06make retagging work even with 'unstable' placesRalf Jung-32/+72
2022-12-06Rollup merge of #105246 - JakobDegen:run-mir-tests, r=jyn514Yuki Okushi-4/+4
Fix --pass in compiletest This makes `x test src/test/mir-opt --pass run` actually do the thing it says it does. The resulting tests do not pass, I'll fix that in a follow up.
2022-12-05Merge from rustcRalf Jung-13/+76
2022-12-05Preparing for merge from rustcRalf Jung-1/+1
2022-12-05Auto merge of #104824 - klensy:bump-some, r=Mark-Simulacrumbors-1/+2
deps: update cpufeatures, swap difference to dissimilar Updating cpufeatures v0.2.1 -> v0.2.5: https://github.com/RustCrypto/utils/blob/master/cpufeatures/CHANGELOG.md#025-2022-09-04, was yanked bc of miscompile (https://github.com/RustCrypto/utils/pull/800, https://github.com/rust-lang/rust/issues/101346) Removing difference v2.0.0 Adding dissimilar v1.0.4 Updating expect-test v1.0.1 -> v1.4.0 difference unmaintened https://rustsec.org/advisories/RUSTSEC-2020-0095.html, so replaced with https://github.com/dtolnay/dissimilar (as dependency of `expect-test`)
2022-12-04Fix --pass in compiletestJakob Degen-4/+4
2022-12-03Auto merge of #105218 - matthiaskrgr:rollup-8d3k08n, r=matthiaskrgrbors-907/+1075
Rollup of 9 pull requests Successful merges: - #104199 (Keep track of the start of the argument block of a closure) - #105050 (Remove useless borrows and derefs) - #105153 (Create a hacky fail-fast mode that stops tests at the first failure) - #105164 (Restore `use` suggestion for `dyn` method call requiring `Sized`) - #105193 (Disable coverage instrumentation for naked functions) - #105200 (Remove useless filter in unused extern crate check.) - #105201 (Do not call fn_sig on non-functions.) - #105208 (Add AmbiguityError for inconsistent resolution for an import) - #105214 (update Miri) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-12-03for now, do not do fake reads on non-Unpin mutable referencesRalf Jung-54/+14
2022-12-03add test for self-referential futureRalf Jung-0/+102
2022-12-03Rollup merge of #105214 - RalfJung:miri, r=RalfJungMatthias Krüger-907/+1073
update Miri r? `@ghost`
2022-12-03Rollup merge of #105153 - oli-obk:fail_faster, r=compiler-errorsMatthias Krüger-0/+1
Create a hacky fail-fast mode that stops tests at the first failure This is useful for not having to wait until all 10k+ ui tests have finished running and then having to crawl through hundreds of failure reports. You now only get the first report when you turn on that env var and no new tests are run at all This works like a charm, but is obviously welded on very crudely
2022-12-03Rollup merge of #104199 - SarthakSingh31:issue-97417-1, r=cjgillotMatthias Krüger-0/+1
Keep track of the start of the argument block of a closure This removes a call to `tcx.sess.source_map()` from [compiler/rustc_trait_selection/src/traits/error_reporting/mod.rs](https://github.com/rust-lang/rust/compare/master...SarthakSingh31:issue-97417-1?expand=1#diff-8406bbc0d0b43d84c91b1933305df896ecdba0d1f9269e6744f13d87a2ab268a) as required by #97417. VsCode automatically applied `rustfmt` to the files I edited under `src/tools`. I can undo that if its a problem. r? `@cjgillot`
2022-12-03Auto merge of #97485 - bjorn3:new_archive_writer, r=wesleywiserbors-12/+13
Rewrite LLVM's archive writer in Rust This allows it to be used by other codegen backends. Fixes https://github.com/bjorn3/rustc_codegen_cranelift/issues/1155
2022-12-03clippyRalf Jung-42/+15
2022-12-03Auto merge of #105196 - JohnTitor:rollup-8rxqnq6, r=JohnTitorbors-0/+59
Rollup of 7 pull requests Successful merges: - #104903 (Use ocx.normalize in report_projection_error) - #105032 (improve doc of into_boxed_slice and impl From<Vec<T>> for Box<[T]>) - #105100 (Add missing intra-doc link) - #105181 (Don't add a note for implementing a trait if its inner type is erroneous) - #105182 (Rustdoc-Json: Don't inline foreign traits) - #105188 (Don't elide type information when printing E0308 with `-Zverbose`) - #105189 (rustdoc: clean up redundant CSS on `.rustdoc-toggle.hideme`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2022-12-03Update cargoWeihang Lo-0/+0
9 commits in e027c4b5d25af2119b1956fac42863b9b3242744..f6e737b1e3386adb89333bf06a01f68a91ac5306 2022-11-25 19:44:46 +0000 to 2022-12-02 20:21:24 +0000 - Refactor generate_targets into separate module (rust-lang/cargo#11445) - Improve file found in multiple build targets warning (rust-lang/cargo#11299) - Error when precise without -p flag (rust-lang/cargo#11349) - Improve strategy for selecting targets to be scraped for examples (rust-lang/cargo#11430) - Aware of compression ratio for unpack size limit (rust-lang/cargo#11337) - Add test for rustdoc-map generation when using sparse registries (rust-lang/cargo#11403) - Add error message when `cargo fix` on an empty repo (rust-lang/cargo#11400) - Store the sparse+ prefix in the SourceId for sparse registries (rust-lang/cargo#11387) - Update documentation for -Zrustdoc-scrape-examples in the Cargo Book (rust-lang/cargo#11425)
2022-12-02Merge from rustcRalf Jung-1998/+4395
2022-12-02Preparing for merge from rustcRalf Jung-1/+1
2022-12-02jsondoclint: Check `links` fieldNixon Enraght-Moony-0/+59
2022-12-02Auto merge of #2710 - RalfJung:ptr-tracking-ice, r=oli-obkbors-27/+13
fix ICE in pointer tracking Fixes https://github.com/rust-lang/miri/issues/2709
2022-12-02Auto merge of #2711 - RalfJung:btrack, r=RalfJungbors-84/+62
slight simplifications for borrow tracking and some renaming for consistency
2022-12-02fix ICE in pointer trackingRalf Jung-27/+13
2022-12-02rename some more types for consistencyRalf Jung-26/+26
2022-12-02slight simplifications for borrow trackingRalf Jung-58/+36
2022-12-02Auto merge of #2708 - RalfJung:verbose-setup, r=RalfJungbors-3/+6
forward verbosity to cargo setup
2022-12-02forward verbosity to cargo setupRalf Jung-3/+6
2022-12-02fix importsVanille-N-5/+9
2022-12-02other renames, introduction of BorrowTrackerMethod and AllocExtraVanille-N-76/+56
2022-12-02SbTag -> BorTag everywhereVanille-N-62/+62
2022-12-02move stacked_borrows to borrow_tracker/stacked_borrowsVanille-N-291/+116
2022-12-02extract common borrow tracking logicVanille-N-0/+365
2022-12-02Auto merge of #104963 - petrochenkov:noaddids2, r=cjgillotbors-49/+58
rustc_ast_lowering: Stop lowering imports into multiple items Lower them into a single item with multiple resolutions instead. This also allows to remove additional `NodId`s and `DefId`s related to those additional items.