about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2021-01-29 11:47:47 -0800
committerEsteban Küber <esteban@kuber.com.ar>2021-02-03 08:52:57 -0800
commitede0a71b9ebc9d8c87a06dbd95ca41ef7a4f93e4 (patch)
tree3bc3ba685de954507a34943f6f275cba674925a1 /library/std/src/sys/unix/stack_overflow.rs
parentb81f5811f96fe750ab28c15219d1b0dba6b1dc90 (diff)
downloadrust-ede0a71b9ebc9d8c87a06dbd95ca41ef7a4f93e4.tar.gz
rust-ede0a71b9ebc9d8c87a06dbd95ca41ef7a4f93e4.zip
Remove incorrect `delay_span_bug`
The following code is supposed to compile

```rust
use std::ops::BitOr;

pub trait IntWrapper {
    type InternalStorage;
}

impl<T> BitOr for dyn IntWrapper<InternalStorage = T>
where
    Self: Sized,
    T: BitOr + BitOr<Output = T>,
{
    type Output = Self;
    fn bitor(self, _other: Self) -> Self {
        todo!()
    }
}
```

Before this change it would ICE. In #70998 the removed logic was added
to provide better suggestions, and the `delay_span_bug` guard was added
to  protect against a potential logic error when returning traits. As it
happens, there are cases, like the one above, where traits can indeed be
returned, so valid code was being rejected.

Fix #80207.
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions