diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-08-09 13:48:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-09 13:48:52 +0000 |
commit | 17b625cbd612f05359c3199a3253f42e4cf25120 (patch) | |
tree | 36d03056fb9747a4394c56f78c29e13f1d6df82b /gcc/rust/backend/rust-compile-expr.h | |
parent | 8749b66879f3ef78182d7712e5da981cc55f747a (diff) | |
parent | 4ffd884a69396d828049d4a14d17e6d3f6c8d61f (diff) | |
download | gcc-17b625cbd612f05359c3199a3253f42e4cf25120.zip gcc-17b625cbd612f05359c3199a3253f42e4cf25120.tar.gz gcc-17b625cbd612f05359c3199a3253f42e4cf25120.tar.bz2 |
Merge #1444
1444: Handle `rustc_const_{un}stable` properly for intrinsics r=CohenArthur a=CohenArthur
Since extern functions cannot be marked as const (they take no
qualifiers) but some intrinsics are const, while still being `extern
"rust-intrinsic", we need to be able to handle the
`#[rustc_const_stable]` and `#[rustc_const_unstable]` attribute.
Technically, this simply indicates that a certain intrinsic is constant
and can be used in const contexts, such as `size_of` or `offset`.
We also need to mark all const intrinsics with `rustc_const_stable` in
the testsuite.
Closes #1440
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions