forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#95999 - Dylan-DPC:rollup-k2r3k11, r=Dylan-DPC
Rollup of 4 pull requests Successful merges: - rust-lang#95441 (Always use system `python3` on MacOS) - rust-lang#95954 (Fix broken link in coverage tools docs) - rust-lang#95984 (Fix spelling in docs for `can_not_overflow`) - rust-lang#95989 (diagnostics: regression test for spurrious "help: store this in the heap") Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
8 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// https://github.com/rust-lang/rust/issues/82446 | ||
// Spurious 'help: store this in the heap' regression test | ||
trait MyTrait {} | ||
|
||
struct Foo { | ||
val: Box<dyn MyTrait> | ||
} | ||
|
||
fn make_it(val: &Box<dyn MyTrait>) { | ||
Foo { | ||
val //~ ERROR [E0308] | ||
}; | ||
} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
error[E0308]: mismatched types | ||
--> $DIR/issue-82446.rs:11:9 | ||
| | ||
LL | val | ||
| ^^^ expected struct `Box`, found reference | ||
| | ||
= note: expected struct `Box<(dyn MyTrait + 'static)>` | ||
found reference `&Box<(dyn MyTrait + 'static)>` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0308`. |