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

Deprecate the url crate. #16076

Merged
merged 1 commit into from
Jul 31, 2014
Merged

Deprecate the url crate. #16076

merged 1 commit into from
Jul 31, 2014

Conversation

SimonSapin
Copy link
Contributor

The replacement is rust-url, which can be used with Cargo.

Fix #15874
Fix #10707
Close #10706
Close #10705
Close #8486

@alexcrichton
Copy link
Member

cc rust-lang/rfcs#189

@SimonSapin
Copy link
Contributor Author

Travis reports a tidy error:

/home/travis/build/rust-lang/rust/src/test/compile-fail/deprecated-url.rs:17: line longer than 100 chars

The relevant line testing an expected error message in a compile-fail test:

    //~^ ERROR use of deprecated item: This is being removed. Use rust-url instead. http://servo.github.io/rust-url/

Is there a way to write the expected message (which is one line) in two source lines, or should I just chop it? (I believe the test harness checks that the actual error message starts with the expected, rather than equals.)

@alexcrichton
Copy link
Member

Tests can be tagged with // ignore-tidy-linelength to bypass the line length check.

@SimonSapin
Copy link
Contributor Author

Fixed.

The replacement is [rust-url](https://github.com/servo/rust-url),
which can be used with Cargo.

Fix rust-lang#15874
Fix rust-lang#10707
Close rust-lang#10706
Close rust-lang#10705
Close rust-lang#8486
@SimonSapin
Copy link
Contributor Author

Build failed with error: use of deprecated item

Pushed a squashed commit to add #![allow(deprecated)] to the tests testing deprecated things.

BTW, is #[deny(deprecated)] on by default really a good idea in tests?

bors added a commit that referenced this pull request Jul 31, 2014
The replacement is [rust-url](https://github.com/servo/rust-url), which can be used with Cargo.

Fix #15874
Fix #10707
Close #10706
Close #10705
Close #8486
@bors bors closed this Jul 31, 2014
@bors bors merged commit 491bd29 into rust-lang:master Jul 31, 2014
@SimonSapin SimonSapin deleted the deprecate-url branch July 31, 2014 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants