Skip to content

Commit 65ef625

Browse files
jackh726estebank
andcommitted
Apply suggestions from code review
Use ticks around abis. Co-authored-by: Esteban Kuber <[email protected]>
1 parent ba847ca commit 65ef625

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_hir_analysis/src

1 file changed

+3
-3
lines changed

Diff for: compiler/rustc_hir_analysis/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ use bounds::Bounds;
119119

120120
fn require_c_abi_if_c_variadic(tcx: TyCtxt<'_>, decl: &hir::FnDecl<'_>, abi: Abi, span: Span) {
121121
const ERROR_HEAD: &str = "C-variadic function must have a compatible calling convention";
122-
const CONVENTIONS_UNSTABLE: &str = "C, cdecl, win64, sysv64 or efiapi";
123-
const CONVENTIONS_STABLE: &str = "C or cdecl";
122+
const CONVENTIONS_UNSTABLE: &str = "`C`, `cdecl`, `win64`, `sysv64` or `efiapi`";
123+
const CONVENTIONS_STABLE: &str = "`C` or `cdecl`";
124124
const UNSTABLE_EXPLAIN: &str =
125-
"using different calling convention than C or cdecl for varargs functions is unstable";
125+
"using different calling convention than `C` or `cdecl` for varargs functions is unstable";
126126

127127
if !decl.c_variadic || matches!(abi, Abi::C { .. } | Abi::Cdecl { .. }) {
128128
return;

0 commit comments

Comments
 (0)