Commit Graph

303456 Commits

Author SHA1 Message Date
Ayush Singh
aa2c24b03b uefi: Add OwnedEvent abstraction
- Events are going to become quite important for Networking, so needed
  owned abstractions.
- Switch to OwnedEvent abstraction for Exit boot services event.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2025-03-17 01:14:14 +05:30
Jakub Beránek
b2fda93aac Add a note to rustc-dev-guide 2025-03-16 20:42:37 +01:00
bors
227690a258 Auto merge of #137011 - LuuuXXX:promote-ohos-with-host-tools, r=Amanieu
Promote ohos targets to tier2 with host tools.

### What does this PR try to resolve?

Try to promote the following [[Tier 2 without Host Tools](https://doc.rust-lang.org/rustc/platform-support.html#tier-2-without-host-tools)](https://doc.rust-lang.org/rustc/platform-support.html#tier-2-without-host-tools) targets to [[Tier 2 with Host Tools](https://doc.rust-lang.org/rustc/platform-support.html#tier-2-with-host-tools)](https://doc.rust-lang.org/rustc/platform-support.html#tier-2-with-host-tools):

- `aarch64-unknown-linux-ohos`
- `armv7-unknown-linux-ohos`
- `x86_64-unknown-linux-ohos`

### More Information?

see MCP: https://github.com/rust-lang/compiler-team/issues/811

### Blockage to be solved?

- [x] Submit an MCP
- [x] Submit code of promote ohos targets
- [x] Resolve related dependencies (`measureme`)

The modified code of the measureme has been merged (see https://github.com/rust-lang/measureme/pull/238). [done]
The new version will was released (https://github.com/rust-lang/measureme/pull/240). [done]
2025-03-16 18:42:18 +00:00
tk
b23fcb0147 fix: bad indent in doc comments
Sometimes, in doc comments, there are 3 spaces + 1 instead of 4 spaces + 1.
To make it coherent with the rest of the clippy codebase, I `fd -t f -X sed -E -i 's,///    (\S),///     \1,g'` and manually verified and fixed the relevant part of code that had bad indentation.
2025-03-16 19:36:09 +01:00
Michael Goulet
9eab078065 Suppress must_use in compiler and tools 2025-03-16 17:47:57 +00:00
Michael Goulet
e250bd16da Suppress must_use for ControlFlow in rust-analyzer 2025-03-16 17:47:57 +00:00
Michael Goulet
380ce74401 Suppress must_use in compiler and tools 2025-03-16 17:47:57 +00:00
Michael Goulet
2439623278 Make ControlFlow must_use 2025-03-16 17:47:56 +00:00
Laurențiu Nicola
2e7901e90c Merge pull request #19374 from lnicola/nextest
minor: Use cargo nextest on CI
2025-03-16 17:38:08 +00:00
Lukas Wirth
4848b1bc89 Merge pull request #19355 from Veykril/push-nzknrnouutnp
internal: Render root syntax contexts more clearly
2025-03-16 17:30:57 +00:00
Samuel Tardieu
4d0d6f591d Cleanup: use Mutability::ptr_str() method 2025-03-16 18:17:18 +01:00
bjorn3
92e5c1a44d Merge pull request #1564 from rust-lang/fix_arm64_asm_vector_regs
Fix usage of vector registers in inline asm on arm64
2025-03-16 18:01:11 +01:00
Yang Lin
9a2d1fdb14 Following commit 401dd84 in the Rust project
(https://github.com/rust-lang/rust),
`ErrorGuaranteed` was replaced by fatal errors.
As a result, `tcx.analysis()` now aborts directly
instead of returning an error guard.
To accommodate this change, this update replaces
`tcx.analysis()` with `typeck()`
to perform type checking in the example.
2025-03-16 23:43:17 +08:00
Yang Lin
a4b76e31f8 Adapt to rust-lang/rust#136466:
Start removing `rustc_middle::hir::map::Map`

Following commit f86f7ad from pull request #136466
in the Rust project
(https://github.com/rust-lang/rust),
some methods in `Map` were moved to `TyCtxt`.
This update reimplements `rustc-drive-example.rs`,
`rustc-driver-interacting-with-the-ast.rs`,
and `rustc-interface-example.rs` using the new
versions of these methods, ensuring compatibility
with the nightly-2025-03-08 toolchain.
2025-03-16 23:27:10 +08:00
Lukas Wirth
68d08a542c internal: Render root syntax contexts more clearly 2025-03-16 16:26:07 +01:00
Lukas Wirth
a68616f98d internal: Symbol is not PartialOrd 2025-03-16 16:06:06 +01:00
Alex Macleod
775a5c2712 fix incorrect suggestions related to parentheses in needless_return (#14094)
close #12157

`needless_return` sometimes makes incorrect suggestions by omitting
necessary enclosing parentheses. This PR resolves the issue by using
`clippy_utils::sugg::Sugg`.

changelog: [`needless_return`]: now makes correct suggestions which
require enclosing parentheses
2025-03-16 15:03:14 +00:00
bjorn3
5bb37b7580 Fix usage of vector registers in inline asm on arm64 2025-03-16 14:55:32 +00:00
Fridtjof Stoldt
1617a2e519 Remove @xFrednet from docs 👋 (#14415)
Cleaning up the last few loose ends. To everyone reading this: I hope
you have a beautiful day!

changelog: none

r? @ghost
2025-03-16 14:52:51 +00:00
Fridtjof Stoldt
3c7dfacf44 new lint: doc_comment_double_space_linebreaks (#12876)
Fixes https://github.com/rust-lang/rust-clippy/issues/12163

I decided to initially make this a restriction lint because it felt a
bit niche and opinionated to be a warn-by-default style lint. It may be
appropriate as a style lint if the standard or convention *is* to use
`\` as doc comment linebreaks - not sure if they are!

The wording on the help message could be improved, as well as the name
of the lint itself since it's a bit wordy - suggestions welcome.

This lint works on both `///` and `//!` doc comments.

changelog: new lint: `doc_comment_double_space_linebreaks`
2025-03-16 14:44:02 +00:00
Lukas Wirth
d89aefd5f2 Merge pull request #19376 from Veykril/push-ultzutkwqupt
minor: Remove unnecessary allocations in `function::params_display`
2025-03-16 14:35:16 +00:00
bors
8b87fefd76 Auto merge of #138537 - yotamofek:pr/lib/multi-char-pattern, r=jhpratt
Optimize multi-char string patterns

Uses specialization for `[T]::contains` from #130991 to optimize multi-char patterns in string searches.
Requesting a perf run to see if this actually has an effect 🙏
(I think that adding `char` to the list of types for which the `SliceContains` is specialized is a good idea, even if it doesn't show up on perf - might be helpful for downstream users)
2025-03-16 14:23:18 +00:00
xFrednet
9845b100ec Remove @xFrednet from docs 👋 2025-03-16 15:19:49 +01:00
Lukas Wirth
a51070ba88 minor: Remove unnecessary allocations in function::params_display 2025-03-16 15:19:25 +01:00
Jieyou Xu
24edbfbc24 Rename PrintKind::{AllTargetSpecs,TargetSpec} to {AllTargetSpecsJson,TargetSpecJson}
To correspond to their actual print request names, `target-spec-json`
and `all-target-specs-json`, and for consistency with other print name
<-> print kind mappings.
2025-03-16 21:56:02 +08:00
Jieyou Xu
f9eabc28d9 Extract print request stability gating and unknown print request help into helpers
To avoid duplicating stability check logic and make the print request
collection logic more straightforward.
2025-03-16 21:56:02 +08:00
Jieyou Xu
5f8e0920f9 Alphabetically sort PrintKind and enforce with tidy 2025-03-16 21:56:02 +08:00
Jieyou Xu
ab7fb0d483 Add a centralized test for print request stability gating
I can't find any dedicated tests that actually exercises the stability
gating (via `-Z unstable-options`) of print requests, so here's a
dedicated one.

I coalesced `tests/ui/feature-gates/feature-gate-print-check-cfg.rs`
into this test, because AFAICT that print request is not feature gated,
but only `-Z unstable-options`-gated just like other unstable print
requests.
2025-03-16 21:56:01 +08:00
Folkert de Vries
ac7e696e64 add vec_nmadd 2025-03-16 13:50:11 +00:00
Folkert de Vries
f44b1845d3 add vec_gfmsum_accum and vec_gfmsum_accum_128 2025-03-16 13:50:11 +00:00
Folkert de Vries
2207ace2cc add vec_gfmsum_128 2025-03-16 13:50:11 +00:00
Folkert de Vries
d10f272da5 add vec_gfmsum 2025-03-16 13:50:11 +00:00
Folkert de Vries
7ea1b873de clarify fixme waiting for a newer llvm version 2025-03-16 13:50:11 +00:00
Folkert de Vries
01182e5a75 add vec_nmsub 2025-03-16 13:50:11 +00:00
Folkert de Vries
baec44b6da add vec_mule 2025-03-16 13:50:11 +00:00
Folkert de Vries
ea91fd9164 add vec_add_u128, vec_addc_u128, vec_adde_u128 and vec_addce_u128 2025-03-16 13:50:11 +00:00
Folkert de Vries
f9750fbb9c add vec_checksum 2025-03-16 13:50:11 +00:00
Folkert de Vries
8a7d50ae1b add vec_avg 2025-03-16 13:50:11 +00:00
Folkert de Vries
37706d107d add vec_unpackh and vec_unpackl 2025-03-16 13:50:11 +00:00
Folkert de Vries
08735d3a7e correct name of signed splat functions 2025-03-16 13:50:11 +00:00
Folkert de Vries
167b13e6d3 test vec_rl 2025-03-16 13:50:11 +00:00
Folkert de Vries
0b0f5193cb add vec_madd and vec_msub 2025-03-16 13:50:11 +00:00
Folkert de Vries
3a0ba7f08e add vec_packs_cc and vec_packsu_cc 2025-03-16 13:50:11 +00:00
Folkert de Vries
34629d4d20 add vec_pack, vec_packs and vec_packsu 2025-03-16 13:50:11 +00:00
Folkert de Vries
6abac3ce99 add vec_load_bndry, __lcbb and vec_load_pair 2025-03-16 13:50:11 +00:00
Folkert de Vries
5092b69ef0 add vec_load_len_r and vec_store_len_r 2025-03-16 13:50:11 +00:00
Folkert de Vries
6761c73789 add vec_load_len and vec_store_len 2025-03-16 13:50:11 +00:00
Folkert de Vries
3813933b58 add vec_xl and vec_xst 2025-03-16 13:50:11 +00:00
Folkert de Vries
e4d33640d0 add vec_reve 2025-03-16 13:50:11 +00:00
Guillaume Gomez
bacd57a583 Add integer to string formatting tests 2025-03-16 14:45:19 +01:00