Skip to content

Commit 89a9ae3

Browse files
1.82 MSRV (#6413)
Required for #6404
1 parent 7e8c059 commit 89a9ae3

File tree

584 files changed

+3412
-3413
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

584 files changed

+3412
-3413
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ exclude = [
108108

109109
[workspace.package]
110110
version = "2.0.0-beta2"
111-
rust-version = "1.81"
111+
rust-version = "1.82"
112112
authors = ["The ICU4X Project Developers"]
113113
edition = "2021"
114114
repository = "https://github.com/unicode-org/icu4x"

Makefile.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ category = "ICU4X Development"
6161
env = { ICU4X_DATA_DIR = "../stubdata" }
6262
script_runner = "@duckscript"
6363
script = '''
64-
exec --fail-on-error rustup install 1.81 --profile minimal
65-
exec --fail-on-error cargo +1.81 check --all-targets --all-features
64+
exec --fail-on-error rustup install 1.82 --profile minimal
65+
exec --fail-on-error cargo +1.82 check --all-targets --all-features
6666
'''
6767

6868
[tasks.ci-job-msrv-utils]
@@ -189,8 +189,8 @@ category = "CI"
189189
env = { ICU4X_DATA_DIR = "../stubdata" }
190190
script_runner = "@duckscript"
191191
script = '''
192-
exec --fail-on-error rustup install 1.81 --profile minimal
193-
exec --fail-on-error cargo +1.81 make check-all-features-chunked 1
192+
exec --fail-on-error rustup install 1.82 --profile minimal
193+
exec --fail-on-error cargo +1.82 make check-all-features-chunked 1
194194
'''
195195

196196
[tasks.ci-job-msrv-features-2]
@@ -199,8 +199,8 @@ category = "CI"
199199
env = { ICU4X_DATA_DIR = "../stubdata" }
200200
script_runner = "@duckscript"
201201
script = '''
202-
exec --fail-on-error rustup install 1.81 --profile minimal
203-
exec --fail-on-error cargo +1.81 make check-all-features-chunked 2
202+
exec --fail-on-error rustup install 1.82 --profile minimal
203+
exec --fail-on-error cargo +1.82 make check-all-features-chunked 2
204204
'''
205205

206206
[tasks.ci-job-msrv-features-3]
@@ -209,8 +209,8 @@ category = "CI"
209209
env = { ICU4X_DATA_DIR = "../stubdata" }
210210
script_runner = "@duckscript"
211211
script = '''
212-
exec --fail-on-error rustup install 1.81 --profile minimal
213-
exec --fail-on-error cargo +1.81 make check-all-features-chunked 3
212+
exec --fail-on-error rustup install 1.82 --profile minimal
213+
exec --fail-on-error cargo +1.82 make check-all-features-chunked 3
214214
'''
215215

216216
[tasks.ci-job-msrv-features]

clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# called LICENSE at the top level of the ICU4X source tree
33
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
44

5-
msrv = "1.81"
5+
msrv = "1.82"

components/experimental/src/transliterate/transliterator/replaceable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ impl<'a, 'b> Insertable<'a, 'b> {
711711
if free_bytes < size {
712712
self._rep.content.splice(
713713
self.end()..self.end(),
714-
core::iter::repeat(0).take(size - free_bytes),
714+
core::iter::repeat_n(0, size - free_bytes),
715715
);
716716
}
717717
}

components/list/src/list_formatter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ mod tests {
339339
let formatter = formatter(crate::patterns::test::test_patterns_general());
340340

341341
assert_writeable_parts_eq!(
342-
formatter.format(core::iter::repeat(5).take(2)),
342+
formatter.format(core::iter::repeat_n(5, 2)),
343343
"$5;5+",
344344
[
345345
(0, 1, parts::LITERAL),

ffi/ecma402/src/pluralrules.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ pub(crate) mod internal {
8181
// Integer fragment.
8282
let leading_zeros = clamp_diff(display_integer_digits, int_part.len());
8383
let trailing_zeros_in_int_part = clamp_diff(int_part.len(), total_significant_digits);
84-
let i = std::iter::repeat('0')
85-
.take(leading_zeros)
84+
let i = std::iter::repeat_n('0', leading_zeros)
8685
.chain(int_part.chars().take(total_significant_digits))
87-
.chain(std::iter::repeat('0').take(trailing_zeros_in_int_part));
86+
.chain(std::iter::repeat_n('0', trailing_zeros_in_int_part));
8887

8988
// Decimal dot is printed only if decimals will follow.
9089
let dd = match display_fraction_digits == 0 {

provider/baked/tests/data/hello_world_v1.rs.data

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
#[macro_export]
1313
macro_rules! __impl_hello_world_v1 {
1414
($ provider : ty) => {
15-
#[clippy::msrv = "1.81"]
15+
#[clippy::msrv = "1.82"]
1616
const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
17-
#[clippy::msrv = "1.81"]
17+
#[clippy::msrv = "1.82"]
1818
impl $provider {
1919
const DATA_HELLO_WORLD_V1: icu_provider::baked::zerotrie::DataForVarULEs<icu_provider::hello_world::HelloWorldV1> = {
2020
const TRIE: icu_provider::baked::zerotrie::ZeroTrieSimpleAscii<&'static [u8]> = icu_provider::baked::zerotrie::ZeroTrieSimpleAscii { store: b"\xCDbcdefijlprsvz\x02\x04\nCIKX[^fpsn\x80s\x81e\x82-AT\x83\xC3lno\x012\x84\x85\xC2\x1E-\treverse\x90\t\xC301G\x0C\x0F\xC201\x06\xC212\x01\x86\x879\x8842\x89B\x8A-u-sd-gbeng\x8B\x8C\xC2ai\x01\x8D\x8Es\x8Fa\x90\0\x1Ereverse\x90\na\x90\x01t\x90\x02\xC2ou\x02\x90\x03\x90\x04r\x90\x05-Latn\x90\x06i\x90\x07h\x90\x08" };
2121
const VALUES: &'static zerovec::VarZeroSlice<<<icu_provider::hello_world::HelloWorldV1 as icu_provider::baked::zerotrie::DynamicDataMarker>::DataStruct as icu_provider::ule::MaybeAsVarULE>::EncodedStruct> = unsafe { zerovec::vecs::VarZeroSlice16::from_bytes_unchecked(b"\x1B\0\x19\0$\0.\09\0T\0_\0q\0\x80\0\x8F\0\x9E\0\xB1\0\xD8\0\xE6\0\xFA\0\x05\x01\x13\x01(\x012\x01=\x01H\x01\\\x01u\x01\x82\x01\x98\x01\xA4\x01\xAF\x01\xE0\xA6\x93\xE0\xA6\xB9\xE0\xA7\x87 \xE0\xA6\xAC\xE0\xA6\xBF\xE0\xA6\xB6\xE0\xA7\x8D\xE0\xA6\xACAhoj sv\xC4\x9BteHallo WeltServus Welt\xCE\x9A\xCE\xB1\xCE\xBB\xCE\xB7\xCE\xBC\xCE\xAD\xCF\x81\xCE\xB1 \xCE\xBA\xCF\x8C\xCF\x83\xCE\xBC\xCE\xB5Hello WorldHello from \xF0\x9F\x97\xBA\xEF\xB8\x8FHello from \xF0\x9F\x8C\x8DHello from \xF0\x9F\x8C\x8EHello from \xF0\x9F\x8C\x8FHello from \xF0\x9F\x87\xAC\xF0\x9F\x87\xA7Hello from \xF0\x9F\x8F\xB4\xF3\xA0\x81\xA7\xF3\xA0\x81\xA2\xF3\xA0\x81\xA5\xF3\xA0\x81\xAE\xF3\xA0\x81\xA7\xF3\xA0\x81\xBFSaluton, Mondo\xD8\xB3\xD9\x84\xD8\xA7\xD9\x85 \xD8\xAF\xD9\x86\xDB\x8C\xD8\xA7\xE2\x80\x8Ehei maailmaHall\xC3\xB3, heimur\xE3\x81\x93\xE3\x82\x93\xE3\x81\xAB\xE3\x81\xA1\xE3\x81\xAF\xE4\xB8\x96\xE7\x95\x8CAve, mundeOl\xC3\xA1, mundoSalut, lume\xD0\x9F\xD1\x80\xD0\xB8\xD0\xB2\xD0\xB5\xD1\x82, \xD0\xBC\xD0\xB8\xD1\x80\xD0\x9F\xD0\xBE\xD0\xB7\xD0\xB4\xD1\x80\xD0\xB0\xD0\xB2 \xD1\x81\xD0\xB2\xD0\xB5\xD1\x82\xD0\xB5Pozdrav sveteXin ch\xC3\xA0o th\xE1\xBA\xBF gi\xE1\xBB\x9Bi\xE4\xBD\xA0\xE5\xA5\xBD\xE4\xB8\x96\xE7\x95\x8COlleh Dlrow\xE7\x95\x8C\xE4\xB8\x96\xE3\x81\xAF\xE3\x81\xA1\xE3\x81\xAB\xE3\x82\x93\xE3\x81\x93") };
2222
unsafe { icu_provider::baked::zerotrie::DataForVarULEs::from_trie_and_values_unchecked(TRIE, VALUES) }
2323
};
2424
}
25-
#[clippy::msrv = "1.81"]
25+
#[clippy::msrv = "1.82"]
2626
impl icu_provider::DataProvider<icu_provider::hello_world::HelloWorldV1> for $provider {
2727
fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu_provider::hello_world::HelloWorldV1>, icu_provider::DataError> {
2828
let metadata = icu_provider::DataResponseMetadata::default().with_checksum(1234u64);
@@ -33,7 +33,7 @@ macro_rules! __impl_hello_world_v1 {
3333
};
3434
($ provider : ty , ITER) => {
3535
__impl_hello_world_v1!($provider);
36-
#[clippy::msrv = "1.81"]
36+
#[clippy::msrv = "1.82"]
3737
impl icu_provider::IterableDataProvider<icu_provider::hello_world::HelloWorldV1> for $provider {
3838
fn iter_ids(&self) -> Result<std::collections::BTreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
3939
Ok(icu_provider::baked::DataStore::iter(&Self::DATA_HELLO_WORLD_V1).collect())
@@ -42,7 +42,7 @@ macro_rules! __impl_hello_world_v1 {
4242
};
4343
($ provider : ty , DRY) => {
4444
__impl_hello_world_v1!($provider);
45-
#[clippy::msrv = "1.81"]
45+
#[clippy::msrv = "1.82"]
4646
impl icu_provider::DryDataProvider<icu_provider::hello_world::HelloWorldV1> for $provider {
4747
fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
4848
icu_provider::DataProvider::<icu_provider::hello_world::HelloWorldV1>::load(self, req).map(|r| r.metadata)
@@ -51,13 +51,13 @@ macro_rules! __impl_hello_world_v1 {
5151
};
5252
($ provider : ty , DRY , ITER) => {
5353
__impl_hello_world_v1!($provider);
54-
#[clippy::msrv = "1.81"]
54+
#[clippy::msrv = "1.82"]
5555
impl icu_provider::DryDataProvider<icu_provider::hello_world::HelloWorldV1> for $provider {
5656
fn dry_load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponseMetadata, icu_provider::DataError> {
5757
icu_provider::DataProvider::<icu_provider::hello_world::HelloWorldV1>::load(self, req).map(|r| r.metadata)
5858
}
5959
}
60-
#[clippy::msrv = "1.81"]
60+
#[clippy::msrv = "1.82"]
6161
impl icu_provider::IterableDataProvider<icu_provider::hello_world::HelloWorldV1> for $provider {
6262
fn iter_ids(&self) -> Result<std::collections::BTreeSet<icu_provider::DataIdentifierCow<'static>>, icu_provider::DataError> {
6363
Ok(icu_provider::baked::DataStore::iter(&Self::DATA_HELLO_WORLD_V1).collect())

provider/baked/tests/data/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include!("hello_world_v1.rs.data");
1515
#[macro_export]
1616
macro_rules! __make_provider {
1717
($ name : ty) => {
18-
#[clippy::msrv = "1.81"]
18+
#[clippy::msrv = "1.82"]
1919
impl $name {
2020
#[allow(dead_code)]
2121
pub(crate) const MUST_USE_MAKE_PROVIDER_MACRO: () = ();

provider/data/calendar/data/calendar_chinese_v1.rs.data

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

provider/data/calendar/data/calendar_dangi_v1.rs.data

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)