File tree 1 file changed +3
-3
lines changed
compiler/rustc_hir_analysis/src
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,10 +119,10 @@ use bounds::Bounds;
119
119
120
120
fn require_c_abi_if_c_variadic ( tcx : TyCtxt < ' _ > , decl : & hir:: FnDecl < ' _ > , abi : Abi , span : Span ) {
121
121
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` " ;
124
124
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" ;
126
126
127
127
if !decl. c_variadic || matches ! ( abi, Abi :: C { .. } | Abi :: Cdecl { .. } ) {
128
128
return ;
You can’t perform that action at this time.
0 commit comments