diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-11-16 23:58:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-16 23:58:27 +0100 |
| commit | 0c3a662ba97b292e253f340a7831542887457af9 (patch) | |
| tree | e7496a9868e119357c401c3fc90b69c5db0f1412 /compiler/rustc_codegen_llvm/src | |
| parent | 862565c3af5a1181100484cc9de0a463a768d56d (diff) | |
| parent | f926c0e0d986baaf5caaec3bf21fa996422bb0b7 (diff) | |
| download | rust-0c3a662ba97b292e253f340a7831542887457af9.tar.gz rust-0c3a662ba97b292e253f340a7831542887457af9.zip | |
Rollup merge of #90958 - WaffleLapkin:const_align_offset, r=oli-obk
Mark `<*const _>::align_offset` and `<*mut _>::align_offset` as `const fn`
This PR marks the following APIs as `const`:
```rust
impl<T> *const T {
pub const fn align_offset(self, align: usize) -> usize;
}
impl<T> *mut T {
pub const fn align_offset(self, align: usize) -> usize;
}
```
`const` implementation simply returns `usize::MAX`.
---
Previous discussion: https://github.com/rust-lang/rust/pull/90607#discussion_r743638164
---
r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
