You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error suggestions for import contain erroneous derive #44210
error[E0412]: cannot find type `Path` in this scope
--> src/actions/compiler_message_parsing.rs:77:55
|
77 | fn make_suggestions(message: &CompilerMessage, file: &Path) -> Vec<Suggestion> {
| ^^^^ not found in this scope
|
help: possible candidates are found in other modules, you can import them into scope
|
20 | #[derive(use build::rustc::rustc::hir::Path;
|
20 | #[derive(use build::rustc::syntax::ast::Path;
|
20 | #[derive(use std::path::Path;
No, the first item is inside the expansion. We need a macro check. I don't think Rust's lints have any, but clippy has a convenience function in almost every lint. We should probably upstream it. There are so many diagnostics that choke on expansions.
Activity
nrc commentedon Aug 31, 2017
The first non-comment, non-use line in the file is
#[derive(Debug)], which might be where this is coming from?oli-obk commentedon Aug 31, 2017
No, the first item is inside the expansion. We need a macro check. I don't think Rust's lints have any, but clippy has a convenience function in almost every lint. We should probably upstream it. There are so many diagnostics that choke on expansions.
nikomatsakis commentedon Sep 14, 2017
Closing as duplicate of #44566.
Auto merge of #44215 - oli-obk:import_sugg, r=nrc