Skip to content

Commit 0447e96

Browse files
committed
Revert to older error string.
1 parent f2d9d86 commit 0447e96

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

syntax/check.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,7 @@ fn check_api_type(cx: &mut Check, ety: &ExternType) {
211211

212212
if let Some(reason) = cx.types.required_trivial.get(&ety.ident.rust) {
213213
let what = match reason {
214-
TrivialReason::StructField(strct) => {
215-
format!("a field of `{}`", strct.ident.cxx.to_fully_qualified())
216-
}
214+
TrivialReason::StructField(strct) => format!("a field of `{}`", strct.ident.rust),
217215
TrivialReason::FunctionArgument(efn) => format!("an argument of `{}`", efn.ident.rust),
218216
TrivialReason::FunctionReturn(efn) => format!("a return value of `{}`", efn.ident.rust),
219217
};

tests/ui/by_value_not_supported.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ error: using C++ string by value is not supported
1616
6 | s: CxxString,
1717
| ^^^^^^^^^^^^
1818

19-
error: needs a cxx::ExternType impl in order to be used as a field of `::S`
19+
error: needs a cxx::ExternType impl in order to be used as a field of `S`
2020
--> $DIR/by_value_not_supported.rs:10:9
2121
|
2222
10 | type C;

0 commit comments

Comments
 (0)