diff --git a/src/cargo/core/manifest.rs b/src/cargo/core/manifest.rs index 75e1e38e86f..6784cee7f13 100644 --- a/src/cargo/core/manifest.rs +++ b/src/cargo/core/manifest.rs @@ -445,7 +445,11 @@ impl VirtualManifest { impl Target { fn with_path(src_path: PathBuf) -> Target { - assert!(src_path.is_absolute()); + assert!( + src_path.is_absolute(), + "`{}` is not absolute", + src_path.display() + ); Target { kind: TargetKind::Bin, name: String::new(), diff --git a/src/cargo/util/toml/mod.rs b/src/cargo/util/toml/mod.rs index 3aa4f587550..651928efdb4 100644 --- a/src/cargo/util/toml/mod.rs +++ b/src/cargo/util/toml/mod.rs @@ -14,7 +14,7 @@ use url::Url; use core::{GitReference, PackageIdSpec, Profiles, SourceId, WorkspaceConfig, WorkspaceRootConfig}; use core::{Dependency, Manifest, PackageId, Summary, Target}; -use core::{EitherManifest, Edition, Feature, Features, VirtualManifest}; +use core::{Edition, EitherManifest, Feature, Features, VirtualManifest}; use core::dependency::{Kind, Platform}; use core::manifest::{LibKind, Lto, ManifestMetadata, Profile}; use sources::CRATES_IO;