Skip to content

Explicitly mention float rounding mode and exception behavior assumption - #2387

Merged
traviscross merged 1 commit into
rust-lang:masterfrom
RalfJung:float-rounding-mode
Nov 10, 2026
Merged

traviscross merged 1 commit into
rust-lang:masterfrom
RalfJung:float-rounding-mode

Conversation

@RalfJung

Copy link
Copy Markdown
Member

Cc @rust-lang/opsem
Fixes rust-lang/unsafe-code-guidelines#471

@rustbot rustbot added the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Oct 14, 2026
@RalfJung
RalfJung force-pushed the float-rounding-mode branch from 10b224a to bf1240f Compare October 20, 2026 20:34
@RalfJung

Copy link
Copy Markdown
Member Author

I have amended this to also mention exception behavior -- we assume that exceptions are disabled.

@RalfJung RalfJung changed the title explicitly mention float rounding mode assumption explicitly mention float rounding mode and exception behavior assumption Oct 20, 2026
@traviscross traviscross changed the title explicitly mention float rounding mode and exception behavior assumption Explicitly mention float rounding mode and exception behavior assumption Nov 10, 2026
@traviscross

Copy link
Copy Markdown
Contributor

Thanks @RalfJung.

@traviscross
traviscross added this pull request to the merge queue Nov 10, 2026
Merged via the queue into rust-lang:master with commit bcd62f3 Nov 10, 2026
8 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: The marked PR is awaiting review from a maintainer label Nov 10, 2026
@RalfJung
RalfJung deleted the float-rounding-mode branch November 15, 2026 16:11
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 16, 2026
Update books

## rust-lang/reference

4 commits in a2ae66d7037cbedac68746b9510b24cc34b96d69..bcd62f35e8bf480ec5b0fa569b6d12ea5924030c
2026-11-10 19:28:09 UTC to 2026-11-10 19:14:30 UTC

- Explicitly mention float rounding mode and exception behavior assumption (rust-lang/reference#2387)
- Update docs for inline_always + target_feature (rust-lang/reference#2391)
- `asm.options.global_asm-restriction`: show error output (rust-lang/reference#2395)
- Document the WebAssembly `wide-arithmetic` target feature (rust-lang/reference#2324)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 16, 2026
Update books

## rust-lang/reference

4 commits in a2ae66d7037cbedac68746b9510b24cc34b96d69..bcd62f35e8bf480ec5b0fa569b6d12ea5924030c
2026-11-10 19:28:09 UTC to 2026-11-10 19:14:30 UTC

- Explicitly mention float rounding mode and exception behavior assumption (rust-lang/reference#2387)
- Update docs for inline_always + target_feature (rust-lang/reference#2391)
- `asm.options.global_asm-restriction`: show error output (rust-lang/reference#2395)
- Document the WebAssembly `wide-arithmetic` target feature (rust-lang/reference#2324)
Zalathar added a commit to Zalathar/rust that referenced this pull request Nov 17, 2026
Update books

## rust-lang/reference

4 commits in a2ae66d7037cbedac68746b9510b24cc34b96d69..bcd62f35e8bf480ec5b0fa569b6d12ea5924030c
2026-11-10 19:28:09 UTC to 2026-11-10 19:14:30 UTC

- Explicitly mention float rounding mode and exception behavior assumption (rust-lang/reference#2387)
- Update docs for inline_always + target_feature (rust-lang/reference#2391)
- `asm.options.global_asm-restriction`: show error output (rust-lang/reference#2395)
- Document the WebAssembly `wide-arithmetic` target feature (rust-lang/reference#2324)
@rustbot rustbot added this to the 1.102.0 milestone Nov 17, 2026
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Nov 17, 2026
Rollup merge of #166066 - rustbot:docs-update, r=traviscross

Update books

## rust-lang/reference

4 commits in a2ae66d7037cbedac68746b9510b24cc34b96d69..bcd62f35e8bf480ec5b0fa569b6d12ea5924030c
2026-11-10 19:28:09 UTC to 2026-11-10 19:14:30 UTC

- Explicitly mention float rounding mode and exception behavior assumption (rust-lang/reference#2387)
- Update docs for inline_always + target_feature (rust-lang/reference#2391)
- `asm.options.global_asm-restriction`: show error output (rust-lang/reference#2395)
- Document the WebAssembly `wide-arithmetic` target feature (rust-lang/reference#2324)
github-actions Bot pushed a commit to rust-lang/stdarch that referenced this pull request Nov 19, 2026
Update books

## rust-lang/reference

4 commits in a2ae66d7037cbedac68746b9510b24cc34b96d69..bcd62f35e8bf480ec5b0fa569b6d12ea5924030c
2026-11-10 19:28:09 UTC to 2026-11-10 19:14:30 UTC

- Explicitly mention float rounding mode and exception behavior assumption (rust-lang/reference#2387)
- Update docs for inline_always + target_feature (rust-lang/reference#2391)
- `asm.options.global_asm-restriction`: show error output (rust-lang/reference#2395)
- Document the WebAssembly `wide-arithmetic` target feature (rust-lang/reference#2324)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is Changing the Floating-point environment for intrinsic/assembly code UB?

5 participants