diff options
| author | Tom Martin <tom.martin1239@gmail.com> | 2023-03-30 21:53:56 +0100 |
|---|---|---|
| committer | Tom Martin <tom.martin1239@gmail.com> | 2023-03-30 21:53:56 +0100 |
| commit | ed84d1d9052912d4d948313be72a6dd50c2baa26 (patch) | |
| tree | e165854caf0bb82d9b8e82055c654e246c7ec08a | |
| parent | 10c36445ff13625186d924250b3ba9c4b90b23f9 (diff) | |
| download | rust-ed84d1d9052912d4d948313be72a6dd50c2baa26.tar.gz rust-ed84d1d9052912d4d948313be72a6dd50c2baa26.zip | |
Fix typo
| -rw-r--r-- | compiler/rustc_resolve/src/macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/macros.rs b/compiler/rustc_resolve/src/macros.rs index 082c051e21e..39e30767da2 100644 --- a/compiler/rustc_resolve/src/macros.rs +++ b/compiler/rustc_resolve/src/macros.rs @@ -549,7 +549,7 @@ impl<'a, 'tcx> Resolver<'a, 'tcx> { err.span_label(path.span, format!("not {} {}", article, expected)); if kind == MacroKind::Derive && ext.macro_kind() != MacroKind::Derive { - // Suggest moving the macro our of the derive() as the macro isn't Derive + // Suggest moving the macro out of the derive() as the macro isn't Derive err.span_help(path.span, "Remove from the surrounding `derive()`"); err.help(format!("Add as non-Derive macro\n`#[{}]`", path_str)); } |
