Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit477e9e8

Browse files
committed
Update float tests to includef16 andf128
1 parentff9efea commit477e9e8

File tree

44 files changed

+792
-522
lines changed

Some content is hidden

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

44 files changed

+792
-522
lines changed

‎src/tools/clippy/tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ fn main() {
4040

4141
a.sort_unstable();
4242

43+
// FIXME(f16_f128): add a clamp test once the function is available
4344
let _ =2.0f32.clamp(3.0f32,4.0f32);
4445
let _ =2.0f64.clamp(3.0f64,4.0f64);
4546

‎src/tools/clippy/tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.stderr‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,61 +28,61 @@ LL | a.sort_unstable();
2828
| ^^^^^^^^^^^^^^^^^
2929

3030
error: use of a disallowed method `f32::clamp`
31-
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:43:13
31+
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:44:13
3232
|
3333
LL | let _ = 2.0f32.clamp(3.0f32, 4.0f32);
3434
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3535

3636
error: use of a disallowed method `regex::Regex::new`
37-
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:46:61
37+
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:47:61
3838
|
3939
LL | let indirect: fn(&str) -> Result<Regex, regex::Error> = Regex::new;
4040
| ^^^^^^^^^^
4141

4242
error: use of a disallowed method `f32::clamp`
43-
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:49:28
43+
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:50:28
4444
|
4545
LL | let in_call = Box::new(f32::clamp);
4646
| ^^^^^^^^^^
4747

4848
error: use of a disallowed method `regex::Regex::new`
49-
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:50:53
49+
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:51:53
5050
|
5151
LL | let in_method_call = ["^", "$"].into_iter().map(Regex::new);
5252
| ^^^^^^^^^^
5353

5454
error: use of a disallowed method `futures::stream::select_all`
55-
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:53:31
55+
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:54:31
5656
|
5757
LL | let same_name_as_module = select_all(vec![empty::<()>()]);
5858
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5959

6060
error: use of a disallowed method `conf_disallowed_methods::local_fn`
61-
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:55:5
61+
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:56:5
6262
|
6363
LL | local_fn();
6464
| ^^^^^^^^^^
6565

6666
error: use of a disallowed method `conf_disallowed_methods::local_mod::f`
67-
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:56:5
67+
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:57:5
6868
|
6969
LL | local_mod::f();
7070
| ^^^^^^^^^^^^^^
7171

7272
error: use of a disallowed method `conf_disallowed_methods::Struct::method`
73-
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:58:5
73+
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:59:5
7474
|
7575
LL | s.method();
7676
| ^^^^^^^^^^
7777

7878
error: use of a disallowed method `conf_disallowed_methods::Trait::provided_method`
79-
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:59:5
79+
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:60:5
8080
|
8181
LL | s.provided_method();
8282
| ^^^^^^^^^^^^^^^^^^^
8383

8484
error: use of a disallowed method `conf_disallowed_methods::Trait::implemented_method`
85-
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:60:5
85+
--> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:61:5
8686
|
8787
LL | s.implemented_method();
8888
| ^^^^^^^^^^^^^^^^^^^^^^

‎src/tools/clippy/tests/ui/arithmetic_side_effects.rs‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
unconditional_panic
1212
)]
1313
#![feature(const_mut_refs)]
14+
#![feature(f128)]
15+
#![feature(f16)]
1416
#![warn(clippy::arithmetic_side_effects)]
1517

1618
externcrate proc_macro_derive;
@@ -162,8 +164,10 @@ pub fn association_with_structures_should_not_trigger_the_lint() {
162164
}
163165

164166
pubfnhard_coded_allowed(){
167+
let _ =1f16 +1f16;
165168
let _ =1f32 +1f32;
166169
let _ =1f64 +1f64;
170+
let _ =1f128 +1f128;
167171

168172
let _ =Saturating(0u32) +Saturating(0u32);
169173
let _ =String::new() +"";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp