rust/compiler/rustc_codegen_llvm/src
Dylan DPC cabe97272d
Rollup merge of #82057 - upsuper-forks:cstr, r=davidtwco,wesleywiser
Replace const_cstr with cstr crate

This PR replaces the `const_cstr` macro inside `rustc_data_structures` with `cstr` macro from [cstr](https://crates.io/crates/cstr) crate.

The two macros basically serve the same purpose, which is to generate `&'static CStr` from a string literal. `cstr` is better because it validates the literal at compile time, while the existing `const_cstr` does it at runtime when `debug_assertions` is enabled. In addition, the value `cstr` generates can be used in constant context (which is seemingly not needed anywhere currently, though).
2021-02-27 02:34:21 +01:00
..
back Auto merge of #82102 - nagisa:nagisa/fix-dwo-name, r=davidtwco 2021-02-23 10:02:16 +00:00
coverageinfo remove redundant closures (clippy::redundant_closure) 2021-01-03 13:34:24 +01:00
debuginfo Rollup merge of #82057 - upsuper-forks:cstr, r=davidtwco,wesleywiser 2021-02-27 02:34:21 +01:00
llvm HWASan support 2021-02-07 23:48:58 -08:00
abi.rs Replace const_cstr with cstr crate 2021-02-14 09:45:35 +11:00
allocator.rs Remove redundant to_string calls 2021-02-17 11:25:55 +01:00
asm.rs Replace vec![] calls with slice literals 2021-02-17 10:37:47 +01:00
attributes.rs Replace const_cstr with cstr crate 2021-02-14 09:45:35 +11:00
base.rs Update and improve `rustc_codegen_{llvm,ssa}` docs 2020-12-22 19:42:23 -08:00
builder.rs Replace const_cstr with cstr crate 2021-02-14 09:45:35 +11:00
callee.rs rustc_target: Rename some target options to avoid tautology 2020-11-08 17:29:13 +03:00
common.rs Update and improve `rustc_codegen_{llvm,ssa}` docs 2020-12-22 19:42:23 -08:00
consts.rs Replace const_cstr with cstr crate 2021-02-14 09:45:35 +11:00
context.rs Replace const_cstr with cstr crate 2021-02-14 09:45:35 +11:00
declare.rs Make declare_cfn more flexible 2021-01-23 17:19:49 -05:00
intrinsic.rs Make declare_cfn more flexible 2021-01-23 17:19:49 -05:00
lib.rs rustc: Stabilize `-Zrun-dsymutil` as `-Csplit-debuginfo` 2021-01-28 08:51:11 -08:00
llvm_util.rs Rollup merge of #81095 - LingMan:unwrap, r=oli-obk 2021-01-17 12:24:59 +00:00
metadata.rs fix review 2021-02-25 04:21:12 +03:00
mono_item.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
type_.rs Use ty::{IntTy,UintTy,FloatTy} in rustc 2021-01-18 21:09:30 +01:00
type_of.rs Revert "cg_llvm: `fewer_names` in `uncached_llvm_type`" 2020-12-17 16:40:47 +00:00
va_arg.rs Add big-endian support for AArch64 va_arg 2021-01-27 22:47:56 +00:00
value.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00