You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#![feature(fn_traits)]#![feature(unboxed_closures)]structIshmael;structMaybe;structCallMe;implFnOnce<(Ishmael,)>forCallMe{typeOutput = ();extern"rust-call"fncall_once(self,_args:(Ishmael,)) -> (){println!("Split your lungs with blood and thunder!");}}implFnOnce<(Maybe,)>forCallMe{typeOutput = ();extern"rust-call"fncall_once(self,_args:(Maybe,)) -> (){println!("So we just met, and this is crazy");}}fnmain(){CallMe(Ishmael);CallMe(Maybe);}
To fix this in gccrs there are a few things we need to do:
refactor MethodResolver::Probe to return a set so that we can get multiple candidate errors properly
refactor autoderef to take an optional list of arguments which can be used to match function calls against if it is available
support looking for call_once implementations on call-expr's like this so that this becomes:
Rustc had this issue: rust-lang/rust#45510
The fix was: rust-lang/rust#55986
To fix this in gccrs there are a few things we need to do:
Originally posted by @philberty in #195 (comment)
The text was updated successfully, but these errors were encountered: