Skip to main content

Module mostly_unused_hint

Module mostly_unused_hint 

Source

Re-exportsΒ§

use std::path::Path; πŸ”’
use cargo_util_schemas::manifest::TomlProfile; πŸ”’
use cargo_util_terminal::report::AnnotationKind; πŸ”’
use cargo_util_terminal::report::Group; πŸ”’
use cargo_util_terminal::report::Level; πŸ”’
use cargo_util_terminal::report::Origin; πŸ”’
use cargo_util_terminal::report::Snippet; πŸ”’
use tracing::instrument; πŸ”’
use tracing::instrument; πŸ”’
use crate::CargoResult; πŸ”’
use crate::GlobalContext; πŸ”’
use crate::diagnostics::ScopedDiagnosticStats; πŸ”’
use crate::diagnostics::TomlSpan; πŸ”’
use crate::diagnostics::get_key_value_span; πŸ”’
use crate::diagnostics::workspace_rel_path; πŸ”’
use crate::workspace::MaybePackage; πŸ”’
use crate::workspace::Package; πŸ”’
use crate::workspace::Workspace; πŸ”’

ConstantsΒ§

HELP πŸ”’
HINT_KEY πŸ”’
PROFILE_TITLE πŸ”’

FunctionsΒ§

diagnose_package πŸ”’
Reports a hints.mostly-unused that is not a boolean, or that is ignored without -Zprofile-hint-mostly-unused.
diagnose_workspace πŸ”’
Reports each hint-mostly-unused = true in the root manifest’s profiles that is ignored without -Zprofile-hint-mostly-unused. Config profiles are checked where they are loaded, see crate::workspace::profiles.
enabled_keys πŸ”’
The key path of each hint-mostly-unused = true under [profile.<name>], whether in the profile itself, its build-override, or one of its package entries.
hint_span πŸ”’
Locates hints.mostly-unused in the package’s original manifest, if its source is available.