Fix help on unknown::module error.

This commit is contained in:
KtorZ
2023-01-29 10:34:12 +01:00
parent 2523816813
commit b3fc2d51cf

View File

@@ -466,7 +466,7 @@ Perhaps, try the following:
#[diagnostic(code("unknown::module"))]
#[diagnostic(help(
"{}",
suggest_neighbor(name, imported_modules.iter(), "Did you forget to import it?")
suggest_neighbor(name, imported_modules.iter(), "Did you forget to add a package as dependency?")
))]
UnknownModule {
#[label]