Skip to content

Commit 4f13d2c

Browse files
committed
test
1 parent 149f0c5 commit 4f13d2c

File tree

5 files changed

+53
-21
lines changed

5 files changed

+53
-21
lines changed

tests/ui-toml/absolute_paths/absolute_paths.allow_crates.stderr

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,11 @@ error: consider bringing this path into scope with the `use` keyword
3434
LL | let _: &std::path::Path = std::path::Path::new("");
3535
| ^^^^^^^^^^^^^^^
3636

37-
error: aborting due to 5 previous errors
37+
error: consider bringing this path into scope with the `use` keyword
38+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:43:13
39+
|
40+
LL | let _ = std::option::Option::None::<i32>;
41+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42+
43+
error: aborting due to 6 previous errors
3844

tests/ui-toml/absolute_paths/absolute_paths.allow_long.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ LL | #![deny(clippy::absolute_paths)]
1111
| ^^^^^^^^^^^^^^^^^^^^^^
1212

1313
error: consider bringing this path into scope with the `use` keyword
14-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:37:13
14+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:43:13
1515
|
16-
LL | let _ = ::core::clone::Clone::clone(&0i32);
17-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
16+
LL | let _ = std::option::Option::None::<i32>;
17+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1818

1919
error: aborting due to 2 previous errors
2020

tests/ui-toml/absolute_paths/absolute_paths.default.stderr

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,40 @@ LL | let _ = ::core::clone::Clone::clone(&0i32);
4141
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
4242

4343
error: consider bringing this path into scope with the `use` keyword
44-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:62:17
44+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:40:13
45+
|
46+
LL | let _ = <i32 as core::clone::Clone>::clone(&0i32);
47+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48+
49+
error: consider bringing this path into scope with the `use` keyword
50+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:43:13
51+
|
52+
LL | let _ = std::option::Option::None::<i32>;
53+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54+
55+
error: consider bringing this path into scope with the `use` keyword
56+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:64:17
4557
|
4658
LL | impl<T: core::cmp::Eq> core::fmt::Display for X<T>
4759
| ^^^^^^^^^^^^^
4860

4961
error: consider bringing this path into scope with the `use` keyword
50-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:67:18
62+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:69:18
5163
|
5264
LL | where T: core::clone::Clone
5365
| ^^^^^^^^^^^^^^^^^^
5466

5567
error: consider bringing this path into scope with the `use` keyword
56-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:62:32
68+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:64:32
5769
|
5870
LL | impl<T: core::cmp::Eq> core::fmt::Display for X<T>
5971
| ^^^^^^^^^^^^^^^^^^
6072

6173
error: consider bringing this path into scope with the `use` keyword
62-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:113:5
74+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:115:5
6375
|
6476
LL | crate::m1::S
6577
| ^^^^^^^^^^^^
6678

67-
error: aborting due to 10 previous errors
79+
error: aborting due to 12 previous errors
6880

tests/ui-toml/absolute_paths/absolute_paths.no_short.stderr

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,46 +41,58 @@ LL | let _ = ::core::clone::Clone::clone(&0i32);
4141
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
4242

4343
error: consider bringing this path into scope with the `use` keyword
44-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:62:17
44+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:40:13
45+
|
46+
LL | let _ = <i32 as core::clone::Clone>::clone(&0i32);
47+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48+
49+
error: consider bringing this path into scope with the `use` keyword
50+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:43:13
51+
|
52+
LL | let _ = std::option::Option::None::<i32>;
53+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54+
55+
error: consider bringing this path into scope with the `use` keyword
56+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:64:17
4557
|
4658
LL | impl<T: core::cmp::Eq> core::fmt::Display for X<T>
4759
| ^^^^^^^^^^^^^
4860

4961
error: consider bringing this path into scope with the `use` keyword
50-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:67:18
62+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:69:18
5163
|
5264
LL | where T: core::clone::Clone
5365
| ^^^^^^^^^^^^^^^^^^
5466

5567
error: consider bringing this path into scope with the `use` keyword
56-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:62:32
68+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:64:32
5769
|
5870
LL | impl<T: core::cmp::Eq> core::fmt::Display for X<T>
5971
| ^^^^^^^^^^^^^^^^^^
6072

6173
error: consider bringing this path into scope with the `use` keyword
62-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:110:14
74+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:112:14
6375
|
6476
LL | pub const _: crate::S = {
6577
| ^^^^^^^^
6678

6779
error: consider bringing this path into scope with the `use` keyword
68-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:111:9
80+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:113:9
6981
|
7082
LL | let crate::S = m1::S;
7183
| ^^^^^^^^
7284

7385
error: consider bringing this path into scope with the `use` keyword
74-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:113:5
86+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:115:5
7587
|
7688
LL | crate::m1::S
7789
| ^^^^^^^^^^^^
7890

7991
error: consider bringing this path into scope with the `use` keyword
80-
--> tests/ui-toml/absolute_paths/absolute_paths.rs:119:14
92+
--> tests/ui-toml/absolute_paths/absolute_paths.rs:121:14
8193
|
8294
LL | let _ = <crate::S as Clone>::clone(&m1::S);
8395
| ^^^^^^^^
8496

85-
error: aborting due to 13 previous errors
97+
error: aborting due to 15 previous errors
8698

tests/ui-toml/absolute_paths/absolute_paths.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@ fn main() {
3333
//~[no_short]| absolute_paths
3434
//~[no_short]| absolute_paths
3535

36-
// Currently treated as four parts.
36+
// Treated as having three parts.
3737
let _ = ::core::clone::Clone::clone(&0i32);
3838
//~[default]^ absolute_paths
3939
//~[no_short]| absolute_paths
40-
//~[allow_long]| absolute_paths
41-
42-
// FIXME: `path` in `<_ as path>` doesn't actually exist in the HIR tree
4340
let _ = <i32 as core::clone::Clone>::clone(&0i32);
41+
//~[default]^ absolute_paths
42+
//~[no_short]| absolute_paths
43+
let _ = std::option::Option::None::<i32>;
44+
//~[default]^ absolute_paths
45+
//~[no_short]| absolute_paths
4446

4547
{
4648
// FIXME: macro calls should be checked.

0 commit comments

Comments
 (0)