summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2024-04-28Prepare 1.78 releaseMark Rousskov-1/+1
2024-04-25use `Lrc` instead of the aliased type `Arc` directlyy21-3/+3
2024-04-25Auto merge of #12617 - y21:issue-12616, r=Alexendoobors-1/+34
avoid an ICE in `ptr_as_ptr` when getting the def_id of a local Fixes #12616 `Res::def_id` can panic, so avoid calling it in favor of `opt_def_id`, so we can gracefully handle resolutions that don't have a `DefId` (e.g. local variables) and get a false negative in the worst case, rather than an ICE changelog: Fix ICE in [`ptr_as_ptr`] when the cast expression is a function call to a local variable
2024-04-25Auto merge of #12508 - y21:issue12506, r=llogiqbors-89/+118
Fix infinite loop in `cast_sign_loss` when peeling unwrap method calls Fixes #12506 The lint wants to peel method calls but didn't actually reassign the expression, leading to an infinite loop. ---- changelog: Fix infinite loop in [`cast_sign_loss`] when having two chained `.unwrap()` calls
2024-04-25Auto merge of #12572 - y21:mixed_attributes_style_style, r=llogiqbors-1/+1
Move `mixed_attributes_style` to style > It currently is in suspicious. I wouldn't say that the linted code is "most likely wrong or useless" [...] > :sweat_smile: I would still argue that this doesn't belong in the suspicious group, but rather in the style group. These are some good points made [on zulip](https://rust-lang.zulipchat.com/#narrow/stream/257328-clippy/topic/mixed_attributes_style.20on.20outlined.20modules/near/429823328). ---- changelog: Move [`mixed_attributes_style`] to the `style` category
2024-04-25Auto merge of #12486 - J-ZhengLi:issue12435, r=y21bors-23/+214
don't lint [`mixed_attributes_style`] when mixing docs and other attrs fixes: #12435 fixes: #12436 fixes: #12530 --- changelog: don't lint [`mixed_attributes_style`] when mixing different kind of attrs; and move it to late pass;
2024-04-18rustdoc: check redundant explicit links with correct itemidMichael Howell-11/+8
Fixes a regression caused by 0a50dba50bedd24377bd1066da3b4b7066df4d28 (cherry picked from commit 0fea38a01f4015d310230b76984068b6fe8414d4)
2024-04-09allow the test bat files in tidyPietro Albini-0/+3
2024-04-04Update to LLVM 18.1.2Nikita Popov-0/+0
(cherry picked from commit 022e42db00384212e0325d48316886fdf4af9c5b)
2024-03-28Update ninja on WindowsNilstrieb-1/+1
Errors started showing up, and I read somewhere that this might be because of old ninja versions. This ninja version is indeed *ancient*. ``` multiple outputs aren't (yet?) supported by depslog; bring this up on the mailing list if it affects you ``` (cherry picked from commit b546764cbef7ac449cbad86636b4ca8daa9f5ef6)
2024-03-28Fix heading anchors in doc pages.Eric Huss-0/+22
(cherry picked from commit 39f2d25090e4b61a695fb6d72113689dcf2ae724)
2024-03-26[beta-1.78] Update cargoWeihang Lo-0/+0
2024-03-21Bump to releases 1.77 compilerMark Rousskov-416/+317
2024-03-18Explicitly pass RUSTC_BOOTSTRAP to running wasmtimeMark Rousskov-0/+3
This ensures that tests are permitted to use nightly features, which is currently required for them to run at all. Also ignore a test that relies on running with RUSTC_BOOTSTRAP *not* set.
2024-03-17Bump CI channel to betaMark Rousskov-1/+1
2024-03-16Rollup merge of #122590 - ↵Chris Denton-63/+79
Nilstrieb:bootstrap-do-you-know-what-the-word-copy-means, r=Mark-Simulacrum bootstrap: Don't name things copy that are not copies The bootstrap copy methods don't actually copy, they just hard link. Simply lying about it being "copying" can be very confusing! (ask me how I know!). I'm not sure whether the name I chose is the ideal name, but it's definitely better than before.
2024-03-16Rollup merge of #122401 - ChrisDenton:check-tier1, r=Mark-SimulacrumChris Denton-0/+4
Check library crates for all tier 1 targets in PR CI Let's try checking all tier 1 targets. Shouldn't take much time. Not sure if this is the right place to put it or not but let's see if it works first.
2024-03-16Rollup merge of #122390 - ChrisDenton:bindgen, r=Mark-SimulacrumChris Denton-1/+1
Bump windows-bindgen to 0.55.0 windows-bindgen is the crate used to generate std's Windows API bindings. Not many changes for us, it's mostly just simplifying the generate code (e.g. no more `-> ()`). The one substantial change is some structs now use `i8` byte arrays instead of `u8`. However, this only impacts one test.
2024-03-16Rollup merge of #122372 - onur-ozkan:change-id-improvement, r=Mark-SimulacrumChris Denton-5/+15
prevent notifying the same changes more than once Prevents re-reporting of previously notified changes by using the .last-warned-change-id value for change detection. Resolves #122344
2024-03-16Rollup merge of #122323 - heiher:loongarch64-musl-root, r=Mark-SimulacrumChris Denton-0/+2
configure.py: add flag for loongarch64 musl-root
2024-03-16Auto merge of #122593 - ChrisDenton:windows-support-1, r=Nilstriebbors-6/+4
Remove Windows support note The note is redundant now that Windows 10 is the minimum supported in tier 1.
2024-03-16Remove Windows support noteChris Denton-6/+4
2024-03-16Remove double remove_fileNilstrieb-1/+0
2024-03-16bootstrap: Don't name things copy that are not copiesNilstrieb-62/+79
The bootstrap copy methods don't actually copy, they just hard link. Simply lying about it being "copying" can be very confusing! (ask me how I know!).
2024-03-16Auto merge of #119418 - aaupov:master, r=Kobzolbors-1/+3
[BOLT] Use CDSort and CDSplit CDSort and CDSplit are the most recent versions of function ordering and function splitting algorithms with some improvements over the previous baseline (ext-tsp and two-way splitting).
2024-03-16Auto merge of #122559 - ForsakenHarmony:hrmny/update-llvm, r=nikicbors-0/+0
Update LLVM submodule LLVM version `18.1.1` + additional fixes. Fixes https://github.com/Amanieu/corosensei/issues/23. Fixes https://github.com/rust-lang/rust/issues/122252. Fixes https://github.com/rust-lang/rust/issues/121996. Fixes https://github.com/rust-lang/rust/issues/121960.
2024-03-16Auto merge of #121926 - tgross35:f16-f128-step3-feature-gate, ↵bors-0/+18
r=compiler-errors,petrochenkov `f16` and `f128` step 3: compiler support & feature gate Continuation of https://github.com/rust-lang/rust/pull/121841, another portion of https://github.com/rust-lang/rust/pull/114607 This PR exposes the new types to the world and adds a feature gate. Marking this as a draft because I need some feedback on where I did the feature gate check. It also does not yet catch type via suffixed literals (so the feature gate test will fail, probably some others too because I haven't belssed). If there is a better place to check all types after resolution, I can do that. If not, I figure maybe I can add a second gate location in AST when it checks numeric suffixes. Unfortunately I still don't think there is much testing to be done for correctness (codegen tests or parsed value checks) until we have basic library support. I think that will be the next step. Tracking issue: https://github.com/rust-lang/rust/issues/116909 r? `@compiler-errors` cc `@Nilstrieb` `@rustbot` label +F-f16_and_f128
2024-03-16Auto merge of #122575 - weihanglo:update-cargo, r=weihanglobors-0/+0
Update cargo 6 commits in 7065f0ef4aa267a7455e1c478b5ccacb7baea59c..2fe739fcf16c5bf8c2064ab9d357f4a0e6c8539b 2024-03-12 13:25:15 +0000 to 2024-03-15 21:39:18 +0000 - feat: Add 'open-namespaces' feature (rust-lang/cargo#13591) - refactor: Expose source/spans to Manifest for emitting lints (rust-lang/cargo#13593) - feat(tree): Control `--charset` via auto-detecting config value (rust-lang/cargo#13337) - refactor(toml): Flatten manifest parsing (rust-lang/cargo#13589) - fix: strip feature dep when dep is dev dep (rust-lang/cargo#13518) - fix(ci): bump check error when PR is behind master (rust-lang/cargo#13581) r? ghost
2024-03-15Update cargoWeihang Lo-0/+0
2024-03-15Rollup merge of #122563 - Kobzol:ci-pr-caching, r=Mark-SimulacrumMatthias Krüger-12/+29
CI: cache PR CI Docker builds An attempt to restore Docker caching for PR CI workflows that share the Docker image with an auto/try workflow. This was broken by my previous [PR](https://github.com/rust-lang/rust/pull/119290) that changed how we cache the Docker builds. [Before](https://github.com/rust-lang/rust/pull/122545): ![image](https://github.com/rust-lang/rust/assets/4539057/05e0d347-af64-4e85-bc99-0e4ac07192ec) After: ![image](https://github.com/rust-lang/rust/assets/4539057/2f657d60-b242-45eb-ac61-d8f71787edda) r? ``@ghost``
2024-03-15Rollup merge of #122495 - Manishearth:rustdoc-👻👻👻, r=GuillaumeGomezMatthias Krüger-58/+68
Visually mark 👻hidden👻 items with document-hidden-items Fixes #122485 This adds a 👻 in the item list (much like the :lock: used for private items), and also shows `#[doc(hidden)]` in the code view, where `pub(crate)` etc gets shown for private items. This does not do anything for enum variants, if people have ideas. I think we can just show the attribute.
2024-03-15CI: cache PR CI Docker buildsJakub Beránek-12/+29
2024-03-15Update LLVM submodulehrmny-0/+0
2024-03-15Rollup merge of #122530 - klensy:as_str, r=fee1-deadGuillaume Gomez-3/+4
less symbol interner locks This reduces instructions under 1% (in rustdoc run), but essentially free.
2024-03-15Rollup merge of #122513 - petrochenkov:somehir4, r=fmeaseGuillaume Gomez-40/+28
hir: Remove `opt_local_def_id_to_hir_id` and `opt_hir_node_by_def_id` Also replace a few `hir_node()` calls with `hir_node_by_def_id()`. Follow up to https://github.com/rust-lang/rust/pull/120943.
2024-03-15Rollup merge of #122496 - GuillaumeGomez:reduce-gcc-build-logs, ↵Guillaume Gomez-8/+15
r=Mark-Simulacrum Greatly reduce GCC build logs Fixes https://github.com/rust-lang/rust-log-analyzer/issues/80. Based on [makefile documentation](https://www.gnu.org/software/make/manual/html_node/Options-Summary.html#index-_002d_002dquiet-1) and [configure documentation](https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/configure-Invocation.html). cc `@RalfJung` `@antoyo`
2024-03-15Rollup merge of #114651 - tmfink:rustdoc-rustc-wrapper, r=GuillaumeGomezGuillaume Gomez-2/+58
rustdoc: add `--test-builder-wrapper` arg to support wrappers such as RUSTC_WRAPPER when building doctests Currently, `rustdoc` builds test crates with `rustc` directly instead of using [`RUSTC_WRAPPER`](https://doc.rust-lang.org/cargo/reference/config.html#buildrustc-wrapper) (if any is set). This causes build issues in build systems that use `cargo` but tweak linking flags by setting the `RUSTC_WRAPPER` environment variable. This change is not meant to be final--it's only a minimal proof of concept. Please advise on the best way to proceed. Open questions: - [x] Does supporting the `rustc` wrappers make sense? - yes, `cargo-miri` for example needs a "hack" to workaround the issue - [X] What environment variable(s) should be read for the rustc wrapper? Should `rustdoc` [use the same names as `cargo`](https://doc.rust-lang.org/cargo/reference/config.html#buildrustc-wrapper)? - None, since `rustdoc` takes arguments - [X] What name should be used for a `rustdoc` CLI option? - `--test-builder-wrapper` - [X] Should a separate workspace wrapper (like `RUSTC_WORKSPACE_WRAPPER`) be supported? - `--test-builder-wrapper` can be passed multiple times to get multiple wrappers passed - [X] How/where should this be documented? It's not obvious to all users that `cargo doc` actually causes `rustdoc` to compile tests with rust - Added doc to `src/doc/rustdoc/src/command-line-arguments.md` per `@GuillaumeGomez`
2024-03-15Build GCC with as many threads as availableGuillaume Gomez-3/+3
2024-03-15Greatly reduce GCC build logsGuillaume Gomez-7/+14
2024-03-15doc: add --test-builder/--test-builder-wrapperTravis Finkenauer-0/+29
2024-03-15rustdoc: create rustc command with an iteratorTravis Finkenauer-4/+6
This avoids unnecessary allocation with a temporary Vec.
2024-03-15rustdoc: fix test's saved stdoutTravis Finkenauer-2/+2
Also reword "test-builder-wrapper" argument help.
2024-03-15rustdoc: add `--test-builder-wrapper` argumentTravis Finkenauer-2/+27
Instead of executing the test builder directly, the test builder wrapper will be called with test builder as the first argument and subsequent arguments. This is similar to cargo's RUSTC_WRAPPER argument. The `--test-builder-wrapper` argument can be passed multiple times to allow "nesting" of wrappers.
2024-03-15less symbols interner locksklensy-3/+4
2024-03-15fmtRalf Jung-2/+1
2024-03-15Merge from rustcRalf Jung-197/+404
2024-03-15Preparing for merge from rustcRalf Jung-1/+1
2024-03-15Auto merge of #122511 - matthiaskrgr:rollup-swzilin, r=matthiaskrgrbors-53/+53
Rollup of 10 pull requests Successful merges: - #117118 ([AIX] Remove AixLinker's debuginfo() implementation) - #121650 (change std::process to drop supplementary groups based on CAP_SETGID) - #121764 (Make incremental sessions identity no longer depend on the crate names provided by source code) - #122212 (Copy byval argument to alloca if alignment is insufficient) - #122322 (coverage: Initial support for branch coverage instrumentation) - #122373 (Fix the conflict problem between the diagnostics fixes of lint `unnecessary_qualification` and `unused_imports`) - #122479 (Implement `Duration::as_millis_{f64,f32}`) - #122487 (Rename `StmtKind::Local` variant into `StmtKind::Let`) - #122498 (Update version of cc crate) - #122503 (Make `SubdiagMessageOp` well-formed) r? `@ghost` `@rustbot` modify labels: rollup
2024-03-14Apply the same shell quoting trick we use in the URL toBen Kimock-1/+1
2024-03-14hir: Remove `opt_local_def_id_to_hir_id` and `opt_hir_node_by_def_id`Vadim Petrochenkov-40/+28
Also replace a few `hir_node()` calls with `hir_node_by_def_id()`