- Notifications
You must be signed in to change notification settings - Fork14.1k
Enable const casting forf16 andf128#127032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
rustbot commentedJun 27, 2024
rustbot has assigned@compiler-errors. Use |
rustbot commentedJun 27, 2024
Some changes occurred to the CTFE / Miri engine cc @rust-lang/miri |
oli-obk commentedJun 27, 2024
bors commentedJun 27, 2024
tgross35 commentedJun 27, 2024
That was fast 😆 thanks! |
oli-obk commentedJun 27, 2024
Technically you should be able to test this from const eval now, right? |
oli-obk commentedJun 27, 2024
@bors rollup |
tgross35 commentedJun 27, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Yeah I think this unblocks the only exposed codepath, the remaining changes in miri are just intrinsics that we don't have library functions for. Miri just has a good structure for casting tests so it seems easiest to make use of what is there |
… r=oli-obkEnable const casting for `f16` and `f128`I have an open PR to the Miri repo adding tests for this behaviorrust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version ofrust-lang/miri#3688.Cc `@RalfJung`
…llaumeGomezRollup of 10 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127010 (Update browser-ui-test version to `0.18.0`) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127016 (docs: check if the disambiguator matches its suffix) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
… r=oli-obkEnable const casting for `f16` and `f128`I have an open PR to the Miri repo adding tests for this behaviorrust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version ofrust-lang/miri#3688.Cc ``@RalfJung``
…iaskrgrRollup of 9 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127010 (Update browser-ui-test version to `0.18.0`) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
… r=oli-obkEnable const casting for `f16` and `f128`I have an open PR to the Miri repo adding tests for this behaviorrust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version ofrust-lang/miri#3688.Cc ```@RalfJung```
… r=oli-obkEnable const casting for `f16` and `f128`I have an open PR to the Miri repo adding tests for this behaviorrust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version ofrust-lang/miri#3688.Cc ````@RalfJung````
…iaskrgrRollup of 8 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
…iaskrgrRollup of 8 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
… r=oli-obkEnable const casting for `f16` and `f128`I have an open PR to the Miri repo adding tests for this behaviorrust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version ofrust-lang/miri#3688.Cc `````@RalfJung`````
…iaskrgrRollup of 8 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
…llaumeGomezRollup of 10 pull requestsSuccessful merges: -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127016 (docs: check if the disambiguator matches its suffix) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`) -rust-lang#127041 (Migrate `run-make/override-aliased-flags` to `rmake.rs`) -rust-lang#127045 (Rename `super_predicates_of` and similar queries to `explicit_*` to note that they're not elaborated) -rust-lang#127075 (rustc_data_structures: Explicitly check for 64-bit atomics support)r? `@ghost``@rustbot` modify labels: rollup
…iaskrgrRollup of 8 pull requestsSuccessful merges: -rust-lang#123237 (Various rustc_codegen_ssa cleanups) -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#126835 (Simplifications in match lowering) -rust-lang#126963 (Add basic Serde serialization capabilities to Stable MIR) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`)r? `@ghost``@rustbot` modify labels: rollup
…iaskrgrRollup of 11 pull requestsSuccessful merges: -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127016 (docs: check if the disambiguator matches its suffix) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`) -rust-lang#127055 (Mark Hasher::finish as #[must_use]) -rust-lang#127068 (Stall computing instance for drop shim until it has no unsubstituted const params) -rust-lang#127070 (add () to the marker_impls macro for ConstParamTy) -rust-lang#127071 (Remove (deprecated & unstable) {to,from}_bits pointer methods) -rust-lang#127078 (Enable full tools and profiler for LoongArch Linux targets)r? `@ghost``@rustbot` modify labels: rollup
…iaskrgrRollup of 11 pull requestsSuccessful merges: -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127016 (docs: check if the disambiguator matches its suffix) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`) -rust-lang#127055 (Mark Hasher::finish as #[must_use]) -rust-lang#127068 (Stall computing instance for drop shim until it has no unsubstituted const params) -rust-lang#127070 (add () to the marker_impls macro for ConstParamTy) -rust-lang#127071 (Remove (deprecated & unstable) {to,from}_bits pointer methods) -rust-lang#127078 (Enable full tools and profiler for LoongArch Linux targets)r? `@ghost``@rustbot` modify labels: rollup
…iaskrgrRollup of 11 pull requestsSuccessful merges: -rust-lang#123714 (Add test for fn pointer duplication.) -rust-lang#124091 (Update AST validation module docs) -rust-lang#127015 (Switch back `non_local_definitions` lint to allow-by-default) -rust-lang#127016 (docs: check if the disambiguator matches its suffix) -rust-lang#127029 (Fix Markdown tables in platform-support.md) -rust-lang#127032 (Enable const casting for `f16` and `f128`) -rust-lang#127055 (Mark Hasher::finish as #[must_use]) -rust-lang#127068 (Stall computing instance for drop shim until it has no unsubstituted const params) -rust-lang#127070 (add () to the marker_impls macro for ConstParamTy) -rust-lang#127071 (Remove (deprecated & unstable) {to,from}_bits pointer methods) -rust-lang#127078 (Enable full tools and profiler for LoongArch Linux targets)r? `@ghost``@rustbot` modify labels: rollup
Rollup merge ofrust-lang#127032 - tgross35:f16-f128-const-eval-cast, r=oli-obkEnable const casting for `f16` and `f128`I have an open PR to the Miri repo adding tests for this behaviorrust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version ofrust-lang/miri#3688.Cc ``````@RalfJung``````

I have an open PR to the Miri repo adding tests for this behaviorrust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version ofrust-lang/miri#3688.
Cc@RalfJung