3

always check alignment during CTFE by RalfJung · Pull Request #104616 · rust-lan...

 1 year ago
source link: https://github.com/rust-lang/rust/pull/104616
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Member

@RalfJung RalfJung commented Nov 19, 2022

We originally disabled alignment checks because they got in the way -- there are some things we do with the interpreter during CTFE which does not correspond to actually running user-written code, but is purely administrative, and we didn't want alignment checks there, so we just disabled them entirely. But with -Zextra-const-ub-checks we anyway had to figure out how to disable those alignment checks while doing checks in regular code. So now it is easy to enable CTFE alignment checking by default. Let's see what the perf consequences of that are.

r? @oli-obk


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK