Skip to content
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

Error while compiling url v1.2.3 for stest 0.6.10 #9

Open
polyzen opened this issue Dec 24, 2019 · 1 comment
Open

Error while compiling url v1.2.3 for stest 0.6.10 #9

polyzen opened this issue Dec 24, 2019 · 1 comment

Comments

@polyzen
Copy link

polyzen commented Dec 24, 2019

stest 0.6.10
rustc 1.40.0

cargo build --release --locked
...

   Compiling url v1.2.3
error[E0713]: borrow may still be in use when destructor runs
   --> /home/user/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/url-1.2.3/src/form_urlencoded.rs:246:40
    |
244 | impl<'a> Target for ::UrlQuery<'a> {
    |      -- lifetime `'a` defined here
245 |     fn as_mut_string(&mut self) -> &mut String { &mut self.url.serialization }
246 |     fn finish(self) -> &'a mut ::Url { self.url }
    |                                        ^^^^^^^^ - here, drop of `self` needs exclusive access to `*self.url`, because the type `UrlQuery<'_>` implements the `Drop` trait
    |                                        |
    |                                        returning this value requires that `*self.url` is borrowed for `'a`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0713`.
error: could not compile `url`.
warning: build failed, waiting for other jobs to finish...
error: build failed

I get the same error without --locked.

Was attempting to rebuild stest as it currently seems to hang after outputting Number of tests to run 1.

@opensourcegeek
Copy link
Owner

@polyzen I'll have a look, I've not tried to build it for a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants