Regression: issue #43941 (pointer methods) causes code in nvml crate to no longer compile #47159
Labels
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
In this crate, there is an extension trait:-
This is then impl'd for an existing pointer:-
Compiling this produces:-
This is wrong on several levels. Firstly, adding a new feature to the std lib broke existing code. Secondly, the error message is decidedly incorrect. I'm actually in favour of the new pointer methods, so I'm happy to fix the code in this crate going forward (?would specialization help?), but I feel something got missed here in the implementation process. There's a decided lack of documentation around it - the unstable book contains no details, and the tracking issue is equally thin.
The text was updated successfully, but these errors were encountered: