-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generics improvements #1135
Generics improvements #1135
Conversation
pub fn local_mir_with_caller( | ||
&self, | ||
def_id: LocalDefId, | ||
caller_def_id: LocalDefId, | ||
substs: SubstsRef<'tcx>, | ||
) -> Rc<mir::Body<'tcx>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JonasAlaif Will this change be easy to incorporate into your refactored Environment
? For proper monomorphisation (and assoc. type normalisation) I need called DefId
, type substitutions (as before), but also the caller DefId
.
And should I wait for your PR to land or can I merge this first (assuming the tests pass)?
bors r+ |
1135: Generics improvements r=Aurel300 a=Aurel300 - [x] Improved associated types resolution (thanks `@vl0w,` from #980). The hope is that this won't erase too many regions... - [x] Normalise associated types when monomorphising MIR bodies for pure functions. - [x] Cache encoded pure functions by `DefId` + (full) encoded signature, not just "type parameters". Co-authored-by: Aurel Bílý <[email protected]> Co-authored-by: Jonas <[email protected]>
Canceled. |
bors r+ |
1135: Generics improvements r=Aurel300 a=Aurel300 - [x] Improved associated types resolution (thanks `@vl0w,` from #980). The hope is that this won't erase too many regions... - [x] Normalise associated types when monomorphising MIR bodies for pure functions. - [x] Cache encoded pure functions by `DefId` + (full) encoded signature, not just "type parameters". Co-authored-by: Aurel Bílý <[email protected]> Co-authored-by: Jonas <[email protected]>
Build failed: |
Superseded by #1147 |
DefId
+ (full) encoded signature, not just "type parameters".