Commit Graph

303456 Commits

Author SHA1 Message Date
Geoffrey Thomas
0c2f4359fd Fix sentence fragment in pin module docs
Looks like this was inadvertently dropped in 8241ca60. Restore the words from before that commit.
2024-12-28 22:21:04 -05:00
bors
480eec0692 Auto merge of #134867 - rust-lang:cargo_update, r=clubby789
Weekly `cargo update`

Automation to keep dependencies in `Cargo.lock` current.

The following is the output from `cargo update`:

```txt

compiler & tools dependencies:
     Locking 8 packages to latest compatible versions
    Updating anyhow v1.0.94 -> v1.0.95
    Updating glob v0.3.1 -> v0.3.2
    Updating quote v1.0.37 -> v1.0.38
    Updating rustversion v1.0.18 -> v1.0.19
    Updating serde v1.0.216 -> v1.0.217
    Updating serde_derive v1.0.216 -> v1.0.217
    Updating syn v2.0.90 -> v2.0.93
    Updating unicase v2.8.0 -> v2.8.1
note: pass `--verbose` to see 36 unchanged dependencies behind latest

library dependencies:
     Locking 0 packages to latest compatible versions
note: pass `--verbose` to see 5 unchanged dependencies behind latest

rustbook dependencies:
     Locking 7 packages to latest compatible versions
    Updating anyhow v1.0.94 -> v1.0.95
    Updating cc v1.2.5 -> v1.2.6
    Updating quote v1.0.37 -> v1.0.38
    Updating serde v1.0.216 -> v1.0.217
    Updating serde_derive v1.0.216 -> v1.0.217
    Updating syn v2.0.90 -> v2.0.93
    Updating unicase v2.8.0 -> v2.8.1
```
2024-12-29 03:16:29 +00:00
bors
0b63477350 Auto merge of #134864 - Zalathar:rollup-suc8ay9, r=Zalathar
Rollup of 3 pull requests

Successful merges:

 - #134849 (compiletest: Slightly simplify the handling of debugger directive prefixes)
 - #134850 (Document virality of `feature(rustc_private)`)
 - #134852 (Added a codegen test for optimization with const arrays)

r? `@ghost`
`@rustbot` modify labels: rollup
2024-12-29 00:38:26 +00:00
clubby789
8c8fed7ea9 Bump compiler cc 2024-12-29 00:30:32 +00:00
github-actions
519c233cbb cargo update
compiler & tools dependencies:
     Locking 8 packages to latest compatible versions
    Updating anyhow v1.0.94 -> v1.0.95
    Updating glob v0.3.1 -> v0.3.2
    Updating quote v1.0.37 -> v1.0.38
    Updating rustversion v1.0.18 -> v1.0.19
    Updating serde v1.0.216 -> v1.0.217
    Updating serde_derive v1.0.216 -> v1.0.217
    Updating syn v2.0.90 -> v2.0.93
    Updating unicase v2.8.0 -> v2.8.1
note: pass `--verbose` to see 36 unchanged dependencies behind latest

library dependencies:
     Locking 0 packages to latest compatible versions
note: pass `--verbose` to see 5 unchanged dependencies behind latest

rustbook dependencies:
     Locking 7 packages to latest compatible versions
    Updating anyhow v1.0.94 -> v1.0.95
    Updating cc v1.2.5 -> v1.2.6
    Updating quote v1.0.37 -> v1.0.38
    Updating serde v1.0.216 -> v1.0.217
    Updating serde_derive v1.0.216 -> v1.0.217
    Updating syn v2.0.90 -> v2.0.93
    Updating unicase v2.8.0 -> v2.8.1
2024-12-29 00:22:58 +00:00
Piotr Osiewicz
563920ce14 rustc_codegen_ssa: Buffer file writes in link_rlib
This makes this step take ~25ms on my machine (M3 Max 64GB) for Zed repo instead of ~150ms. Additionally it takes down the time needed for a clean cargo build of ripgrep from ~6.1s to 5.9s.
This change is mostly relevant for crates with multiple large CGUs.
2024-12-29 01:17:18 +01:00
llogiq
786f090bb9 Do not trigger trailing_empty_array in tests (#13844)
Close #13837

changelog: [`trailing_empty_array`]: do not trigger on tests
2024-12-29 00:10:58 +00:00
Martin Liška
e19542f0a9 Start using mdbook-linkcheck2 (#2103) 2024-12-28 15:00:32 -08:00
Stuart Cook
0a52407d43 Rollup merge of #134852 - alex:patch-1, r=durin42
Added a codegen test for optimization with const arrays

Closes #107208
2024-12-29 10:00:19 +11:00
Stuart Cook
8060f58150 Rollup merge of #134850 - tamird:rustc-private-book-update, r=bjorn3
Document virality of `feature(rustc_private)`

Closes #134825.

r? `@bjorn3`
2024-12-29 10:00:18 +11:00
Stuart Cook
a8a10110e0 Rollup merge of #134849 - Zalathar:debuginfo-prefixes, r=lqd,clubby789,jieyouxu
compiletest: Slightly simplify the handling of debugger directive prefixes

The `cdbg-` prefix is not used by any tests in `tests/debuginfo`, and perhaps there never were any tests that used it.

Getting rid of it also lets us get rid of the code for parsing multiple prefixes at the same time, since every debugger now has exactly one prefix.
2024-12-29 10:00:18 +11:00
Ralf Jung
943894289b epoll: avoid some clones 2024-12-28 23:53:25 +01:00
Alexis (Poliorcetics) Bourget
f5c497529c nits: librustdoc::clean
- librustdoc::clean::clean_lifetime doesn't need a mut doc context
- librustdoc::clean::normalize doesn't need a mut doc context
- move Some() wrapping up into `clean_predicate()`
- simplify nested if in librustdoc::clean::record_extern_fqn()
2024-12-28 23:53:18 +01:00
bors
b76036c88c Auto merge of #134848 - Zalathar:check-compiletest, r=jieyouxu
bootstrap: Allow `./x check compiletest`

Did you know that bootstrap didn't support `./x check compiletest`? Well, now it does!

Manually add `"compiletest"` to your `rust-analyzer.check.overrideCommand` check command to get error/warning integration when modifying compiletest.
2024-12-28 22:00:11 +00:00
bjorn3
4cc1c9036d Use -ffunction-sections by default again
Cranelift now uses the same section name for all subsections which
reduces the size overhead of -ffunction-sections.
2024-12-28 21:42:01 +00:00
Chayim Refael Friedman
30fa18c44f Consider Enum::Variant even when it comes from a different crate 2024-12-28 22:43:51 +02:00
bjorn3
7f98f34420 Update to Cranelift 0.115 2024-12-28 20:06:43 +00:00
Guillaume Gomez
00bf8717e3 Add GUI test for item info elements color 2024-12-28 20:54:00 +01:00
Ralf Jung
22fd2f39ee Merge pull request #4114 from RalfJung/fd-ref-refactor
FD handling: avoid unnecessary dynamic downcasts
2024-12-28 19:48:14 +00:00
Lukas Wirth
bf27d88616 Show variance of parameters on hover 2024-12-28 20:31:20 +01:00
Alex Gaynor
d6c73ebbf3 Added a codegen test for optimization with const arrays
Closes #107208
2024-12-28 13:28:35 -06:00
bors
8742e0556d Auto merge of #134845 - jieyouxu:temp-drop-warning, r=onur-ozkan
bootstrap: drop warning for top-level test suite path check due to false positives

The current top-level test suite directory does not exist warning logic doesn't quite handle the more exotic path suffix matches that test filters seem to accept (e.g. `library/test` can be matched with `--exclude test`), so avoid warning on non-existent top-level test suites for now. To avoid false positives, we probably need to query test `Step`s for their `should_run(exclude_filter)` logic.

This retains the fix for the Windows path handling (unlike #134843).

r? `@onur-ozkan`
2024-12-28 19:20:22 +00:00
Lukas Wirth
e54cf80b98 Simplify 2024-12-28 19:54:22 +01:00
Lukas Wirth
d66a337658 Get rid of constrain and solve steps 2024-12-28 19:54:22 +01:00
Lukas Wirth
0e50c3c81b Remove unnecessary VarianceTerm 2024-12-28 19:54:22 +01:00
Lukas Wirth
4ea29d619c Implement parameter variance inference 2024-12-28 19:54:22 +01:00
blyxyas
d7cc6c45c8 borrow_interior_mutable_const ICE into FN
Convert the ICE reported in #12979 into a false negative.
We prefer a false negative to a ICE (because the ICE could
still affect the user even when not activating the lint).
2024-12-28 19:42:30 +01:00
Lukas Wirth
47f497d636 Merge pull request #18778 from Veykril/push-oontvoqmxkno
fix: Fix flycheck diagnostics flickering for binary targets
2024-12-28 17:31:11 +00:00
Ralf Jung
7e64216fd5 epoll: keep strong reference while blocking 2024-12-28 18:29:19 +01:00
Lukas Wirth
873cf255de Add DynTyExt::principal_id 2024-12-28 18:26:45 +01:00
Lukas Wirth
73ae6a0ba8 Downgrade salsa log levels 2024-12-28 18:23:24 +01:00
Lukas Wirth
171be2bd58 fix: Fix flycheck diagnostics flickering for binary targets 2024-12-28 18:16:55 +01:00
lengyijun
e582fcd75d [needless_continue]: lint if the last stmt in for/while/loop is continue, recursively
fixes: #4077
2024-12-28 09:58:06 -07:00
Tamir Duberstein
35e5c7d438 Document virality of feature(rustc_private)
Since 9cb1998ea1 this feature is viral.
2024-12-28 11:45:25 -05:00
bors
ceb0441e82 Auto merge of #134790 - onur-ozkan:cfg-test, r=clubby789
replace bootstrap-self-test feature flag with cfg(test)

This makes it in more rusty way.
2024-12-28 16:37:13 +00:00
bjorn3
1723075aff Fix rustc test suite 2024-12-28 16:30:39 +00:00
Ralf Jung
73c44fc368 FD handling: avoid unnecessary dynamic downcasts 2024-12-28 16:02:50 +01:00
bjorn3
a177ed55a7 Rustup to rustc 1.85.0-nightly (dd84b7d5e 2024-12-27) 2024-12-28 14:45:45 +00:00
Lukas Markeffsky
11ad6ff3cb docs: inline alloc::ffi::c_str types to alloc::ffi 2024-12-28 15:42:39 +01:00
bors
3c1e750364 Auto merge of #134547 - SUPERCILEX:unify-copy, r=thomcc
Unify fs::copy and io::copy on Linux

Currently, `fs::copy` first tries a regular file copy (via copy_file_range) and then falls back to userspace read/write copying. We should use `io::copy` instead as it tries copy_file_range, sendfile, and splice before falling back to userspace copying. This was discovered here: https://github.com/SUPERCILEX/fuc/issues/40

Perf impact: `fs::copy` will now have two additional statx calls to decide which syscall to use. I wonder if we should get rid of the statx calls and only continue down the next fallback when the relevant syscalls say the FD isn't supported.
2024-12-28 13:49:45 +00:00
Philipp Krones
998c780126 fix arguments of ExprKind::MethodCall (#13890)
changelog: none
2024-12-28 13:47:09 +00:00
lapla-cogito
09022bbd45 fix arguments of ExprKind::MethodCall 2024-12-28 22:41:29 +09:00
bjorn3
446c582ce0 Sync from rust dd84b7d5ee 2024-12-28 13:32:14 +00:00
Zalathar
2f8824a477 Simplify DebuggerCommands::parse_from to only take one prefix 2024-12-29 00:09:25 +11:00
Zalathar
a625ddd1ed Remove the unused cdbg-* debugger directive prefix
There are no tests in `tests/debuginfo` that use this prefix.
2024-12-29 00:09:25 +11:00
Zalathar
c1c2d85cc9 bootstrap: Allow ./x check compiletest 2024-12-28 23:23:41 +11:00
clubby789
1a99d3bafa Document x test --no-capture (#2174) 2024-12-28 19:55:20 +08:00
bors
4e0bc490c6 Auto merge of #131244 - clubby789:match-branches-unreachable, r=DianQK
Consider empty-unreachable otherwise branches in MatchBranchSimplification

Fixes #131219
2024-12-28 11:09:28 +00:00
许杰友 Jieyou Xu (Joe)
c393811a48 bootstrap: drop warning for top-level test suite path check
This doesn't quite handle the more exotic path suffix matches that test
filters seem to accept (e.g. `library/test` can be matched with
`--exclude test`), so avoid warning on non-existent top-level test
suites for now. A proper fix will need to possibly query test `Step`s
for their exclude logic.
2024-12-28 17:55:05 +08:00
Stuart Cook
dec978fb3b Remove the -test suffix from normalize directives (#2172) 2024-12-28 17:32:43 +08:00