Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
16fcaa4
Fix `issue-79099.rs`
pvdrz Apr 29, 2025
31e6422
Fix `dyn-trait-return-should-be-impl-trait.rs`
pvdrz Apr 29, 2025
fc4ec76
Fix `dyn-use.rs`
pvdrz Apr 29, 2025
459ddd5
Fix `ambiguous-14.rs`
pvdrz Apr 29, 2025
8255c95
Fix `ambiguous-17.rs`
pvdrz Apr 29, 2025
0a6253b
Fix `ambiguous-4-extern.rs`
pvdrz Apr 29, 2025
3857204
Fix `duplicate.rs`
pvdrz Apr 29, 2025
c4f1fb2
Fix `export-glob-imports-target.rs`
pvdrz Apr 29, 2025
f08ce2b
Fix `glob-conflict-cross-crate-1.rs`
pvdrz Apr 29, 2025
2adb653
Fix `extern-prelude-extern-crate-restricted-shadowing.rs`
pvdrz Apr 29, 2025
98ed6ff
Fix `glob-shadowing.rs`
pvdrz Apr 29, 2025
263bacd
Fix `glob-cycles.rs`
pvdrz Apr 29, 2025
0a61cf5
Fix `where-allowed.rs`
pvdrz May 5, 2025
76a14a7
Fix `where-allowed-2.rs`
pvdrz May 5, 2025
3e1a795
Fix `import-from-missing-star-2.rs`
pvdrz May 5, 2025
2fd65e6
Fix `import-glob-1.rs`
pvdrz May 5, 2025
2dec1c5
Fix `import-glob-circular.rs`
pvdrz May 5, 2025
1d20179
Fix `import-from-missing-star.rs`
pvdrz May 5, 2025
4db4b82
Fix `import-loop-2.rs`
pvdrz May 5, 2025
d8b9173
Fix `import-loop.rs`
pvdrz May 5, 2025
e69bb3b
Fix `import-from-missing-star-3.rs`
pvdrz May 5, 2025
145702f
Fix `import-glob-crate.rs`
pvdrz May 5, 2025
7c87267
Fix `import-rpass.rs`
pvdrz May 5, 2025
45b6844
Fix `import3.rs`
pvdrz May 5, 2025
b061666
Fix `import6.rs`
pvdrz May 5, 2025
27466a3
Fix `import4.rs`
pvdrz May 5, 2025
02748e9
Fix `import.rs`
pvdrz May 5, 2025
6951926
Fix `import5.rs`
pvdrz May 5, 2025
dc843f8
Fix `issue-109343.rs`
pvdrz May 5, 2025
6ae926d
Fix `import7.rs`
pvdrz May 5, 2025
b010733
Fix `issue-18083.rs`
pvdrz May 5, 2025
fe8b343
Fix `issue-1697.rs`
pvdrz May 5, 2025
a943751
Fix `imports.rs`
pvdrz May 5, 2025
accebb0
Fix `issue-19498.rs`
pvdrz May 6, 2025
6582c89
Fix `issue-32222.rs`
pvdrz May 6, 2025
8d2cf4f
Fix `issue-28388-1.rs`
pvdrz May 6, 2025
78595a0
Fix `issue-33464.rs`
pvdrz May 6, 2025
adf8c43
Fix `issue-37887.rs`
pvdrz May 6, 2025
6a9255b
Fix `issue-45799-bad-extern-crate-rename-suggestion-formatting.rs`
pvdrz May 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0277]: the size for values of type `(dyn Trait + 'static)` cannot be known at compilation time
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:7:13
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:11:13
|
LL | fn fuz() -> (usize, Trait) { (42, Struct) }
| ^^^^^^^^^^^^^^ doesn't have a size known at compile-time
Expand All @@ -9,7 +9,7 @@ LL | fn fuz() -> (usize, Trait) { (42, Struct) }
= note: the return type of a function must have a statically known size

error[E0277]: the size for values of type `(dyn Trait + 'static)` cannot be known at compilation time
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:11:13
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:16:13
|
LL | fn bar() -> (usize, dyn Trait) { (42, Struct) }
| ^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
Expand All @@ -19,7 +19,7 @@ LL | fn bar() -> (usize, dyn Trait) { (42, Struct) }
= note: the return type of a function must have a statically known size

error[E0746]: return type cannot be a trait object without pointer indirection
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:15:13
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:20:13
|
LL | fn bap() -> Trait { Struct }
| ^^^^^ doesn't have a size known at compile-time
Expand All @@ -34,7 +34,7 @@ LL | fn bap() -> Box<dyn Trait> { Box::new(Struct) }
| +++++++ + +++++++++ +

error[E0746]: return type cannot be a trait object without pointer indirection
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:17:13
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:23:13
|
LL | fn ban() -> dyn Trait { Struct }
| ^^^^^^^^^ doesn't have a size known at compile-time
Expand All @@ -50,7 +50,7 @@ LL | fn ban() -> Box<dyn Trait> { Box::new(Struct) }
| ++++ + +++++++++ +

error[E0746]: return type cannot be a trait object without pointer indirection
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:19:13
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:25:13
|
LL | fn bak() -> dyn Trait { unimplemented!() }
| ^^^^^^^^^ doesn't have a size known at compile-time
Expand All @@ -66,7 +66,7 @@ LL | fn bak() -> Box<dyn Trait> { Box::new(unimplemented!()) }
| ++++ + +++++++++ +

error[E0746]: return type cannot be a trait object without pointer indirection
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:21:13
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:27:13
|
LL | fn bal() -> dyn Trait {
| ^^^^^^^^^ doesn't have a size known at compile-time
Expand All @@ -86,7 +86,7 @@ LL ~ Box::new(42)
|

error[E0746]: return type cannot be a trait object without pointer indirection
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:27:13
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:33:13
|
LL | fn bax() -> dyn Trait {
| ^^^^^^^^^ doesn't have a size known at compile-time
Expand All @@ -106,7 +106,7 @@ LL ~ Box::new(42)
|

error[E0746]: return type cannot be a trait object without pointer indirection
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:62:13
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:68:13
|
LL | fn bat() -> dyn Trait {
| ^^^^^^^^^ doesn't have a size known at compile-time
Expand All @@ -126,7 +126,7 @@ LL ~ Box::new(42)
|

error[E0746]: return type cannot be a trait object without pointer indirection
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:68:13
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:74:13
|
LL | fn bay() -> dyn Trait {
| ^^^^^^^^^ doesn't have a size known at compile-time
Expand All @@ -146,7 +146,7 @@ LL ~ Box::new(42)
|

error[E0308]: mismatched types
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:7:35
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:11:35
|
LL | fn fuz() -> (usize, Trait) { (42, Struct) }
| ^^^^^^ expected `dyn Trait`, found `Struct`
Expand All @@ -156,7 +156,7 @@ LL | fn fuz() -> (usize, Trait) { (42, Struct) }
= help: `Struct` implements `Trait` so you could box the found value and coerce it to the trait object `Box<dyn Trait>`, you will have to change the expected type as well

error[E0277]: the size for values of type `(dyn Trait + 'static)` cannot be known at compilation time
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:7:30
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:11:30
|
LL | fn fuz() -> (usize, Trait) { (42, Struct) }
| ^^^^^^^^^^^^ doesn't have a size known at compile-time
Expand All @@ -166,7 +166,7 @@ LL | fn fuz() -> (usize, Trait) { (42, Struct) }
= note: tuples must have a statically known size to be initialized

error[E0308]: mismatched types
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:11:39
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:16:39
|
LL | fn bar() -> (usize, dyn Trait) { (42, Struct) }
| ^^^^^^ expected `dyn Trait`, found `Struct`
Expand All @@ -176,7 +176,7 @@ LL | fn bar() -> (usize, dyn Trait) { (42, Struct) }
= help: `Struct` implements `Trait` so you could box the found value and coerce it to the trait object `Box<dyn Trait>`, you will have to change the expected type as well

error[E0277]: the size for values of type `(dyn Trait + 'static)` cannot be known at compilation time
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:11:34
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:16:34
|
LL | fn bar() -> (usize, dyn Trait) { (42, Struct) }
| ^^^^^^^^^^^^ doesn't have a size known at compile-time
Expand All @@ -186,7 +186,7 @@ LL | fn bar() -> (usize, dyn Trait) { (42, Struct) }
= note: tuples must have a statically known size to be initialized

error[E0308]: mismatched types
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:36:16
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:42:16
|
LL | fn bam() -> Box<dyn Trait> {
| -------------- expected `Box<(dyn Trait + 'static)>` because of return type
Expand All @@ -203,7 +203,7 @@ LL | return Box::new(Struct);
| +++++++++ +

error[E0308]: mismatched types
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:38:5
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:44:5
|
LL | fn bam() -> Box<dyn Trait> {
| -------------- expected `Box<(dyn Trait + 'static)>` because of return type
Expand All @@ -220,7 +220,7 @@ LL | Box::new(42)
| +++++++++ +

error[E0308]: mismatched types
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:42:16
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:48:16
|
LL | fn baq() -> Box<dyn Trait> {
| -------------- expected `Box<(dyn Trait + 'static)>` because of return type
Expand All @@ -237,7 +237,7 @@ LL | return Box::new(0);
| +++++++++ +

error[E0308]: mismatched types
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:44:5
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:50:5
|
LL | fn baq() -> Box<dyn Trait> {
| -------------- expected `Box<(dyn Trait + 'static)>` because of return type
Expand All @@ -254,7 +254,7 @@ LL | Box::new(42)
| +++++++++ +

error[E0308]: mismatched types
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:48:9
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:54:9
|
LL | fn baz() -> Box<dyn Trait> {
| -------------- expected `Box<(dyn Trait + 'static)>` because of return type
Expand All @@ -271,7 +271,7 @@ LL | Box::new(Struct)
| +++++++++ +

error[E0308]: mismatched types
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:50:9
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:56:9
|
LL | fn baz() -> Box<dyn Trait> {
| -------------- expected `Box<(dyn Trait + 'static)>` because of return type
Expand All @@ -288,7 +288,7 @@ LL | Box::new(42)
| +++++++++ +

error[E0308]: mismatched types
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:55:9
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:61:9
|
LL | fn baw() -> Box<dyn Trait> {
| -------------- expected `Box<(dyn Trait + 'static)>` because of return type
Expand All @@ -305,7 +305,7 @@ LL | Box::new(0)
| +++++++++ +

error[E0308]: mismatched types
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:57:9
--> $DIR/dyn-trait-return-should-be-impl-trait.rs:63:9
|
LL | fn baw() -> Box<dyn Trait> {
| -------------- expected `Box<(dyn Trait + 'static)>` because of return type
Expand Down
Loading
Loading