Skip to content

Commit f952f17

Browse files
compiler: adjust error formatting for extern "ABI" error
1 parent 5d7c093 commit f952f17

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: compiler/rustc_ast_lowering/src/stability.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@ impl fmt::Display for UnstableAbi {
5858
let name = name.trim_matches('"');
5959
match self.explain {
6060
GateReason::Experimental => {
61-
write!(f, "{name} ABI is experimental and subject to change")
61+
write!(f, r#"the extern "{name}" ABI is experimental and subject to change"#)
6262
}
6363
GateReason::ImplDetail => {
64-
write!(f, "{name} ABI is an implementation detail and perma-unstable")
64+
write!(
65+
f,
66+
r#"the extern "{name}" ABI is an implementation detail and perma-unstable"#
67+
)
6568
}
6669
}
6770
}

0 commit comments

Comments
 (0)