about summary refs log tree commit diff
AgeCommit message (Collapse)AuthorLines
2025-01-10rustdoc-json: Include items in stripped modules in `Crate::paths`.Alona Enraght-Moony-8/+26
2025-01-10jsondoclint: Support `//@ !has <path> <value>`.Alona Enraght-Moony-4/+23
This was removed for not being used [1], but now we need it. [1]: https://github.com/rust-lang/rust/pull/133478#discussion_r1874358362
2025-01-10Auto merge of #135328 - bjorn3:sync_cg_clif-2025-01-10, r=bjorn3bors-320/+93
Subtree sync for rustc_codegen_cranelift This has a couple of changes that will conflict with https://github.com/rust-lang/rust/pull/134338. r? `@ghost` `@rustbot` label +A-codegen +A-cranelift +T-compiler
2025-01-10Auto merge of #135327 - jhpratt:rollup-5uyir52, r=jhprattbors-399/+1162
Rollup of 7 pull requests Successful merges: - #132607 (Used pthread name functions returning result for FreeBSD and DragonFly) - #134693 (proc_macro: Use `ToTokens` trait in `quote` macro) - #134732 (Unify conditional-const error reporting with non-const error reporting) - #135083 (Do not ICE when encountering predicates from other items in method error reporting) - #135251 (Only treat plain literal patterns as short) - #135320 (Fix typo in `#[coroutine]` gating error) - #135321 (remove more redundant into() conversions) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-10Merge commit 'e39eacd2d415803ef82de3b6a314e4f2d0fbc4dc' into ↵bjorn3-320/+93
sync_cg_clif-2025-01-10
2025-01-10Rustup to rustc 1.86.0-nightly (824759493 2025-01-09)bjorn3-1/+1
2025-01-10Rollup merge of #135321 - matthiaskrgr:out_of_into, r=lqdJacob Pratt-5/+4
remove more redundant into() conversions
2025-01-10Rollup merge of #135320 - camelid:coroutines-typo, r=lqdJacob Pratt-7/+7
Fix typo in `#[coroutine]` gating error
2025-01-10Rollup merge of #135251 - oli-obk:push-lmpyvvyrtplk, r=ytmimiJacob Pratt-12/+43
Only treat plain literal patterns as short See https://github.com/rust-lang/rust/pull/134228#discussion_r1905848384 and https://github.com/rust-lang/rust/pull/134228#discussion_r1905916702 for context. We never wanted to treat const blocks and paths as short, only plain literals. I don't know how to write a test for this, it.s not clear to me how the short pattern check actually affects the formatting
2025-01-10Rollup merge of #135083 - compiler-errors:invalid-predicate-source, r=camelidJacob Pratt-3/+79
Do not ICE when encountering predicates from other items in method error reporting See the comments I left in the code and the test file. Fixes https://github.com/rust-lang/rust/issues/124350
2025-01-10Rollup merge of #134732 - ↵Jacob Pratt-248/+325
compiler-errors:unify-conditional-const-error-reporting, r=RalfJung Unify conditional-const error reporting with non-const error reporting This PR unifies the error reporting between `ConditionallyConstCall` and `FnCallNonConst` so that the former will refer to syntactical sugar like operators by their sugared name, rather than calling all operators "methods". We achieve this by making the "non-const" part of the error message generic over the "non" part so we can plug in "conditionally" instead. This should ensure that as we constify traits in the standard library, we don't regress error messages for things like `==`. r? fmease or reassign
2025-01-10Rollup merge of #134693 - SpriteOvO:proc-macro-use-to-tokens-in-quote, ↵Jacob Pratt-113/+691
r=tgross35 proc_macro: Use `ToTokens` trait in `quote` macro Tracking issues: #130977, #54722 This PR changed `proc_macro::quote!` to use `ToTokens` trait instead of `TokenStream::from`, and migrated test cases from `quote` crate. r? `@dtolnay` CC `@tgross35`
2025-01-10Rollup merge of #132607 - YohDeadfall:pthread-name-fn-with-result, r=tgross35Jacob Pratt-11/+13
Used pthread name functions returning result for FreeBSD and DragonFly `pthread_getname_np` and `pthread_setname_np` received a wider adoption in past years and was added to: * FreeBSD by June 11 2020 via [`2ef84b7da9a6c3e23b4a135e6e863581f16d46e1`](https://github.com/freebsd/freebsd-src/commit/2ef84b7da9a6c3e23b4a135e6e863581f16d46e1), * DargonFly by March 8 2021 via [`ab5dc9aceb34419d1c4b6006739e61acee8ee999`](https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ab5dc9aceb34419d1c4b6006739e61acee8ee999). There's not so much advantage except that the result can be checked in debug builds. Ideally it should be unified with Linux' implementation, but it trims the input.
2025-01-10Auto merge of #135273 - dianne:argument-patterns-are-not-boring, r=lqdbors-20/+9
Remove special-casing for argument patterns in MIR typeck (attempt to fix perf regression of #133858) See [my comment](https://github.com/rust-lang/rust/pull/133858#issuecomment-2579029618) on #133858 for more information. This is just a guess as to what went wrong, and I haven't been able to get the profiler running locally, so I'll need a perf run to make sure this actually helps. There's one test's stderr that suffers a bit, but this was just papering over the issue anyway. Making region errors point to the correct constraints in the presence of invariance/contravariance is a broader problem; the current way it's handled is mostly based on guesswork, luck, and hoping it works out. Properly handling that (somehow) would improve the test's stderr without the hack that this PR reverts.
2025-01-10Sync from rust 824759493246ee383beb9cd5ceffa0e15deb9fa4bjorn3-1/+0
2025-01-10remove more redundant into() conversionsMatthias Krüger-5/+4
2025-01-10Auto merge of #135319 - matthiaskrgr:rollup-un5lol6, r=matthiaskrgrbors-124/+738
Rollup of 8 pull requests Successful merges: - #133088 (`-Zrandomize-layout` harder. `Foo<T> != Foo<U>`) - #134619 (Improve prose around `as_slice` example of IterMut) - #134855 (Add `default_field_values` entry to unstable book) - #134908 (Fix `ptr::from_ref` documentation example comment) - #135275 (Add Pin::as_deref_mut to 1.84 relnotes) - #135294 (Make `bare-fn-no-impl-fn-ptr-99875` test less dependent on path width) - #135304 (Add tests cases from review of #132289) - #135308 (Make sure to walk into nested const blocks in `RegionResolutionVisitor`) r? `@ghost` `@rustbot` modify labels: rollup
2025-01-09Fix typo in `#[coroutine]` gating errorNoah Lev-7/+7
2025-01-10Rollup merge of #135308 - compiler-errors:scope-visit, r=oli-obkMatthias Krüger-16/+36
Make sure to walk into nested const blocks in `RegionResolutionVisitor` Fixes https://github.com/rust-lang/rust/issues/135306 I tried auditing the rest of the visitors that called `.visit_body`, and it seems like this is the only one that was missing it. I wonder if we should modify intravisit (specifcially, that `NestedBodyFilter` stuff) to make this less likely to happen, tho... r? oli-obk
2025-01-10Rollup merge of #135304 - steffahn:tests_from_132289, r=compiler-errorsMatthias Krüger-0/+178
Add tests cases from review of #132289 Adding my comments as test-cases as suggested by ``@jackh726`` in https://github.com/rust-lang/rust/pull/132289#issuecomment-2564602267
2025-01-10Rollup merge of #135294 - ChrisDenton:bare-fn-width, r=jieyouxuMatthias Krüger-6/+8
Make `bare-fn-no-impl-fn-ptr-99875` test less dependent on path width This sets diagnostic-width to some arbitrary number. Seems to work on my machine.
2025-01-10Rollup merge of #135275 - coolreader18:pin-as_deref_mut-relnotes, r=BoxyUwUMatthias Krüger-0/+1
Add Pin::as_deref_mut to 1.84 relnotes Resolves #131243 - I think this got missed in the relnotes sweep or something. ``@rustbot`` label relnotes
2025-01-10Rollup merge of #134908 - madsmtm:ptr-from_ref-docs, r=ibraheemdevMatthias Krüger-2/+2
Fix `ptr::from_ref` documentation example comment The comment says that the expression involves no function call, but that was only true for the example above, the example here _does_ contain a function call. ``@rustbot`` label A-docs
2025-01-10Rollup merge of #134855 - estebank:default-field-values-unstable-docs, ↵Matthias Krüger-0/+93
r=jieyouxu Add `default_field_values` entry to unstable book Tracking issue: https://github.com/rust-lang/rust/issues/132162 RFC: https://github.com/rust-lang/rfcs/blob/master/text/3681-default-field-values.md
2025-01-10Rollup merge of #134619 - hkBst:patch-7, r=jhprattMatthias Krüger-22/+20
Improve prose around `as_slice` example of IterMut I've removed the cryptic message about not being able to call `&mut self` methods while retaining a shared borrow of the iterator, such as `as_slice` produces. This is just normal borrowing rules and does not seem especially relevant here. I can whip up a replacement if someone thinks it has value.
2025-01-10Rollup merge of #133088 - the8472:randomize-me-harder, r=workingjubileeMatthias Krüger-78/+400
`-Zrandomize-layout` harder. `Foo<T> != Foo<U>` Tracking issue: #106764 Previously randomize-layout only used a deterministic shuffle based on the seed stored in an Adt's ReprOptions, meaning that `Foo<T>` and `Foo<U>` were shuffled by the same seed. This change adds a similar seed to each calculated LayoutData so that a struct can be randomized both based on the layout of its fields and its per-type seed. Primitives start with simple seed derived from some of their properties. Though some types can no longer be distinguished at that point, e.g. usize and u64 will still be treated the same.
2025-01-10Auto merge of #135297 - flip1995:clippy-subtree-update, r=matthiaskrgrbors-436/+2004
Clippy subtree update r? `@Manishearth`
2025-01-10test that coercions still work under randomizationThe 8472-8/+40
2025-01-10also initialize Layout field in rust-analyzerThe 8472-0/+4
2025-01-10exclude unsizable tail from randomization seed calculationThe 8472-16/+13
2025-01-10adjust UI testsThe 8472-71/+248
2025-01-10Foo<T> != Foo<U> under layout randomizationThe 8472-2/+114
previously field ordering was using the same seed for all instances of Foo, now we pass seed values through the layout tree so that not only the struct itself affects layout but also its fields
2025-01-10Auto merge of #135303 - Kobzol:ci-fix-name, r=tgross35bors-4/+4
CI: fix name of jobs There is a difference between the `image` (the Dockerfile), the `name` of the job (which determines also its properties) and the `full_name`, which includes the `auto/try/pr` prefix. Missed this in https://github.com/rust-lang/rust/pull/134898.
2025-01-09Rename RegionResolutionVisitor to ScopeResolutionVisitorMichael Goulet-12/+12
2025-01-09Make sure to walk into nested const blocks in RegionResolutionVisitorMichael Goulet-4/+24
2025-01-09Add `default_field_values` entry to unstable bookEsteban Küber-0/+93
2025-01-09Fix `proc_macro::quote!` for raw identAsuna-3/+29
2025-01-09Migrate check-fail tests for `proc_macro::quote!` from `quote` crateAsuna-0/+163
2025-01-09Migrate basic tests for `proc_macro::quote!` from `quote` crateAsuna-0/+368
2025-01-09Append `TokenTree` with `ToTokens` in `proc_macro::quote!`Asuna-66/+87
2025-01-09Add tests cases from review of #132289Frank Steffahn-0/+178
2025-01-09CI: fix name of jobsJakub Beránek-4/+4
There is a difference between the `image` (the Dockerfile), the `name` of the job (which determines also its properties) and the `full_name`, which includes the `auto/try/pr` prefix.
2025-01-09Update Cargo.lockPhilipp Krones-4/+4
2025-01-09Used pthread name functions returning result for FreeBSD and DragonFlyYoh Deadfall-11/+13
2025-01-09Merge commit '19e305bb57a7595f2a8d81f521c0dd8bf854e739' into ↵Philipp Krones-432/+2000
clippy-subtree-update
2025-01-09Make bare-fn test less dependent on path widthChris Denton-6/+8
2025-01-09Rustup (#13970)Philipp Krones-46/+86
r? @ghost changelog: none
2025-01-09Bump Clippy version -> 0.1.86Philipp Krones-4/+4
2025-01-09Bump nightly version -> 2024-01-09Philipp Krones-2/+2
2025-01-09Merge remote-tracking branch 'upstream/master' into rustupPhilipp Krones-520/+2116