about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-06-23 00:34:00 -0700
committerGitHub <noreply@github.com>2020-06-23 00:34:00 -0700
commit0f9a6edc095048f29829d7e501008140fdfe54fd (patch)
tree9b5804e51f1d69bbcfe7e13449928d37686d8475 /src/libstd/sys/unix/stack_overflow.rs
parentcd18ac1ce8f256801b69b9cd1df92bf975f85bc4 (diff)
parent935516803e2822da33479bcbc8d3dfb2833a8d49 (diff)
downloadrust-0f9a6edc095048f29829d7e501008140fdfe54fd.tar.gz
rust-0f9a6edc095048f29829d7e501008140fdfe54fd.zip
Rollup merge of #73515 - christianpoveda:livedrop-diagnostics, r=oli-obk
Add second message for LiveDrop errors

This is an attempt to fix https://github.com/rust-lang/rust/issues/72907 by adding a second message to the `LiveDrop` diagnostics. Changing from this
```
error[E0493]: destructors cannot be evaluated at compile-time
 --> src/lib.rs:7:9
  |
7 |     let mut always_returned = None;
  |         ^^^^^^^^^^^^^^^^^^^ constants cannot evaluate destructors

error: aborting due to previous error
```
to this
```
error[E0493]: destructors cannot be evaluated at compile-time
  --> foo.rs:6:9
   |
6  |     let mut always_returned = None;
   |         ^^^^^^^^^^^^^^^^^^^ constants cannot evaluate destructors
...
10 |         always_returned = never_returned;
   |         --------------- value is dropped here

error: aborting due to previous error
```
r? @RalfJung @ecstatic-morse
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions