Update icu4x dependencies
This commit is contained in:
parent
cfdb6175c2
commit
9d85dfc3e6
3 changed files with 37 additions and 66 deletions
|
|
@ -11,7 +11,7 @@ error: invisible character detected
|
|||
--> tests/ui/unicode.rs:7:12
|
||||
|
|
||||
LL | print!("Here >< is a SHY, and another");
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider replacing the string with: `"Here >\u{AD}< is a SHY, and \u{AD}another"`
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider replacing the string with: `"Here >\u{AD}< is a SHY, and \u{AD}another"`
|
||||
|
||||
error: invisible character detected
|
||||
--> tests/ui/unicode.rs:9:12
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@ const LICENSES: &[&str] = &[
|
|||
"MIT OR Zlib OR Apache-2.0", // miniz_oxide
|
||||
"MIT",
|
||||
"MIT/Apache-2.0",
|
||||
"Unicode-DFS-2016", // tinystr and icu4x
|
||||
"Unicode-3.0", // icu4x
|
||||
"Unicode-DFS-2016", // tinystr
|
||||
"Unlicense OR MIT",
|
||||
"Unlicense/MIT",
|
||||
"Zlib OR Apache-2.0 OR MIT", // tinyvec
|
||||
|
|
@ -411,32 +412,6 @@ const PERMITTED_RUSTC_DEPENDENCIES: &[&str] = &[
|
|||
// tidy-alphabetical-end
|
||||
];
|
||||
|
||||
// These crates come from ICU4X and are licensed under the unicode license.
|
||||
// It currently doesn't have an SPDX identifier, so they cannot put one there.
|
||||
// See https://github.com/unicode-org/icu4x/pull/3875
|
||||
// FIXME: This should be removed once ICU4X crates update.
|
||||
const ICU4X_UNICODE_LICENSE_DEPENDENCIES: &[&str] = &[
|
||||
// tidy-alphabetical-start
|
||||
"icu_list",
|
||||
"icu_list_data",
|
||||
"icu_locid",
|
||||
"icu_locid_transform",
|
||||
"icu_locid_transform_data",
|
||||
"icu_provider",
|
||||
"icu_provider_adapters",
|
||||
"icu_provider_macros",
|
||||
"litemap",
|
||||
"tinystr",
|
||||
"writeable",
|
||||
"yoke",
|
||||
"yoke-derive",
|
||||
"zerofrom",
|
||||
"zerofrom-derive",
|
||||
"zerovec",
|
||||
"zerovec-derive",
|
||||
// tidy-alphabetical-end
|
||||
];
|
||||
|
||||
const PERMITTED_CRANELIFT_DEPENDENCIES: &[&str] = &[
|
||||
// tidy-alphabetical-start
|
||||
"ahash",
|
||||
|
|
@ -642,10 +617,6 @@ fn check_license_exceptions(metadata: &Metadata, exceptions: &[(&str, &str)], ba
|
|||
let license = match &pkg.license {
|
||||
Some(license) => license,
|
||||
None => {
|
||||
if ICU4X_UNICODE_LICENSE_DEPENDENCIES.contains(&pkg.name.as_str()) {
|
||||
// See the comment on ICU4X_UNICODE_LICENSE_DEPENDENCIES.
|
||||
continue;
|
||||
}
|
||||
tidy_error!(bad, "dependency `{}` does not define a license expression", pkg.id);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue