mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
![]() 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>(); } ``` |
||
---|---|---|
.. | ||
error_reporting | ||
query | ||
select | ||
specialize | ||
auto_trait.rs | ||
chalk_fulfill.rs | ||
codegen.rs | ||
coherence.rs | ||
const_evaluatable.rs | ||
engine.rs | ||
fulfill.rs | ||
misc.rs | ||
mod.rs | ||
object_safety.rs | ||
on_unimplemented.rs | ||
outlives_bounds.rs | ||
project.rs | ||
relationships.rs | ||
structural_match.rs | ||
util.rs | ||
wf.rs |