Skip to content

Conversation

@folkertdev
Copy link
Contributor

@folkertdev folkertdev commented Jan 24, 2026

tracking issue: #81391
tracking issue: #75835

r? davidtwco
cc @RalfJung

context: rust-lang/rfcs#3884 (comment)

I believe this is more reliable, and no longer relies on BackendRepr. I also added a test specifically for using repr(Rust).

@folkertdev folkertdev added F-cmse_nonsecure_entry `#![feature(cmse_nonsecure_entry)]` F-abi_cmse_nonsecure_call `#![feature(abi_cmse_nonsecure_call)]` labels Jan 24, 2026
@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jan 24, 2026
@rustbot
Copy link
Collaborator

rustbot commented Jan 24, 2026

HIR ty lowering was modified

cc @fmease

// Accept (transparently wrapped) scalar 64-bit primitives.
matches!(
layout.ty.kind(),
ty::Int(ty::IntTy::I64) | ty::Uint(ty::UintTy::U64) | ty::Float(ty::FloatTy::F64)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...I was about to ask about pointers but then remembered this is 32-bit.

@rustbot

This comment has been minimized.

Copy link
Member

@davidtwco davidtwco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me after addressing nit

View changes since this review

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 5, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 5, 2026

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@folkertdev folkertdev force-pushed the cmse-unwrap-transparent branch from 8d3215e to 685e692 Compare February 5, 2026 18:32
@rustbot
Copy link
Collaborator

rustbot commented Feb 5, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@rust-log-analyzer

This comment has been minimized.

@folkertdev folkertdev force-pushed the cmse-unwrap-transparent branch from 685e692 to e73c02e Compare February 5, 2026 19:01
@rust-log-analyzer

This comment has been minimized.

@folkertdev folkertdev force-pushed the cmse-unwrap-transparent branch from e73c02e to eb9d515 Compare February 6, 2026 00:04
@folkertdev
Copy link
Contributor Author

@bors r=davidtwco

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 6, 2026

📌 Commit eb9d515 has been approved by davidtwco

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 6, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 6, 2026
…, r=davidtwco

cmse: don't use `BackendRepr` when checking return type

tracking issue: rust-lang#81391
tracking issue: rust-lang#75835

r? davidtwco
cc @RalfJung

context: rust-lang/rfcs#3884 (comment)

I believe this is more reliable, and no longer relies on `BackendRepr`. I also added a test specifically for using `repr(Rust)`.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Feb 6, 2026
…, r=davidtwco

cmse: don't use `BackendRepr` when checking return type

tracking issue: rust-lang#81391
tracking issue: rust-lang#75835

r? davidtwco
cc @RalfJung

context: rust-lang/rfcs#3884 (comment)

I believe this is more reliable, and no longer relies on `BackendRepr`. I also added a test specifically for using `repr(Rust)`.
rust-bors bot pushed a commit that referenced this pull request Feb 6, 2026
…uwer

Rollup of 6 pull requests

Successful merges:

 - #151590 (cmse: don't use `BackendRepr` when checking return type)
 - #151945 (feat: Add `NonZero::<T>::from_str_radix`)
 - #152000 (Fix ICE in normalizing inherent associated consts with `#[type_const]`)
 - #152192 (Always use Xcode-provided Clang in macOS CI)
 - #152196 (bootstrap: Remove `ShouldRun::paths`)
 - #152222 (Re-add TaKO8Ki to triagebot review queue)
@rust-bors rust-bors bot merged commit 9f0eba2 into rust-lang:main Feb 6, 2026
11 checks passed
@rustbot rustbot added this to the 1.95.0 milestone Feb 6, 2026
rust-timer added a commit that referenced this pull request Feb 6, 2026
Rollup merge of #151590 - folkertdev:cmse-unwrap-transparent, r=davidtwco

cmse: don't use `BackendRepr` when checking return type

tracking issue: #81391
tracking issue: #75835

r? davidtwco
cc @RalfJung

context: rust-lang/rfcs#3884 (comment)

I believe this is more reliable, and no longer relies on `BackendRepr`. I also added a test specifically for using `repr(Rust)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

F-abi_cmse_nonsecure_call `#![feature(abi_cmse_nonsecure_call)]` F-cmse_nonsecure_entry `#![feature(cmse_nonsecure_entry)]` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants