11error: use of a disallowed method `regex::Regex::new`
2- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:35 :14
2+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:40 :14
33 |
44LL | let re = Regex::new(r"ab.*c").unwrap();
55 | ^^^^^^^^^^
@@ -8,84 +8,90 @@ LL | let re = Regex::new(r"ab.*c").unwrap();
88 = help: to override `-D warnings` add `#[allow(clippy::disallowed_methods)]`
99
1010error: use of a disallowed method `regex::Regex::is_match`
11- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:36 :8
11+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:41 :8
1212 |
1313LL | re.is_match("abc");
1414 | ^^^^^^^^
1515 |
1616 = note: no matching allowed
1717
1818error: use of a disallowed method `std::iter::Iterator::sum`
19- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:39 :14
19+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:44 :14
2020 |
2121LL | a.iter().sum::<i32>();
2222 | ^^^
2323
2424error: use of a disallowed method `slice::sort_unstable`
25- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:41 :7
25+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:46 :7
2626 |
2727LL | a.sort_unstable();
2828 | ^^^^^^^^^^^^^
2929
3030error: use of a disallowed method `f32::clamp`
31- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:44 :20
31+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:49 :20
3232 |
3333LL | let _ = 2.0f32.clamp(3.0f32, 4.0f32);
3434 | ^^^^^
3535
3636error: use of a disallowed method `regex::Regex::new`
37- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:47 :61
37+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:52 :61
3838 |
3939LL | let indirect: fn(&str) -> Result<Regex, regex::Error> = Regex::new;
4040 | ^^^^^^^^^^
4141
4242error: use of a disallowed method `f32::clamp`
43- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:50 :28
43+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:55 :28
4444 |
4545LL | let in_call = Box::new(f32::clamp);
4646 | ^^^^^^^^^^
4747
4848error: use of a disallowed method `regex::Regex::new`
49- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:51 :53
49+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:56 :53
5050 |
5151LL | let in_method_call = ["^", "$"].into_iter().map(Regex::new);
5252 | ^^^^^^^^^^
5353
5454error: use of a disallowed method `futures::stream::select_all`
55- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:54 :31
55+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:59 :31
5656 |
5757LL | let same_name_as_module = select_all(vec![empty::<()>()]);
5858 | ^^^^^^^^^^
5959
6060error: use of a disallowed method `conf_disallowed_methods::local_fn`
61- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:56 :5
61+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:61 :5
6262 |
6363LL | local_fn();
6464 | ^^^^^^^^
6565
6666error: use of a disallowed method `conf_disallowed_methods::local_mod::f`
67- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:57 :5
67+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:62 :5
6868 |
6969LL | local_mod::f();
7070 | ^^^^^^^^^^^^
7171
7272error: use of a disallowed method `conf_disallowed_methods::Struct::method`
73- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:59 :7
73+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:64 :7
7474 |
7575LL | s.method();
7676 | ^^^^^^
7777
7878error: use of a disallowed method `conf_disallowed_methods::Trait::provided_method`
79- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:60 :7
79+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:65 :7
8080 |
8181LL | s.provided_method();
8282 | ^^^^^^^^^^^^^^^
8383
8484error: use of a disallowed method `conf_disallowed_methods::Trait::implemented_method`
85- --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:61 :7
85+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:66 :7
8686 |
8787LL | s.implemented_method();
8888 | ^^^^^^^^^^^^^^^^^^
8989
90- error: aborting due to 14 previous errors
90+ error: use of a disallowed method `conf_disallowed_methods :: path :: with :: spaces`
91+ --> tests/ui-toml/toml_disallowed_methods/conf_disallowed_methods.rs:68:5
92+ |
93+ LL | path::with::spaces();
94+ | ^^^^^^^^^^^^^^^^^^
95+
96+ error: aborting due to 15 previous errors
9197
0 commit comments