diff options
| author | bors <bors@rust-lang.org> | 2021-08-26 19:15:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-08-26 19:15:09 +0000 |
| commit | ad02dc46badee510bd3a2c093edf80fcaade91b1 (patch) | |
| tree | c7343646fb600f41303b16ba522bd12022d56546 /compiler/rustc_codegen_llvm/src/builder.rs | |
| parent | 4b9f4b221b92193c7e95b1beb502c6eb32c3b613 (diff) | |
| parent | 24526bbe779b552c3323f3ee1046b534f0888be7 (diff) | |
| download | rust-ad02dc46badee510bd3a2c093edf80fcaade91b1.tar.gz rust-ad02dc46badee510bd3a2c093edf80fcaade91b1.zip | |
Auto merge of #87194 - eddyb:const-value-mangling, r=michaelwoerister,oli-obk
rustc_symbol_mangling: support structural constants and &str in v0.
This PR should unblock #85530 (except for float `const` generics, which AFAIK should've never worked).
(cc `@tmiasko` could the https://github.com/rust-lang/rust/pull/85530#issuecomment-857855379 failures be retried with a quick crater "subset" run of this PR + changing the default to `v0`? Just to make sure I didn't miss anything other than the floats)
The encoding is the one suggested before in e.g. https://github.com/rust-lang/rust/issues/61486#issuecomment-878932102, tho this PR won't by itself finish #61486, before closing that we'd likely want to move to `@oli-obk's` "valtrees" (i.e. #83234 and other associated work).
<hr>
**EDITs**:
1. switched unit/tuple/braced-with-named-fields `<const-fields>` prefixes from `"u"`/`"T"`/`""` to `"U"`/`"T"`/`"S"` to avoid the ambiguity reported by `@tmiasko` in https://github.com/rust-lang/rust/pull/87194#issuecomment-884279921.
2. `rustc-demangle` PR: https://github.com/alexcrichton/rustc-demangle/pull/55
3. RFC amendment PR: https://github.com/rust-lang/rfcs/pull/3161
* also removed the grammar changes included in that PR, from this description
4. added tests (temporarily using my fork of `rustc-demangle`)
<hr>
r? `@michaelwoerister`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions
