about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
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 #133398 - klensy:rd-to-string, r=aDotInTheVoidMatthias Krüger-1/+1
rustdoc: do not call to_string, it's already impl Display `anchor` returns impl Display, so no need to call to_string().
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-24embed-bitcode is no longer used in iOSDianQK-8/+5
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-6/+95
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-23do not to_string, use displayklensy-1/+1
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-23Vendor `trpl` crate so The Book tests work offlineChris Krycho-0/+1
Without this change: $ ./x test --set build.vendor=true src/doc/book # (lots of output) error: failed to select a version for the requirement `futures = "^0.3"` (locked to 0.3.30) candidate versions found which didn't match: 0.3.31, 0.3.27 location searched: directory source `/Users/chris/dev/rust-lang/rust/vendor` (which is replacing registry `crates-io`) required by package `trpl v0.2.0 (/Users/chris/dev/rust-lang/rust/src/doc/book/packages/trpl)` perhaps a crate was updated and forgotten to be re-vendored? Build completed unsuccessfully in 0:01:19 With this change: $ ./x test --set build.vendor=true src/doc/book # (lots of build output) Testing stage1 mdbook src/doc/book (aarch64-apple-darwin) finished in 86.949 seconds Build completed successfully in 0:04:05 # Conflicts: # src/bootstrap/src/core/build_steps/vendor.rs
2024-11-23ci: don't force CI rustc for `x86_64-gnu-tools`Jieyou Xu-1/+4
CI alt rustc builds do not have rustc debug assertions currently.
2024-11-23bootstrap: add change tracker entryJieyou Xu-0/+5
2024-11-23rustbook: fix two small typosChris Krycho-2/+2
2024-11-23Update bootstrap tests to support book dependenciesChris Krycho-1/+66
Since TRPL now depends on a `trpl` crate, the test needs to be able to build that crate to run mdbook against it, and also to invoke mdbook with `--library-path` in that case. Use the support for that flag added to `rustbook` in the previous change to invoke it with the path to the dependencies it will need to run `rustdoc` tests which reference `trpl`. Co-authored-by: Onur Özkan <onurozkan.dev@outlook.com>
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-23Update TRPL to latest, including new Chapter 17: Async and AwaitChris Krycho-0/+0
This also incorporates a number of other changes and fixes which would normally have been part of the automatic update, but which were blocked from landing because of the changes required to support shipping a crate as part of the chapter, along with those changes.
2024-11-23bootstrap: make `rust.debug-assertions = true` inhibit downloading CI rustcJieyou Xu-4/+42
Warn if `rust.download-rustc = true` is used with `rust.debug-assertions` as alt CI rustc is not currently built with debug assertions (not to be confused with LLVM assertions).
2024-11-23bootstrap: revert `rust.download-rustc` global default to `false`Jieyou Xu-3/+16
And only default library and tools profile to `rust.download-rustc = "if-unchanged"`.
2024-11-23no more Reveal :(lcnr-3/+1
2024-11-23Auto merge of #132994 - clubby789:cc-bisect, r=Kobzolbors-390/+406
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 #133215 - ehuss:fix-vendor-rustc-perf, r=kobzolMichael Goulet-22/+27
Fix missing submodule in `./x vendor` The `src/tools/rustc-perf` submodule is needed for vendoring because it is included in the vendor set. To test this: 1. Get a fresh clone of `rust-lang/rust` 2. `./x vendor`
2024-11-22Rollup merge of #133208 - ferrocene:split-copyright-html, r=KobzolMichael Goulet-29/+181
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-22Auto merge of #133349 - ehuss:stabilize-2024, r=traviscross,compiler-errorsbors-2/+2
Stabilize the 2024 edition This stabilizes the 2024 edition for Rust 1.85, scheduled to be released on February 20, 2025. 🎉 cc tracking issue: https://github.com/rust-lang/rust/issues/117258 There is a fair amount of follow-up work after this that I am working on (various docs, cargo, rustfmt, etc.), and this is will unblock those other changes.
2024-11-22Stabilize the 2024 editionEric Huss-2/+2
2024-11-22Merge pull request #4047 from RalfJung/eventfd-commentsRalf Jung-10/+14
eventfd: comment tweaks
2024-11-22Auto merge of #133339 - jieyouxu:rollup-gav0nvr, r=jieyouxubors-763/+1530
Rollup of 8 pull requests Successful merges: - #133238 (re-export `is_loongarch_feature_detected`) - #133288 (Support `each_ref` and `each_mut` in `[T; N]` in constant expressions.) - #133311 (Miri subtree update) - #133313 (Use arc4random of libc for RTEMS target) - #133319 (Simplify `fulfill_implication`) - #133323 (Bail in effects in old solver if self ty is ty var) - #133330 (library: update comment around close()) - #133337 (Fix typo in `std::thread::Scope::spawn` documentation.) r? `@ghost` `@rustbot` modify labels: rollup
2024-11-22Rollup merge of #133311 - RalfJung:miri-sync, r=RalfJung许杰友 Jieyou Xu (Joe)-763/+1530
Miri subtree update r? `@ghost`
2024-11-22Remove constants section as it is outdatedBoxy-83/+0
2024-11-22Flatten generic parameter defs sectionBoxy-68/+88
2024-11-22Bump to 1.85Boxy-1/+1
2024-11-22generate-copyright: Fixup comment for get_metadata_and_notices.Jonathan Pallant-1/+1
2024-11-22Updates Solaris target information, adds Solaris maintainerPetr Sumbera-2/+36
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-18/+36
2024-11-22Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-11-21Merge pull request #4046 from CraftSpider/windows-error-mappingRalf Jung-3/+64
Fill out windows io error mapping table
2024-11-21Auto merge of #132362 - mustartt:aix-dylib-detection, r=jieyouxubors-15/+31
[AIX] change system dynamic library format Historically on AIX, almost all dynamic libraries are distributed in `.a` Big Archive Format which can consists of both static and shared objects in the same archive (e.g. `libc++abi.a(libc++abi.so.1)`). During the initial porting process, the dynamic libraries are kept as `.a` to simplify the migration, but semantically having an XCOFF object under the archive extension is wrong. For crate type `cdylib` we want to be able to distribute the libraries as archives as well. We are migrating to archives with the following format: ``` $ ar -t lib<name>.a lib<name>.so ``` where each archive contains a single member that is a shared XCOFF object that can be loaded.
2024-11-21Add comment about multiple errors to one ErrorKindRune Tynan-0/+4
2024-11-21eventfd: comment tweaksRalf Jung-9/+13
2024-11-21Fill out Windows error mapping tableRune Tynan-3/+60
2024-11-21Add instructions to test error code docs (#2145)Taylor Cramer-0/+9
2024-11-21Auto merge of #133246 - MarcoIeni:debug-info-2-windows-disable, r=Kobzolbors-1/+1
ci: Disable full `debuginfo-level=2` in windows alt job try-job: dist-x86_64-msvc-alt
2024-11-21Implement the unsafe-fields RFC.Luca Versari-3/+30
Co-Authored-By: Jacob Pratt <jacob@jhpratt.dev>
2024-11-21Keep list of submodules close to list of vendored workspacesEric Huss-24/+27
This moves the list of submodules needed to vendor close to the list of cargo workspaces with the intent to help ensure they keep up-to-date and in sync.