-
Notifications
You must be signed in to change notification settings - Fork 123
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
What's happening here? (fantoccini breaks String + &String) #196
Comments
I found something relevant here: It is caused by your
|
That's very suspicious, and I think it should be reported upstream. Those docs are specifically for the standard library, not for crate authors, and this is certainly a footgun if it applies to all crates! cc @stevepryde as this was introduced in #151. We could totally remove these impls as they haven't been made part of a stable release yet, though that would also hurt the ergonomics of |
I added a note in rust-lang/rust#51916 |
Yeah that's unfortunate. I think it's better to take a small drop in ergonomics than potentially break other code just by importing fantoccini. |
I'm inclined to agree. Let's remove the impls for now 👍 We could perhaps add a helper method like |
Hello I have an idea how to make it work and still be quite ergonomic: |
@jonhoo should I do a pull request or will you (or @stevepryde ) do it? |
It's pretty weird to have to add those Feel free to open a PR, that'll probably be faster! |
@jonhoo can this be closed? |
Ah, yes, closed by #198 ! |
For some reason when I put fantoccini in my project then every operation like
String + &String
will fail to compile. It will break in every file in that project, even if Iuse fantoccini
only in one file.I am running cargo 1.65.0 (4bc8f24d3 2022-10-20) on my windows machine.
Here is the minimal code that causes problems:
Cargo output with
cargo build
:Am I just missing something or is this completely wierd and broken?
The text was updated successfully, but these errors were encountered: