FuelLabs/sway · error · anyhow::Error
{err}
Error message
{err} What it means
Error "{err}" thrown in FuelLabs/sway.
Source
Thrown at forc-plugins/forc-doc/src/lib.rs:380
unreachable!("Should have either workspace or package")
};
Ok(result)
}
fn build_docs(
opts: &Command,
ctx: &DocContext,
ty_program: &TyProgram,
manifest: &ManifestFile,
pkg_manifest: &PackageManifestFile,
) -> Result<Documentation> {
let experimental = ExperimentalFeatures::new(
&pkg_manifest.project.experimental,
&opts.experimental.experimental,
&opts.experimental.no_experimental,
)
.map_err(|err| anyhow::anyhow!("{err}"))?;
println_action_green(
"Building",
&format!(
"documentation for {} ({})",
pkg_manifest.project_name(),
manifest.dir().to_string_lossy()
),
);
let raw_docs = Documentation::from_ty_program(
&ctx.engines,
pkg_manifest.project_name(),
ty_program,
opts.document_private_items,
experimental,
)?;
let root_attributes = (!ty_program.root_module.attributes.is_empty())View on GitHub (pinned to 47e5e902fa)
When it happens
Trigger: Thrown at forc-plugins/forc-doc/src/lib.rs:380 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of FuelLabs/sway@47e5e902fa (2026-08-16).
Data as JSON: /api/errors/d5cc25ed383e8ed0.
Report an issue: GitHub.