From 039178fdb7553ef731c299e733b9143af7ec307a Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Wed, 8 Nov 2023 23:36:15 +0800 Subject: [PATCH] Fix the invalidate feature name message Signed-off-by: hi-rustin --- src/cargo/core/summary.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/core/summary.rs b/src/cargo/core/summary.rs index 128c0db9cb1..2fa79b1c25d 100644 --- a/src/cargo/core/summary.rs +++ b/src/cargo/core/summary.rs @@ -448,7 +448,7 @@ fn validate_feature_name(pkg_id: PackageId, name: &str) -> CargoResult<()> { if !(unicode_xid::UnicodeXID::is_xid_continue(ch) || ch == '-' || ch == '+' || ch == '.') { bail!( "invalid character `{}` in feature `{}` in package {}, \ - characters must be Unicode XID characters, `+`, or `.` \ + characters must be Unicode XID characters, '-', `+`, or `.` \ (numbers, `+`, `-`, `_`, `.`, or most letters)", ch, name,