1
- error: this type has been superceded by `LazyLock` in the standard library
1
+ error: this type has been superseded by `LazyLock` in the standard library
2
2
--> tests/ui/non_std_lazy_static/non_std_lazy_static_fixable.rs:11:18
3
3
|
4
4
LL | static LAZY_FOO: Lazy<String> = Lazy::new(|| "foo".to_uppercase());
@@ -12,7 +12,7 @@ LL - static LAZY_FOO: Lazy<String> = Lazy::new(|| "foo".to_uppercase());
12
12
LL + static LAZY_FOO: std::sync::LazyLock<String> = std::sync::LazyLock::new(|| "foo".to_uppercase());
13
13
|
14
14
15
- error: this type has been superceded by `LazyLock` in the standard library
15
+ error: this type has been superseded by `LazyLock` in the standard library
16
16
--> tests/ui/non_std_lazy_static/non_std_lazy_static_fixable.rs:13:18
17
17
|
18
18
LL | static LAZY_BAR: Lazy<String> = Lazy::new(|| {
@@ -24,7 +24,7 @@ LL - static LAZY_BAR: Lazy<String> = Lazy::new(|| {
24
24
LL + static LAZY_BAR: std::sync::LazyLock<String> = std::sync::LazyLock::new(|| {
25
25
|
26
26
27
- error: this type has been superceded by `LazyLock` in the standard library
27
+ error: this type has been superseded by `LazyLock` in the standard library
28
28
--> tests/ui/non_std_lazy_static/non_std_lazy_static_fixable.rs:18:18
29
29
|
30
30
LL | static LAZY_BAZ: Lazy<String> = { Lazy::new(|| "baz".to_uppercase()) };
@@ -36,7 +36,7 @@ LL - static LAZY_BAZ: Lazy<String> = { Lazy::new(|| "baz".to_uppercase()) };
36
36
LL + static LAZY_BAZ: std::sync::LazyLock<String> = { std::sync::LazyLock::new(|| "baz".to_uppercase()) };
37
37
|
38
38
39
- error: this type has been superceded by `LazyLock` in the standard library
39
+ error: this type has been superseded by `LazyLock` in the standard library
40
40
--> tests/ui/non_std_lazy_static/non_std_lazy_static_fixable.rs:20:18
41
41
|
42
42
LL | static LAZY_QUX: Lazy<String> = {
@@ -54,7 +54,7 @@ LL | } else {
54
54
LL ~ std::sync::LazyLock::new(|| "qux".to_string())
55
55
|
56
56
57
- error: this type has been superceded by `LazyLock` in the standard library
57
+ error: this type has been superseded by `LazyLock` in the standard library
58
58
--> tests/ui/non_std_lazy_static/non_std_lazy_static_fixable.rs:41:22
59
59
|
60
60
LL | static LAZY_FOO: Lazy<String> = Lazy::new(|| "foo".to_uppercase());
@@ -69,7 +69,7 @@ LL | fn calling_replaceable_fns() {
69
69
LL ~ let _ = std::sync::LazyLock::force(&LAZY_FOO);
70
70
|
71
71
72
- error: this type has been superceded by `LazyLock` in the standard library
72
+ error: this type has been superseded by `LazyLock` in the standard library
73
73
--> tests/ui/non_std_lazy_static/non_std_lazy_static_fixable.rs:43:22
74
74
|
75
75
LL | static LAZY_BAR: Lazy<String> = Lazy::new(|| "bar".to_uppercase());
@@ -84,7 +84,7 @@ LL | let _ = Lazy::force(&LAZY_FOO);
84
84
LL ~ let _ = std::sync::LazyLock::force(&LAZY_BAR);
85
85
|
86
86
87
- error: this type has been superceded by `LazyLock` in the standard library
87
+ error: this type has been superseded by `LazyLock` in the standard library
88
88
--> tests/ui/non_std_lazy_static/non_std_lazy_static_fixable.rs:45:26
89
89
|
90
90
LL | static mut LAZY_BAZ: Lazy<String> = Lazy::new(|| "baz".to_uppercase());
0 commit comments