The const_mut_refs
feature gate allows the following in const context:
&mut
arguments&mut
and addr_of_mut!
expressions)*
expressions)static mut FOO: &'static mut i32 = &mut 42;
is problematic, because LLVM currently duplicates the inner mutable reference when you do static mut BAR: &'static mut i32 = FOO;
. It would probably suffice to give all nested allocations in a static names relative to their original static item. Named allocations are neither deduplicated nor duplicated.const
relies on types more than it should, given that transmute
is available in consts. Fixed in const-eval interning: get rid of type-driven traversal #119044.&mut
(and *mut
) as well as &Cell
(and *const Cell
) in const #129195index out of bounds: the len is 5 but the index is 5
#122399, ICE: hir: index out of bounds: the len is 5 but the index is 5 rustc_codegen_gcc#473elichai, Lokathor, stanislav-tkach, ldm0, sffc and 44 moreCentril, SplittyDev, Etherian, elichai, GrayJack and 23 morejaudigerryoqun, benluelo, Rudxain and JSorngard
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4