rust/compiler/rustc_trait_selection/src/traits
Matthias Krüger aa076d6144
Rollup merge of #102613 - TaKO8Ki:fix-part-of-101739, r=compiler-errors
Fix ICE #101739

Fixes a part of #101739

This cannot cover the following case. It causes `too many args provided` error and obligation does not have references error. I want your advice to solve the following cases as well in this pull request or a follow-up.

```rust
#![crate_type = "lib"]
#![feature(transmutability)]
#![allow(dead_code, incomplete_features, non_camel_case_types)]

mod assert {
    use std::mem::BikeshedIntrinsicFrom;

    pub fn is_transmutable<
        Src,
        Dst,
        Context,
        const ASSUME_ALIGNMENT: bool,
        const ASSUME_LIFETIMES: bool,
        const ASSUME_VALIDITY: bool,
        const ASSUME_VISIBILITY: bool,
    >()
    where
        Dst: BikeshedIntrinsicFrom<
            Src,
            Context,
            ASSUME_ALIGNMENT,
            ASSUME_LIFETIMES,
            ASSUME_VALIDITY,
            ASSUME_VISIBILITY,
        >,
    {}
}

fn via_const() {
    struct Context;
    #[repr(C)] struct Src;
    #[repr(C)] struct Dst;

    const FALSE: bool = false;

    assert::is_transmutable::<Src, Dst, Context, FALSE, FALSE, FALSE, FALSE>();
}
```
2022-10-03 19:12:19 +02:00
..
error_reporting Rollup merge of #102506 - TaKO8Ki:specify-dyn-kind, r=lcnr 2022-09-30 19:06:07 +02:00
query Rollup merge of #102137 - b-naber:lazy-const-val-conversion, r=lcnr 2022-09-23 15:40:22 +02:00
select Rollup merge of #102613 - TaKO8Ki:fix-part-of-101739, r=compiler-errors 2022-10-03 19:12:19 +02:00
specialize Refactor rustc lint API 2022-10-01 10:03:06 +00:00
auto_trait.rs introduce mir::Unevaluated 2022-09-22 12:35:28 +02:00
chalk_fulfill.rs Update TypeVisitor paths 2022-07-06 06:41:53 +01:00
codegen.rs Make cycle errors recoverable 2022-09-19 22:14:40 -05:00
coherence.rs remove the Subst trait, always use EarlyBinder 2022-09-19 11:37:27 +02:00
const_evaluatable.rs Refactor rustc lint API 2022-10-01 10:03:06 +00:00
engine.rs Rollup merge of #100473 - compiler-errors:normalize-the-fn-def-sig-plz, r=lcnr 2022-08-30 16:56:08 +05:30
fulfill.rs Tweak FulfillProcessor. 2022-09-27 16:37:00 +10:00
misc.rs Remove FulfillmentContext param from fully_normalize 2022-08-04 13:42:13 +00:00
mod.rs Auto merge of #100982 - fee1-dead-contrib:const-impl-requires-const-trait, r=oli-obk 2022-09-22 04:22:24 +00:00
object_safety.rs Refactor rustc lint API 2022-10-01 10:03:06 +00:00
on_unimplemented.rs Address nits, rename enclosing_scope => parent_label 2022-09-04 02:10:31 +00:00
outlives_bounds.rs improve infer var handling for implied bounds 2022-09-19 15:13:34 +02:00
project.rs Auto merge of #102056 - b-naber:unevaluated, r=lcnr 2022-09-23 13:39:11 +00:00
relationships.rs change map_bound(|_| x to rebind(x 2022-07-21 07:45:49 +00:00
structural_match.rs Rollup merge of #99746 - compiler-errors:more-trait-engine, r=jackh726 2022-08-03 22:29:27 +02:00
util.rs remove the Subst trait, always use EarlyBinder 2022-09-19 11:37:27 +02:00
wf.rs Auto merge of #100982 - fee1-dead-contrib:const-impl-requires-const-trait, r=oli-obk 2022-09-22 04:22:24 +00:00