Skip to content

Commit 42a40c1

Browse files
committed
Rust: reword macro expansion error
1 parent 999920c commit 42a40c1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

rust/extractor/src/translate/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ impl<'a> Translator<'a> {
514514
mcall,
515515
&SyntaxError::new(
516516
format!(
517-
"macro expansion failed: could not resolve macro '{}'",
517+
"macro expansion failed for '{}'",
518518
mcall.path().map(|p| p.to_string()).unwrap_or_default()
519519
),
520520
range.unwrap_or_else(|| TextRange::empty(TextSize::from(0))),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
extractionWarning
2-
| macro_expansion.rs:56:9:56:31 | macro expansion failed: could not resolve macro 'concat' |
2+
| macro_expansion.rs:56:9:56:31 | macro expansion failed for 'concat' |

rust/ql/test/extractor-tests/macro-expansion/test.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ unexpanded_macro_calls
5151
| macro_expansion.rs:56:9:56:31 | concat!... |
5252
| macro_expansion.rs:63:9:63:32 | include_str!... |
5353
warnings
54-
| macro_expansion.rs:56:9:56:31 | macro expansion failed: could not resolve macro 'concat' |
54+
| macro_expansion.rs:56:9:56:31 | macro expansion failed for 'concat' |

rust/ql/test/query-tests/diagnostics/CONSISTENCY/ExtractionConsistency.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ extractionWarning
55
| does_not_compile.rs:2:21:2:20 | expected SEMICOLON |
66
| does_not_compile.rs:2:26:2:25 | expected SEMICOLON |
77
| error.rs:2:5:2:17 | An error! |
8-
| my_macro.rs:17:9:17:27 | macro expansion failed: could not resolve macro 'myUndefinedMacro' |
8+
| my_macro.rs:17:9:17:27 | macro expansion failed for 'myUndefinedMacro' |

rust/ql/test/query-tests/diagnostics/ExtractionWarnings.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
| does_not_compile.rs:2:21:2:20 | expected SEMICOLON | Extraction warning in does_not_compile.rs with message expected SEMICOLON | 1 |
55
| does_not_compile.rs:2:26:2:25 | expected SEMICOLON | Extraction warning in does_not_compile.rs with message expected SEMICOLON | 1 |
66
| error.rs:2:5:2:17 | An error! | Extraction warning in error.rs with message An error! | 1 |
7-
| my_macro.rs:17:9:17:27 | macro expansion failed: could not resolve macro 'myUndefinedMacro' | Extraction warning in my_macro.rs with message macro expansion failed: could not resolve macro 'myUndefinedMacro' | 1 |
7+
| my_macro.rs:17:9:17:27 | macro expansion failed for 'myUndefinedMacro' | Extraction warning in my_macro.rs with message macro expansion failed for 'myUndefinedMacro' | 1 |

0 commit comments

Comments
 (0)