about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-07-12rewrite extra-filename-with-temp-outputs to rmakeOneirical-1/+5
2024-07-12Use Symbol in NameLukas Wirth-761/+756
2024-07-12Add missing docsLukas Wirth-1/+2
2024-07-12Implement rough symbol interning infraLukas Wirth-1/+543
2024-07-12Auto merge of #127479 - Urgau:rustc-stable-hash, r=michaelwoeristerbors-0/+1
Use rustc-stable-hash in the compiler Following https://github.com/rust-lang/compiler-team/issues/755 and the release of the crate on crates.io, let's now use it in the compiler and remove the old implementation. cc `@michaelwoerister` r? ghost
2024-07-12Add rustdoc-json support for use<>Michael Goulet-0/+1
2024-07-12Clarify comment in tests/fail/tree_borrows/reservedim_spurious_write.rsNeven Villani-2/+3
Co-authored-by: Ralf Jung <post@ralfj.de>
2024-07-11Remove rustdoc tests which no longer parseMichael Goulet-10/+0
2024-07-12Rollup merge of #127607 - Zalathar:normalize-hint, r=wesleywiserMatthias Krüger-6/+12
compiletest: Better error message for bad `normalize-*` headers Follow-up to #126777. Example of the new error message in context: ```text ---- [ui] tests/ui/rfcs/rfc-2632-const-trait-impl/effects/minicore.rs stdout ---- thread '[ui] tests/ui/rfcs/rfc-2632-const-trait-impl/effects/minicore.rs' panicked at src/tools/compiletest/src/header.rs:1001:13: couldn't parse custom normalization rule: `normalize-stderr-test ".*note: .*\n\n" -> ""` help: expected syntax is: `normalize-stderr-test: "REGEX" -> "REPLACEMENT"` note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ```
2024-07-11Merge from rust-lang/rustLaurențiu Nicola-3518/+9203
2024-07-11Preparing for merge from rust-lang/rustLaurențiu Nicola-1/+1
2024-07-11Use uplifted `rustc-stable-hash` crate in `rustc_data_structures`Urgau-0/+1
2024-07-11Merge commit 'b794b8e08c16517a941dc598bb1483e8e12a8592' into ↵Philipp Krones-2494/+4147
clippy-subtree-update
2024-07-11compiletest: Better error message for bad `normalize-*` headersZalathar-6/+12
2024-07-11Auto merge of #126777 - Zalathar:normalize-colon, r=lcnrbors-17/+7
Require a colon in `//@ normalize-*:` test headers The previous parser for `//@ normalize-*` headers (before #126370) was so lax that it did not require `:` after the header name. As a result, the test suite contained a mix of with-colon and without-colon normalize headers, both numbering in the hundreds. This PR updates the without-colon headers to add a colon (matching the style used by other headers), and then updates the parser to make the colon mandatory. (Because the normalization parser only runs *after* the header system identifies a normalize header, this will detect and issue an error for relevant headers that lack the colon.) Addresses one of the points of #126372.
2024-07-11Auto merge of #17571 - winstxnhdw:bool-to-enum-no-dupe, r=Veykrilbors-3/+44
feat: do not add new enum if it already exists ## Summary This PR introduces a check for the existence of another enum within the current scope, and if it exist, we skip `add_enum_def`. ## Why? Currently, when using the `bool_to_enum` assist more than once, it is possible to add multiple enum definitions. For example, the following snippet, ```rs #[derive(PartialEq, Eq)] enum Bool { True, False, } fn main() { let a = Bool::True; let b = true; println!("Hello, world!"); } ``` will be transformed into, ```rs #[derive(PartialEq, Eq)] enum Bool { True, False, } #[derive(PartialEq, Eq)] enum Bool { True, False, } fn main() { let a = Bool::True; let b = Bool::True; println!("Hello, world!"); } ``` This can be annoying for users to clean up.
2024-07-11Require a colon in `//@ normalize-*:` headersZalathar-17/+7
2024-07-11Auto merge of #127538 - Oneirical:the-sacred-tests, r=jieyouxubors-3/+0
Migrate `issue-83112-incr-test-moved-file`, `type-mismatch-same-crate-name` and `issue-109934-lto-debuginfo` `run-make` tests to rmake or ui Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). I have noticed that the new UI test `debuginfo-lto-alloc` is outputting artifacts that aren't getting cleaned up because of its `-C incremental`. That might be the justification needed to keep it as a run-make test? Try it on: // try-job: test-various // previously passed try-job: armhf-gnu try-job: aarch64-apple try-job: x86_64-msvc
2024-07-11Remove unary neg from `clippy::precedence` lintUrgau-156/+4
2024-07-10Improve error messageMichael Goulet-1/+1
2024-07-10refactor: search for enum semanticallywinstxnhdw-6/+8
2024-07-10Remove faq landing page, improve main oneLukas Wirth-51/+12
2024-07-10Second byte is not involved in the example; use a Cell<()> insteadNeven Villani-16/+19
2024-07-10Auto merge of #3720 - safinaskar:read, r=RalfJungbors-1/+83
Fix libc::read shim: make it write to a buffer correct amount of bytes. Add tests for new behavior libc::read shim had a bug: if underlying real call libc::read(fd, buf, N) returns M, then libc::read shim writes N bytes to buf instead of M. Remaining N - M bytes are filled with zeros. This commit fixes this bug and adds tests for new behavior
2024-07-10Auto merge of #17572 - beetrees:f16-f128, r=Veykrilbors-73/+384
Add `f16` and `f128` support Adds `f16` and `f128` support, using the `rustc_apfloat` library (also used by `rustc`) for parsing/arithmetic/displaying since the types aren't stable yet so can't be used by rust-analyzer itself. Issue: #17451
2024-07-10Auto merge of #17544 - MikeWalrus:inlay-hint-generic-param-name, r=Veykrilbors-14/+430
feat: add inlay hints for generic parameters fixes #11091 By default, only hints for const generic parameters are shown, and this can be configured through `rust-analyzer.inlayHints.genericParameterHints.enable`. Probably needs more testing.
2024-07-10Remove dead code in config.rsLukas Wirth-13/+0
2024-07-10Add `f16` and `f128` supportbeetrees-73/+384
2024-07-10Auto merge of #127006 - Oneirical:holmes-the-detestive, r=Kobzolbors-5/+0
Migrate `extern-flag-pathless`, `silly-file-names`, `metadata-dep-info`, `cdylib-fewer-symbols` and `symbols-include-type-name` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). `cdylib-fewer-symbols` demands a Windows try-job. (Almost guaranteed to fail, but 7 years is a long time) try-job: x86_64-gnu-distcheck try-job: x86_64-msvc try-job: aarch64-apple
2024-07-09style: prefer type inferencewinstxnhdw-1/+1
- unrelated to the PR but I wanted to change this in #17467
2024-07-09feat: do not add new enum if it already existswinstxnhdw-1/+40
2024-07-09rewrite issue-109934-lto-debuginfo as an ui testOneirical-1/+0
2024-07-09rewrite type-mismatch-same-crate-name to rmakeOneirical-1/+0
2024-07-09rewrite and rename issue-83112-incr-test-moved-file to rmakeOneirical-1/+0
2024-07-09Fix libc::read shim: make it write to a buffer correct amount of bytes. Add ↵Askar Safin-1/+83
tests for the new behavior. libc::read shim had a bug: if underlying real call libc::read(fd, buf, N) returns M, then libc::read shim writes N bytes to buf instead of M. Remaining N - M bytes are filled with zeros. This commit fixes this bug and adds tests for new behavior
2024-07-09Promote the `wasm32-wasip2` target to Tier 2Alex Crichton-0/+89
This commit promotes the `wasm32-wasip2` Rust target to tier 2 as proposed in rust-lang/compiler-team#760. There are two major changes in this PR: 1. The `dist-various-2` container, which already produces the other WASI targets, now has an extra target added for `wasm32-wasip2`. 2. A new `wasm-component-ld` binary is added to all host toolchains when LLD is enabled. This is the linker used for the `wasm32-wasip2` target. This new linker is added for all host toolchains to ensure that all host toolchains can produce the `wasm32-wasip2` target. This is similar to how `rust-lld` was originally included for all host toolchains to be able to produce WebAssembly output when the targets were first added. The new linker is developed [here][wasm-component-ld] and is pulled in via a crates.io-based dependency to the tree here. [wasm-component-ld]: https://github.com/bytecodealliance/wasm-component-ld
2024-07-09rewrite symbols-include-type-name to rmakeOneirical-1/+0
2024-07-09Apply suggestionsNeven Villani-18/+52
- split test into two revisions - clarify comments
2024-07-09Implement fix for reservedim_spurious_write: ignore IM on protectedNeven Villani-7/+59
2024-07-09This pattern using lazy protected Reserved IM prevents spurious writesNeven Villani-0/+109
2024-07-09Auto merge of #127493 - compiler-errors:crate-level-import, r=lcnrbors-3/+3
Move trait selection error reporting to its own top-level module This effectively moves `rustc_trait_selection::traits::error_reporting` to `rustc_trait_selection::error_reporting::traits`. There are only a couple of actual changes to the code, like moving the `pretty_impl_header` fn out of the specialization module for privacy reasons. This is quite pointless on its own, but having `error_reporting` as a top-level module in `rustc_trait_selection` is very important to make sure we have a meaningful file structure for when we move **type** error reporting (and region error reporting, with which it's incredibly entangled currently) into `rustc_trait_selection`. I've opened a tracking issue here: #127492 r? lcnr
2024-07-09Auto merge of #3739 - joboet:macos_tls_dtors, r=RalfJungbors-30/+87
Implement support for multiple TLS destructors on macOS I want to get rid of [this `#[cfg]` block](https://github.com/rust-lang/rust/blob/98dcbae5c9ac615d5acfbf42d42b19a77cb9ec11/library/std/src/thread/mod.rs#L195-L211) in `std`, but it is currently required for miri, as it does not support multiple macOS TLS destructors. This is not true for the platform itself, however, as can be observed in the [implementation](https://github.com/apple-oss-distributions/dyld/blob/d552c40cd1de105f0ec95008e0e0c0972de43456/dyld/DyldRuntimeState.cpp#L2239).
2024-07-09Merge from rustcThe Miri Cronjob Bot-118/+208
2024-07-09Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-07-09Auto merge of #127378 - Oneirical:cetestial-meteorite, r=jieyouxubors-5/+15
Migrate `issue-37839`, `track-path-dep-info` and `track-pgo-dep-info` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please try: try-job: test-various try-job: dist-x86_64-musl
2024-07-08Auto merge of #127328 - Oneirical:yield-to-petestrians, r=jieyouxubors-3/+0
Migrate `pass-linker-flags-flavor`, `pass-linker-flags-from-dep` and `pass-linker-flags` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please test on i686-msvc. Expected to fail. try-job: aarch64-apple
2024-07-08implement support for multiple TLS destructors on macOSjoboet-30/+87
2024-07-08Move trait selection error reporting to its own top-level moduleMichael Goulet-3/+3
2024-07-08Rollup merge of #127325 - Oneirical:gothic-testhetic, r=jieyouxuGuillaume Gomez-3/+0
Migrate `target-cpu-native`, `target-specs` and `target-without-atomic-cas` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Please test on i686-msvc. try-job: i686-msvc
2024-07-08Rollup merge of #126427 - Oneirical:oktobertest, r=jieyouxuGuillaume Gomez-14/+24
Rewrite `intrinsic-unreachable`, `sepcomp-cci-copies`, `sepcomp-inlining` and `sepcomp-separate` `run-make` tests to rmake.rs Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).