about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-11-26Merge pull request #4059 from tiif/fixtestOli Scherer-49/+18
Simplify thread blocking tests
2024-11-26Simplify thread blocking teststiif-49/+18
2024-11-26Merge pull request #4061 from asquared31415/dep_info_fixRalf Jung-5/+8
Use `PathBuf` APIs to correctly do some path manipulation cross-platform
2024-11-26Add macro expansion test for raw variable namesMark Murphy-0/+28
2024-11-25attempt to fix miri failing to create file when under weird powershell ↵asquared31415-5/+8
configurations
2024-11-26Auto merge of #132894 - frank-king:feature/where-refactor, r=cjgillotbors-41/+37
Refactor `where` predicates, and reserve for attributes support Refactor `WherePredicate` to `WherePredicateKind`, and reserve for attributes support in `where` predicates. This is a part of #115590 and is split from #132388. r? petrochenkov
2024-11-25Fix the rest of the testsYoh Deadfall-6/+3
2024-11-25Added linux_like moduleYoh Deadfall-16/+17
2024-11-25Fixed test targetYoh Deadfall-2/+1
Co-authored-by: Ralf Jung <post@ralfj.de>
2024-11-25Added epoll and eventfd for AndroidYoh Deadfall-4/+32
2024-11-25Merge pull request #18559 from ChayimFriedman2/recur-unsizedLaurențiu Nicola-10/+47
fix: Fix a stack overflow when computing the sizedness of a struct that includes itself as the tail field
2024-11-26compiletest: remove `pretty-expanded` directive and infraJieyou Xu-22/+0
Foreword ======== Let us begin the journey to rediscover what the `//@ pretty-expanded` directive does, brave traveller -- "My good friend, [..] when I wrote that passage, God and I knew what it meant. It is possible that God knows it still; but as for me, I have totally forgotten." -- Johann Paul Friedrich Richter, 1826 We must retrace the steps of those before us, for history shall guide us in the present and inform us of the future. The Past ======== Originally there was some effort to introduce more test coverage for `-Z unpretty=expanded` (in 2015 this was called `--pretty=expanded`). In [Make it an error to not declare used features #23598][pr-23598], there was a flip from `//@ no-pretty-expanded` (opt-out of `-Z unpretty=expanded` test) to `//@ pretty-expanded` (opt-in to `-Z unpretty=expanded` test). This was needed because back then the dedicated `tests/pretty` ("pretty") test suite did not existed, and the pretty tests were grouped together under `run-pass` tests (I believe `ui` test suite didn't exist back then either). Unfortunately, in this process the replacement `//@ pretty-expanded` directives contained a `FIXME #23616` linking to [There are very few tests for `-Z unpretty` expansion #23616][issue-23616]. But this was arguably backwards and somewhat misleading, as noted in <https://github.com/rust-lang/rust/issues/23616#issuecomment-484999901>: The attribute is off by default and things just work if you don't test it, people have not been adding the `pretty-expanded` annotation to new tests even if it would work. Which basically renders this useless. The Present =========== As of Nov 2024, we have a dedicated `pretty` test suite, and some time over the years the split between `run-pass` into `ui` and `pretty` test suites caused all of the `//@ pretty-expanded` in `ui` tests to do absolutely nothing -- the compiletest logic for `pretty-expanded` only triggered in the *pretty* test suite, but none of the pretty tests use it. Oops. The Future ========== Nobody remembers this, nobody uses this, it's misleading in ui tests. Let's get rid of this directive altogether. [pr-23598]: https://github.com/rust-lang/rust/pull/23598 [issue-23616]: https://github.com/rust-lang/rust/issues/23616
2024-11-25Fix a stack overflow when computing the sizedness of a struct that includes ↵Chayim Refael Friedman-10/+47
itself as the tail field
2024-11-25Update cargoEric Huss-0/+0
2024-11-26Migrate `add_turbo_fish` to `SyntaxEditor`Shoyu Vanilla-24/+77
2024-11-25miri: implement `TlsFree`joboet-0/+26
If the variable does not need a destructor, `std` uses racy initialization for creating TLS keys on Windows. With just the right timing, this can lead to `TlsFree` being called. Unfortunately, with #132654 this is hit quite often, so miri should definitely support `TlsFree` ([documentation](https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-tlsfree)). I'm filing this here instead of in the miri repo so that #132654 isn't blocked for so long.
2024-11-25collect-license-metadata: move JSON to root, and add a 'check' modeJonathan Pallant-12/+31
2024-11-25Fix a bug when synthetic AST node were searched in the AST ID map and caused ↵Chayim Refael Friedman-4/+80
panics
2024-11-25generate-copyright: Ensure output has UNIX line-endings for consistency.Jonathan Pallant-0/+8
2024-11-25Refactor `where` predicates, and reserve for attributes supportFrank King-41/+37
2024-11-24Fix rustfmt according to reviewNadrieril-2/+14
2024-11-24Merge pull request #4037 from tiif/blockpipeRalf Jung-44/+80
Refactor AnonSocket::read/write for blocking socketpair
2024-11-24cover guard patterns in clippy lintsMax Niederman-1/+1
2024-11-24cover guard patterns in rustfmtMax Niederman-1/+3
2024-11-24Merge pull request #18552 from lnicola/rust-src-messageLaurențiu Nicola-4/+5
internal: Fix missing `rust-src` message
2024-11-24Fix missing rust-src messageLaurențiu Nicola-4/+5
2024-11-24sysconf: add _SC_OPEN_MAXDavid Carlier-0/+7
2024-11-24Rollup merge of #133405 - Zalathar:style-file, r=jieyouxuMatthias Krüger-9/+13
tidy: Distinguish between two different meanings of "style file" This file contains code that uses “style file” to mean “CSS file”, and other code that uses “style file” to mean “this file, which implements the style checker”. That's very confusing, so it's easier to just say *CSS file* or *this file* as appropriate. No functional change.
2024-11-24Rollup merge of #133371 - RalfJung:is_trivially_const_drop, r=compiler-errorsMatthias Krüger-4/+3
remove is_trivially_const_drop I'm not sure this still brings any perf benefits, so let's benchmark this. r? `@compiler-errors`
2024-11-24follow-up on #4052, making a miri evaluation context fn for strerror_r.David Carlier-50/+62
2024-11-24tidy: Distinguish between two different meanings of "style file"Zalathar-9/+13
2024-11-23Auto merge of #131859 - chriskrycho:update-trpl, r=onur-ozkanbors-5/+28
Update TRPL to add new Chapter 17: Async and Await - Add support to `rustbook` to pass through the `-L`/`--library-path` flag to `mdbook` so that references to the `trpl` crate - Build the `trpl` crate as part of the book tests. Make it straightforward to add other such book dependencies in the future if needed by implementing that in a fairly general way. - Update the submodule for the book to pull in the new chapter on async and await, as well as a number of other fixes. This will happen organically/automatically in a week, too, but this lets me group this change with the next one: - Update the compiler messages which reference the existing chapters 17–20, which are now chapters 18-21. There are only two, both previously referencing chapter 18. - Update the UI tests which reference the compiler message outputs.
2024-11-23Update request entry point file path in architecture.mdMark Murphy-1/+1
2024-11-23Auto merge of #133242 - lcnr:questionable-uwu, r=compiler-errors,BoxyUwUbors-3/+1
finish `Reveal` removal After #133212 changed the `TypingMode` to be the only source of truth, this entirely rips out `Reveal`. cc #132279 r? `@compiler-errors`
2024-11-23rustbook: fix two small typosChris Krycho-2/+2
2024-11-23Add support for `--library-path` to `rustbook test`Chris Krycho-3/+26
This makes it possible to test an mdbook which has dependencies other than the direct crate for the book itself, e.g. the `trpl` crate used in _The Rust Programming Language_.
2024-11-23no more Reveal :(lcnr-3/+1
2024-11-23Auto merge of #132994 - clubby789:cc-bisect, r=Kobzolbors-2/+2
Update `cc` + bump bootstrap deps https://github.com/rust-lang/rust/pull/132556#issuecomment-2471741435 note: The compiler/library/tools cc bumps have been tested with a try job, the bootstrap changes have not
2024-11-23Merge pull request #4052 from devnexen/gh4050Ralf Jung-30/+90
sysconf interception fix for solarish systems.
2024-11-23Auto merge of #132915 - veluca93:unsafe-fields, r=jswrennbors-3/+30
Implement the unsafe-fields RFC. RFC: rust-lang/rfcs#3458 Tracking: - https://github.com/rust-lang/rust/issues/132922 r? jswrenn
2024-11-23remove is_trivially_const_dropRalf Jung-4/+3
2024-11-23sysconf interception fix for solarish systems.David Carlier-30/+90
also adding the `_SC_PAGESIZE` alias `_SC_PAGE_SIZE` supported by Linux, macOS and FreeBSD. close #4050
2024-11-22Rollup merge of #133208 - ferrocene:split-copyright-html, r=KobzolMichael Goulet-28/+179
generate-copyright: Now generates a library file too. We only run reuse once, so the output has to be filtered to find only the files that are relevant to the library tree. Outputs COPYRIGHT.html and COPYRIGHT-library.html. The license-metadata.json file is also now in the tree. We need a CI tool to check that it's correct. r? kobzol Remaining steps: * [ ] Teach CI to double-check the license-metadata.json file is correct * [ ] Add the COPYRIGHT.html and COPYRIGHT-license.html to the releases
2024-11-22Merge pull request #4047 from RalfJung/eventfd-commentsRalf Jung-10/+14
eventfd: comment tweaks
2024-11-22Rollup merge of #133311 - RalfJung:miri-sync, r=RalfJung许杰友 Jieyou Xu (Joe)-763/+1530
Miri subtree update r? `@ghost`
2024-11-22generate-copyright: Fixup comment for get_metadata_and_notices.Jonathan Pallant-1/+1
2024-11-22disable solaris on CI for nowRalf Jung-1/+1
2024-11-22epoll: fix comment typoRalf Jung-2/+2
2024-11-22Merge from rustcThe Miri Cronjob Bot-1/+1
2024-11-22Preparing for merge from rustcThe Miri Cronjob Bot-1/+1