rust/compiler
Mara Bos 66959448e6
Rollup merge of #81532 - estebank:ice-ice-baby, r=pnkfelix
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 (but not close) #80207.
2021-02-03 18:51:14 +01:00
..
rustc
rustc_apfloat
rustc_arena Rollup merge of #80470 - SimonSapin:array-intoiter-type, r=m-ou-se 2021-01-31 01:47:25 +01:00
rustc_ast Assert the size of the refactored enums 2021-02-01 09:23:40 +01:00
rustc_ast_lowering Auto merge of #81405 - bugadani:ast, r=cjgillot 2021-02-02 17:34:08 +00:00
rustc_ast_passes Auto merge of #81346 - hug-dev:nonsecure-call-abi, r=jonas-schievink 2021-02-03 06:00:43 +00:00
rustc_ast_pretty Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
rustc_attr Rollup merge of #81468 - est31:cfg_version, r=petrochenkov 2021-01-30 13:36:50 +09:00
rustc_builtin_macros Rollup merge of #81647 - m-ou-se:assert-2021-fix, r=petrochenkov 2021-02-02 16:01:46 -05:00
rustc_codegen_cranelift Add a new ABI to support cmse_nonsecure_call 2021-02-02 13:04:31 +00:00
rustc_codegen_llvm Auto merge of #81346 - hug-dev:nonsecure-call-abi, r=jonas-schievink 2021-02-03 06:00:43 +00:00
rustc_codegen_ssa Rollup merge of #81536 - tgnottingham:time-passes-rss, r=oli-obk 2021-02-01 14:29:40 +01:00
rustc_data_structures Rollup merge of #81536 - tgnottingham:time-passes-rss, r=oli-obk 2021-02-01 14:29:40 +01:00
rustc_driver Indicate both start and end of pass RSS in time-passes output 2021-01-29 12:46:29 -08:00
rustc_error_codes Auto merge of #81346 - hug-dev:nonsecure-call-abi, r=jonas-schievink 2021-02-03 06:00:43 +00:00
rustc_errors Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_expand Improve handling of spans around macro result parse errors 2021-01-31 15:24:34 -05:00
rustc_feature Add a new ABI to support cmse_nonsecure_call 2021-02-02 13:04:31 +00:00
rustc_fs_util Optimize away a fs::metadata call. 2021-01-06 08:33:15 -08:00
rustc_graphviz remove redundant closures (clippy::redundant_closure) 2021-01-03 13:34:24 +01:00
rustc_hir Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_hir_pretty Add loop head span to hir 2021-01-21 21:41:46 -08:00
rustc_incremental Auto merge of #80957 - tgnottingham:direct_serialize_depgraph, r=michaelwoerister 2021-01-19 19:36:41 +00:00
rustc_index
rustc_infer Rollup merge of #81655 - matsujika:suggest-accessing-field-rewording, r=estebank 2021-02-02 16:01:48 -05:00
rustc_interface Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
rustc_lexer Return EOF_CHAR constant instead of magic char. 2021-01-07 13:20:04 +01:00
rustc_lint Really fix early lints inside an async desugaring 2021-02-03 10:05:58 +01:00
rustc_lint_defs make const_err a future incompat lint 2021-02-03 15:45:43 +01:00
rustc_llvm Add a new ABI to support cmse_nonsecure_call 2021-02-02 13:04:31 +00:00
rustc_macros Indent the code correctly again after removing the query categories. 2021-01-31 21:40:03 +01:00
rustc_metadata Pre-canoncalize ExternLocation::ExactPaths 2021-01-29 11:02:12 +01:00
rustc_middle Auto merge of #81346 - hug-dev:nonsecure-call-abi, r=jonas-schievink 2021-02-03 06:00:43 +00:00
rustc_mir Rollup merge of #81463 - matsujika:nll-ensure-c-case, r=varkor 2021-02-01 14:29:35 +01:00
rustc_mir_build Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_parse Auto merge of #81405 - bugadani:ast, r=cjgillot 2021-02-02 17:34:08 +00:00
rustc_parse_format rustc_parse_format: Fix character indices in find_skips 2021-01-17 17:40:58 +03:00
rustc_passes Bump rustfmt version 2021-02-02 09:09:52 -05:00
rustc_plugin_impl
rustc_privacy more things are const evaluatable *sparkles* 2021-02-01 20:05:50 +00:00
rustc_query_system Auto merge of #80692 - Aaron1011:feature/query-result-debug, r=estebank 2021-01-26 05:47:23 +00:00
rustc_resolve Rollup merge of #81636 - LingMan:slice_not_vec, r=petrochenkov 2021-02-02 16:01:45 -05:00
rustc_save_analysis Use Option::map_or instead of .map(..).unwrap_or(..) 2021-01-14 19:23:59 +01:00
rustc_serialize stabilize int_bits_const 2021-01-31 21:50:47 +10:00
rustc_session Rollup merge of #81468 - est31:cfg_version, r=petrochenkov 2021-01-30 13:36:50 +09:00
rustc_span Auto merge of #81346 - hug-dev:nonsecure-call-abi, r=jonas-schievink 2021-02-03 06:00:43 +00:00
rustc_symbol_mangling Rollup merge of #80959 - jhpratt:unsigned_abs-stabilization, r=m-ou-se 2021-01-30 13:36:44 +09:00
rustc_target Auto merge of #81346 - hug-dev:nonsecure-call-abi, r=jonas-schievink 2021-02-03 06:00:43 +00:00
rustc_trait_selection Rollup merge of #81544 - JulianKnodt:sat_where, r=lcnr 2021-02-02 16:01:39 -05:00
rustc_traits Update Chalk 2021-02-02 12:37:22 -05:00
rustc_ty_utils Infallible version of def_span. 2021-01-23 13:35:22 +01:00
rustc_type_ir Move a few more types to rustc_type_ir 2021-01-18 21:06:12 +01:00
rustc_typeck Rollup merge of #81532 - estebank:ice-ice-baby, r=pnkfelix 2021-02-03 18:51:14 +01:00