Yotam Ofek
ea15f6d792
librustdoc: lazily format some paths
2025-02-14 14:50:05 +00:00
Yotam Ofek
5c5763a6cf
librustdoc: lazily format list of aliases in render_impl_summary
2025-02-14 14:50:05 +00:00
Yotam Ofek
bc061858d2
librustdoc: make item_path formatting lazy
2025-02-14 14:50:04 +00:00
Yotam Ofek
cf097d5d7f
librustdoc: make notable_traits_button formatting lazy
2025-02-14 14:50:04 +00:00
Yotam Ofek
fb33cd20d3
librustdoc: make assoc_href_attr formatting lazy
2025-02-14 14:50:04 +00:00
Yotam Ofek
9436b4a75b
librustdoc: make bounds formatting lazy
2025-02-14 14:50:04 +00:00
Yotam Ofek
e4636e2613
librustdoc: create MaybeDisplay helper for Option<T: Display> types
2025-02-14 14:49:59 +00:00
Philipp Krones
823b81869a
Make rust_tools_util package compatible with current stable by lowering rust edition to 2021. ( #14211 )
...
Between the release of v0.4.0 and v0.4.1 the edition was pushed to 2024
by
a4805ff610
changelog: Use edition=2021 in `rustc_tools_util`
2025-02-14 14:49:00 +00:00
Sebastian Jeltsch
f7f7888041
Make rust_tools_util package compatible with current stable by lowering rust edition to 2021.
2025-02-14 15:44:08 +01:00
bors
bdc97d1046
Auto merge of #136575 - scottmcm:nsuw-math, r=nikic
...
Set both `nuw` and `nsw` in slice size calculation
There's an old note in the code to do this, and now that [LLVM-C has an API for it](f0b8ff1251/llvm/include/llvm-c/Core.h (L4403-L4408) ), we might as well. And it's been there since what looks like LLVM 17 de9b6aa341 so doesn't even need to be conditional.
(There's other places, like `RawVecInner` or `Layout`, that might want to do things like this too, but I'll leave those for a future PR.)
2025-02-14 14:21:29 +00:00
bors
5e0f1f6c28
Auto merge of #136575 - scottmcm:nsuw-math, r=nikic
...
Set both `nuw` and `nsw` in slice size calculation
There's an old note in the code to do this, and now that [LLVM-C has an API for it](f0b8ff1251/llvm/include/llvm-c/Core.h (L4403-L4408) ), we might as well. And it's been there since what looks like LLVM 17 de9b6aa341 so doesn't even need to be conditional.
(There's other places, like `RawVecInner` or `Layout`, that might want to do things like this too, but I'll leave those for a future PR.)
2025-02-14 14:21:29 +00:00
Catherine Flores
50ecb6e846
doc_link_code: add check for links with code spans that render weird ( #14121 )
...
This is the lint described at
https://github.com/rust-lang/rust/pull/136308#issuecomment-2625485331
that recommends using HTML to nest links inside code.
changelog: [`doc_link_code`]: warn when a link with code and a code span
are back-to-back
2025-02-14 13:55:33 +00:00
Pietro Albini
08b4f6d2c6
generate-copyright: pass the list of manifests from bootstrap
2025-02-14 14:55:24 +01:00
Pietro Albini
36c314cfb7
generate-copyright: pass the source root from bootstrap
2025-02-14 14:55:22 +01:00
bjorn3
f1b4a1d0d1
Remove the build script for miri
...
Setting the TARGET env var can be replaced with using
rustc_session::config::host_tuple at runtime. And the check-cfg can be
replaced with using the lints section in Cargo.toml.
2025-02-14 13:01:01 +00:00
Xelph
7d1262adf2
Add new ui test for returning an Fn trait that returns impl Trait
...
Change description from compiletest to regression test
Co-authored-by: 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com >
Improve test name, location, and description
Update tests/ui/impl-trait/impl-fn-rpit-opaque-107883.rs
Co-authored-by: waffle <waffle.lapkin@gmail.com >
2025-02-14 05:55:30 -07:00
Zalathar
92fc085080
More comments for lower_inline_const
2025-02-14 23:35:54 +11:00
Zalathar
c3eea531fd
Clarify control-flow in lower_path
2025-02-14 23:35:54 +11:00
Zalathar
1284765cff
Rename PatCtxt::lower_lit to lower_pat_expr
...
This matches the HIR changes in #134228 , which introduced `PatExpr` to hold the
subset of "expressions" that can appear in a pattern.
2025-02-14 23:32:16 +11:00
Kornel
00964aa401
Add safe new to NotAllOnes
2025-02-14 12:00:13 +00:00
Jakub Beránek
0d0a2a3bea
Do not pass empty AWS keys to sccache in PR builds
2025-02-14 12:30:50 +01:00
Jakub Beránek
5789fc0db1
Add sccache S3 region
2025-02-14 12:30:07 +01:00
Jakub Beránek
f240986b8a
Print advanced sccache statistics
2025-02-14 12:30:03 +01:00
Jakub Beránek
ef7534a552
Update sccache version used on CI to 0.9.1
2025-02-14 12:29:59 +01:00
bjorn3
de27d8593d
Update to newer Ubuntu in CI for distributing precompiled artifacts
...
GHA is going to remove support for ubuntu-20.04 in a couple of months
2025-02-14 10:57:29 +00:00
bjorn3
9147b6dd28
Add test
2025-02-14 10:54:56 +00:00
bjorn3
736ef0a4ce
Don't error when adding a staticlib with bitcode files compiled by newer LLVM
2025-02-14 10:54:21 +00:00
dianne
2ea9e1d796
further simplify a match
2025-02-14 02:44:22 -08:00
Guillaume Gomez
38b5bfce24
Add GUI test for code wrapping
2025-02-14 11:41:28 +01:00
Guillaume Gomez
10d666f3d6
Update rustdoc-gui test
2025-02-14 11:41:28 +01:00
Guillaume Gomez
599f88d771
Add new setting to wrap source code lines when too long
2025-02-14 11:41:28 +01:00
bjorn3
aa9cbd7c3c
Rustup to rustc 1.86.0-nightly ( a567209da 2025-02-13)
2025-02-14 10:17:47 +00:00
MarcoIeni
00683a05c2
CI: split i686-mingw job to three free runners
2025-02-14 11:10:01 +01:00
bjorn3
c0c106d4aa
Sync from rust a567209daa
2025-02-14 10:08:19 +00:00
Nikita Popov
97f6e4d34b
Quote embedded codeview command line arguments
...
The formatting of the command line arguments has been moved to the
frontend in:
e190d074a0
However, the Rust logic introduced in
ad0ecebf43
did not replicate the previous argument quoting behavior.
2025-02-14 11:02:28 +01:00
Nikita Popov
bf3e787891
Update to LLVM 20
2025-02-14 11:02:28 +01:00
许杰友 Jieyou Xu (Joe)
27566abd87
Merge pull request #2252 from chenyukang/fix-perf
...
Add note for perf issue
2025-02-14 17:56:04 +08:00
bors
d88ffcdb8b
Auto merge of #136735 - scottmcm:transmute-nonnull, r=oli-obk
...
`transmute` should also assume non-null pointers
Previously it only did integer-ABI things, but this way it does data pointers too. That gives more information in general to the backend, and allows slightly simplifying one of the helpers in slice iterators.
2025-02-14 09:06:17 +00:00
Michael Goulet
fc532c5b32
Trim suggestion parts to the subset that is purely additive
2025-02-14 00:44:10 -08:00
Michael Goulet
6d71251cf9
Trim suggestion parts to the subset that is purely additive
2025-02-14 00:44:10 -08:00
Michael Goulet
f6406dfd4e
Consider add-prefix replacements too
2025-02-14 00:27:17 -08:00
Michael Goulet
b480a9214a
Use underline suggestions for purely 'additive' replacements
2025-02-14 00:27:13 -08:00
Yuki Okushi
f8cc5d763b
Merge pull request #2253 from marxin/fix-link2
...
Fix borked link
2025-02-14 16:45:08 +09:00
Martin Liska
6714f1d933
Start using latest release where -f checks all local links
2025-02-14 07:26:43 +01:00
Martin Liska
a21ffd87c3
Fix borked link
2025-02-14 07:23:10 +01:00
bors
905b1bf1cc
Auto merge of #137010 - workingjubilee:rollup-g00c07v, r=workingjubilee
...
Rollup of 9 pull requests
Successful merges:
- #135439 (Make `-O` mean `OptLevel::Aggressive`)
- #136460 (Simplify `rustc_span` `analyze_source_file`)
- #136904 (add `IntoBounds` trait)
- #136908 ([AIX] expect `EINVAL` for `pthread_mutex_destroy`)
- #136924 (Add profiling of bootstrap commands using Chrome events)
- #136951 (Use the right binder for rebinding `PolyTraitRef`)
- #136981 (ci: switch loongarch jobs to free runners)
- #136992 (Update backtrace)
- #136993 ([cg_llvm] Remove dead error message)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-02-14 06:13:42 +00:00
Lukas Wirth
7f8781419c
Merge pull request #19156 from programmerjake/patch-1
...
add cargo's git checkouts to the list of paths to mark as read-only in vscode
2025-02-14 05:59:17 +00:00
yukang
7d999a5e49
add notes for perf issue
2025-02-14 13:49:02 +08:00
Jubilee
e8d0d00798
Rollup merge of #136993 - dpaoliello:cleanllvm4, r=workingjubilee
...
[cg_llvm] Remove dead error message
Part of #135502
Discovered a dead error message in rustc_codegen_llvm, so removing it.
r? ``@Zalathar``
2025-02-13 21:37:54 -08:00
Jubilee
e961aac3c0
Rollup merge of #136992 - ehuss:update-backtrace, r=workingjubilee
...
Update backtrace
This updates the backtrace submodule.
6 commits in f8cc6ac9acc4e663ecd96f9bcf1ff4542636d1b9..9d2c34e7e63afe1e71c333b247065e3b7ba4d883
2025-01-04 03:37:47 +0100 to 2025-02-13 14:14:18 -0800
- Various cleanups: https://github.com/rust-lang/backtrace-rs/pull/673
- libunwind: Use builtin _Unwind_GetIP for NuttX on ARM platform: https://github.com/rust-lang/backtrace-rs/pull/692
- remove outdated docs part on Dbghelp::ensure_open: https://github.com/rust-lang/backtrace-rs/pull/696
- Cleanup Windows trace modules: https://github.com/rust-lang/backtrace-rs/pull/697
- Attempt to fix ARM32 Windows: https://github.com/rust-lang/backtrace-rs/pull/685
- Prepare backtrace for Rust 2024: https://github.com/rust-lang/backtrace-rs/pull/700
2025-02-13 21:37:53 -08:00