about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-05-11Add `python_command` and `source_path` functionsGuillaume Gomez-0/+9
2024-05-11Add `crate_name` method to `Rustdoc` and `Rustc`Guillaume Gomez-0/+14
2024-05-11Add `crate_type` method to `Rustdoc`Guillaume Gomez-0/+7
2024-05-11move comments position in `src/stage0`onur-ozkan-4/+7
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-05-11use shared stage0 parser from `build_helper`onur-ozkan-102/+111
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2024-05-11Auto merge of #124213 - rust-lang:cargo_update, r=Mark-Simulacrumbors-0/+1
Weekly `cargo update` Automation to keep dependencies in `Cargo.lock` current. The following is the output from `cargo update`: ```txt Locking 77 packages to latest compatible versions Updating allocator-api2 v0.2.16 -> v0.2.18 Updating anstream v0.6.13 -> v0.6.14 Updating anstyle v1.0.6 -> v1.0.7 Updating anstyle-lossy v1.1.0 -> v1.1.1 Updating anstyle-parse v0.2.3 -> v0.2.4 Updating anstyle-query v1.0.2 -> v1.0.3 Updating anstyle-svg v0.1.3 -> v0.1.4 Updating anstyle-wincon v3.0.2 -> v3.0.3 Updating anyhow v1.0.81 -> v1.0.83 Updating autocfg v1.2.0 -> v1.3.0 Updating bumpalo v3.15.4 -> v3.16.0 Updating bytecount v0.6.7 -> v0.6.8 Updating clap_complete v4.5.1 -> v4.5.2 Updating color-print v0.3.5 -> v0.3.6 Updating color-print-proc-macro v0.3.5 -> v0.3.6 Updating colorchoice v1.0.0 -> v1.0.1 Updating dissimilar v1.0.7 -> v1.0.9 Updating either v1.10.0 -> v1.11.0 Updating encoding_rs v0.8.33 -> v0.8.34 Updating errno v0.3.8 -> v0.3.9 Updating fastrand v2.0.2 -> v2.1.0 Updating flate2 v1.0.28 -> v1.0.30 Updating fluent-bundle v0.15.2 -> v0.15.3 Updating fluent-syntax v0.11.0 -> v0.11.1 Updating getrandom v0.2.13 -> v0.2.14 (latest: v0.2.15) Updating hashbrown v0.14.3 -> v0.14.5 Updating intl-memoizer v0.5.1 -> v0.5.2 Adding is_terminal_polyfill v1.70.0 Updating jobserver v0.1.28 -> v0.1.31 Updating lock_api v0.4.11 -> v0.4.12 Updating num-traits v0.2.18 -> v0.2.19 Removing packed_simd v0.3.9 Updating parking_lot v0.12.1 -> v0.12.2 Updating parking_lot_core v0.9.9 -> v0.9.10 Updating pest v2.7.9 -> v2.7.10 Updating pest_derive v2.7.9 -> v2.7.10 Updating pest_generator v2.7.9 -> v2.7.10 Updating pest_meta v2.7.9 -> v2.7.10 Updating proc-macro2 v1.0.79 -> v1.0.82 Updating pulldown-cmark v0.10.2 -> v0.10.3 Updating pulldown-cmark-escape v0.10.0 -> v0.10.1 Updating quote v1.0.35 -> v1.0.36 Adding redox_syscall v0.5.1 Updating rustc-demangle v0.1.23 -> v0.1.24 Updating rustix v0.38.32 -> v0.38.34 Updating rustversion v1.0.15 -> v1.0.16 Updating ryu v1.0.17 -> v1.0.18 Updating security-framework v2.10.0 -> v2.11.0 Updating security-framework-sys v2.10.0 -> v2.11.0 Updating self_cell v1.0.3 -> v1.0.4 Updating semver v1.0.22 -> v1.0.23 Updating serde v1.0.197 -> v1.0.201 Updating serde_derive v1.0.197 -> v1.0.201 Updating serde_json v1.0.115 -> v1.0.117 Updating socket2 v0.5.6 -> v0.5.7 Updating syn v2.0.58 -> v2.0.62 Updating sysinfo v0.30.8 -> v0.30.12 Updating thiserror v1.0.58 -> v1.0.60 Updating thiserror-impl v1.0.58 -> v1.0.60 Updating tokio-util v0.7.10 -> v0.7.11 Updating type-map v0.4.0 -> v0.5.0 Updating unic-langid v0.9.4 -> v0.9.5 Updating unic-langid-impl v0.9.4 -> v0.9.5 Updating unic-langid-macros v0.9.4 -> v0.9.5 Updating unic-langid-macros-impl v0.9.4 -> v0.9.5 Updating unicode-width v0.1.11 -> v0.1.12 Updating winapi-util v0.1.6 -> v0.1.8 Updating windows-targets v0.52.4 -> v0.52.5 Updating windows_aarch64_gnullvm v0.52.4 -> v0.52.5 Updating windows_aarch64_msvc v0.52.4 -> v0.52.5 Updating windows_i686_gnu v0.52.4 -> v0.52.5 Adding windows_i686_gnullvm v0.52.5 Updating windows_i686_msvc v0.52.4 -> v0.52.5 Updating windows_x86_64_gnu v0.52.4 -> v0.52.5 Updating windows_x86_64_gnullvm v0.52.4 -> v0.52.5 Updating windows_x86_64_msvc v0.52.4 -> v0.52.5 Updating zerocopy v0.7.32 -> v0.7.34 Updating zerocopy-derive v0.7.32 -> v0.7.34 note: pass `--verbose` to see 94 unchanged dependencies behind latest ```
2024-05-11Add windows_i686_gnullvm to the listMark Rousskov-0/+1
2024-05-11Migrate `run-make/rustdoc-shared-flags` to rmakeGuillaume Gomez-1/+0
2024-05-11Auto merge of #3596 - bend-n:support_fstar_algebraic, r=RalfJungbors-0/+54
support `f*_algebraic` supports the [`f*_algebraic`](https://doc.rust-lang.org/std/intrinsics/fn.fadd_algebraic.html) intrinsics.
2024-05-11support `f*_algebraic`bendn-0/+54
2024-05-11Auto merge of #3598 - RalfJung:heap, r=RalfJungbors-38/+74
alloc: update comments around malloc() alignment Also separate the C heap shims form the Windows heap shims; their guarantees aren't quite the same.
2024-05-11separate windows heap functions from C heap shimsRalf Jung-33/+56
2024-05-11alloc: update comments around malloc() alignmentRalf Jung-8/+21
2024-05-11Merge from rustcThe Miri Cronjob Bot-354/+496
2024-05-11Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-05-10Update cargoWeihang Lo-0/+0
2024-05-10Lift `TraitRef` into `rustc_type_ir`Michael Goulet-1/+2
2024-05-10rename 'extern-so' to 'native-lib'Ralf Jung-333/+283
2024-05-10Rollup merge of #124957 - compiler-errors:builtin-deref, r=michaelwoeristerMatthias Krüger-12/+11
Make `Ty::builtin_deref` just return a `Ty` Nowhere in the compiler are we using the mutability part of the `TyAndMut` that we used to return.
2024-05-10Rollup merge of #124888 - GuillaumeGomez:migrate-rustdoc-output-path, r=jieyouxuMatthias Krüger-1/+0
Migrate `run-make/rustdoc-output-path` to rmake Part of https://github.com/rust-lang/rust/issues/121876. r? ``@jieyouxu``
2024-05-10Rollup merge of #124797 - beetrees:primitive-float, r=davidtwcoMatthias Krüger-6/+6
Refactor float `Primitive`s to a separate `Float` type Now there are 4 of them, it makes sense to refactor `F16`, `F32`, `F64` and `F128` out of `Primitive` and into a separate `Float` type (like integers already are). This allows patterns like `F16 | F32 | F64 | F128` to be simplified into `Float(_)`, and is consistent with `ty::FloatTy`. As a side effect, this PR also makes the `Ty::primitive_size` method work with `f16` and `f128`. Tracking issue: #116909 `@rustbot` label +F-f16_and_f128
2024-05-10Migrate `run-make/rustdoc-output-path` to rmakeGuillaume Gomez-1/+0
2024-05-10Auto merge of #124961 - matthiaskrgr:rollup-1jj65p6, r=matthiaskrgrbors-13/+12
Rollup of 7 pull requests Successful merges: - #124551 (Add benchmarks for `impl Debug for str`) - #124915 (`rustc_target` cleanups) - #124918 (Eliminate some `FIXME(lcnr)` comments) - #124927 (opt-dist: use xz2 instead of xz crate) - #124936 (analyse visitor: build proof tree in probe) - #124943 (always use `GenericArgsRef`) - #124955 (Use fewer origins when creating type variables.) r? `@ghost` `@rustbot` modify labels: rollup
2024-05-10Rollup merge of #124955 - nnethercote:next_ty_var, r=lcnrMatthias Krüger-6/+1
Use fewer origins when creating type variables. To reduce lots of repetitive boilerplate code. Details in the individual commit messages. r? ``@lcnr``
2024-05-10Rollup merge of #124943 - lcnr:generic-args-ref, r=compiler-errorsMatthias Krüger-6/+10
always use `GenericArgsRef` r? ```@compiler-errors```
2024-05-10Rollup merge of #124927 - klensy:xz3, r=KobzolMatthias Krüger-1/+1
opt-dist: use xz2 instead of xz crate xz crate consist of simple reexport of xz2 crate. Why? Idk. Totally not a backdoor.
2024-05-10Auto merge of #124953 - compiler-errors:own-params, r=lcnrbors-11/+11
Rename `Generics::params` to `Generics::own_params` I hope this makes it slightly more obvious that `generics.own_params` is insufficient when considering nested items. I didn't actually audit any of the usages, for the record. r? lcnr
2024-05-09Make builtin_deref just return a TyMichael Goulet-12/+11
2024-05-09Rename Generics::params to Generics::own_paramsMichael Goulet-11/+11
2024-05-10Use fewer origins when creating type variables.Nicholas Nethercote-6/+1
`InferCtxt::next_{ty,const}_var*` all take an origin, but the `param_def_id` is almost always `None`. This commit changes them to just take a `Span` and build the origin within the method, and adds new methods for the rare cases where `param_def_id` might not be `None`. This avoids a lot of tedious origin building. Specifically: - next_ty_var{,_id_in_universe,_in_universe}: now take `Span` instead of `TypeVariableOrigin` - next_ty_var_with_origin: added - next_const_var{,_in_universe}: takes Span instead of ConstVariableOrigin - next_const_var_with_origin: added - next_region_var, next_region_var_in_universe: these are unchanged, still take RegionVariableOrigin The API inconsistency (ty/const vs region) seems worth it for the large conciseness improvements.
2024-05-09always use `GenericArgsRef`lcnr-6/+10
2024-05-09Rollup merge of #124923 - RalfJung:offset-from-errors, r=compiler-errorsMatthias Krüger-0/+36
interpret/miri: better errors on failing offset_from Fixes https://github.com/rust-lang/miri/issues/3104
2024-05-09opt-dist: use xz2 instead of xz crateklensy-1/+1
xz crate consist of simple reexport of xz2 crate. Why? Idk.
2024-05-09Auto merge of #124706 - Zalathar:revision-checker, r=jieyouxubors-5/+124
Tidy check for test revisions that are mentioned but not declared If a `[revision]` name appears in a test header directive or error annotation, but isn't declared in the `//@ revisions:` header, that is almost always a mistake. In cases where a revision needs to be temporarily disabled, adding it to an `//@ unused-revision-names:` header will suppress these checks for that name. Adding the wildcard name `*` to the unused list will suppress these checks for the entire file. (None of the tests actually use `*`; it's just there because it was easy to add and could be handy as an escape hatch when dealing with other problems.) --- Most of the existing problems discovered by this check were fairly straightforward to fix (or ignore); the trickiest cases are in `borrowck` tests.
2024-05-09Auto merge of #17208 - Wilfred:log_error_from_threads, r=Veykrilbors-2/+8
fix: Report both IO errors and main_loop errors If rust-analyzer receives a malformed LSP request, the IO thread terminates with a meaningful error, but then closes the channel. Once the channel has closed, the main_loop also terminates, but it only has RecvError and can't show a meaningful error. As a result, rust-analyzer would incorrectly claim that the client forgot to shutdown. ``` $ buggy_lsp_client | rust-analyzer Error: client exited without proper shutdown sequence ``` Instead, include both error messages when the server shuts down.
2024-05-09interpret/miri: better errors on failing offset_fromRalf Jung-0/+36
2024-05-09Auto merge of #3591 - RalfJung:win-symlink-trouble, r=RalfJungbors-150/+151
do not run symlink tests on Windows hosts Fixes https://github.com/rust-lang/miri/issues/3587
2024-05-09do not run symlink tests on Windows hostsRalf Jung-150/+151
2024-05-09make RUSTC_BLESS entirely an internal thingRalf Jung-3/+4
2024-05-09make MIRI_TEST_TARGET entirely an internal thingRalf Jung-143/+175
2024-05-09Auto merge of #3588 - RossSmyth:CliTarget, r=RalfJungbors-30/+80
Allow test targets to be set via CLI args Fixes #3584 I'm not a pro shell script reader as I am a Windows user, but we shall see if the CI script broke.
2024-05-09minor tweaksRalf Jung-6/+5
2024-05-09Tidy check for test revisions that are mentioned but not declaredZalathar-0/+118
If a `[revision]` name appears in a test header directive or error annotation, but isn't declared in the `//@ revisions:` header, that is almost always a mistake. In cases where a revision needs to be temporarily disabled, adding it to an `//@ unused-revision-names:` header will suppress these checks for that name. Adding the wildcard name `*` to the unused list will suppress these checks for the entire file.
2024-05-09Include the line number in tidy's `iter_header`Zalathar-5/+6
2024-05-09Rollup merge of #124837 - GuillaumeGomez:migrate-rustdoc-map-file, r=jieyouxuMatthias Krüger-1/+0
Migrate `run-make/rustdoc-map-file` to rmake Part of https://github.com/rust-lang/rust/issues/121876. r? `@jieyouxu`
2024-05-08fix: Report both IO errors and main_loop errorsWilfred Hughes-2/+8
If rust-analyzer receives a malformed LSP request, the IO thread terminates with a meaningful error, but then closes the channel. Once the channel has closed, the main_loop also terminates, but it only has RecvError and can't show a meaningful error. As a result, rust-analyzer would incorrectly claim that the client forgot to shutdown. ``` $ buggy_lsp_client | rust-analyzer Error: client exited without proper shutdown sequence ``` Instead, include both error messages when the server shuts down.
2024-05-08fix: Report all LSP protocol errors with invalid_dataWilfred Hughes-10/+18
Previously we did not use invalid_data for serde errors, making it harder to understand errors when the client sends malformed data to the server.
2024-05-08Update documentation for miri-script test changesRoss Smyth-6/+5
2024-05-08Update CI script for the miri-script test changesRoss Smyth-2/+2
2024-05-08Allow test targets to be set via CLI argsRoss Smyth-23/+75