rust/src
Esteban Küber ede0a71b9e 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.
2021-02-03 08:52:57 -08:00
..
bootstrap Bump rustfmt version 2021-02-02 09:09:52 -05:00
build_helper
ci Auto merge of #81539 - nikic:update-armhf-gnu, r=sanxiyn 2021-02-02 06:23:10 +00:00
doc Rollup merge of #80404 - JulianKnodt:arr_ref, r=oli-obk 2021-01-31 16:36:42 +01:00
etc src/etc/json-types -> src/rustdoc-json-types 2021-01-27 18:58:43 -05:00
librustdoc Rollup merge of #81630 - GuillaumeGomez:overflow-sidebar-title-text, r=pickfire 2021-02-02 12:15:06 +01:00
llvm-project@f9a8d70b6e
rustdoc-json-types Fix README typo 2021-01-28 11:15:43 -05:00
test Remove incorrect delay_span_bug 2021-02-03 08:52:57 -08:00
tools Auto merge of #81539 - nikic:update-armhf-gnu, r=sanxiyn 2021-02-02 06:23:10 +00:00
README.md
stage0.txt Bump rustfmt version 2021-02-02 09:09:52 -05:00
version

This directory contains the source code of the rust project, including:

  • The test suite
  • The bootstrapping build system
  • Various submodules for tools, like rustdoc, rls, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.