-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
error: mismatched types: expected
core::option::Option<alloc::arc::Arc<std::collections ::hash::map::HashMap<&'static str, alloc::arc::Arc<collections::vec::Vec<item::Item>>>>>
,
foundcore::option::Option<alloc::arc::Arc<std::collections::hash::map::HashMap<&str, alloc::arc::Arc<collections::vec::Vec<&generator::Job>>>>>
would be much more readable as
error: mismatched types: expected
Option<Arc<HashMap<&'static str, Arc<Vec<Item>>>>>
,
foundOption<Arc<HashMap<&str, Arc<Vec<&Job>>>>>
One possibility is to use the names in scope where the type error appears. In any event, we should make sure none of the unqualified names in a given error are ambiguous.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.