about summary refs log tree commit diff
path: root/src/liburl
AgeCommit message (Collapse)AuthorLines
2014-09-30librustc: Forbid `..` in range patterns.Patrick Walton-17/+17
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. [breaking-change]
2014-09-24handling fallout from entry apiAlexis Beingessner-2/+5
2014-08-26Rebasing changesNick Cameron-2/+4
2014-08-13core: Change the argument order on splitn and rsplitn for strs.Brian Anderson-1/+1
This makes it consistent with the same functions for slices, and allows the search closure to be specified last. [breaking-change]
2014-08-12Allow deprecation in deprecated librariesAaron Turon-0/+1
2014-07-31alloc, arena, test, url, uuid: Elide lifetimes.OGINO Masanori-6/+5
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-07-31Deprecate the url crate.Simon Sapin-1/+6
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
2014-07-11Update doc URLs for version bumpBrian Anderson-1/+1
2014-07-09Register new snapshotsAlex Crichton-2/+0
Closes #15544
2014-07-08std: Rename the `ToStr` trait to `ToString`, and `to_str` to `to_string`.Richo Healey-2/+2
[breaking-change]
2014-07-05auto merge of #15319 : alexcrichton/rust/no-crate-id, r=brsonbors-1/+3
This is an implementation of [RFC 35](https://github.com/rust-lang/rfcs/blob/master/active/0035-remove-crate-id.md). The summary for this PR is the same as that of the RFC, with one addendum: * Removes the `#[crate_id]` attribute and knowledge of versions from rustc. * Added a `#[crate_name]` attribute similar to the old `#[crate_id]` attribute * Output filenames no longer have versions or hashes * Symbols no longer have versions (they still have hashes) * A new flag, `--extern`, is used to override searching for external crates * A new flag, `-C metadata=foo`, used when hashing symbols * [added] An old flag, `--crate-name`, was re purposed to specify the crate name from the command line. I tried to maintain backwards compatibility wherever possible (with warnings being printed). If I missed anywhere, however, please let me know! [breaking-change] Closes #14468 Closes #14469 Closes #14470 Closes #14471
2014-07-05auto merge of #15225 : Ryman/rust/liburl_minor, r=alexcrichtonbors-693/+622
See commits for info, a number of these are 'breaking', although liburl is marked experimental so I'm not sure that matters so much. First two commits will be impacted if #15138 is adopted, but it's a simple rename.
2014-07-05Add #[crate_name] attributes as necessaryAlex Crichton-1/+3
2014-07-04liburl: Generic input for {en,de}code.Kevin Butler-16/+26
2014-07-04liburl: cosmetic test changes.Kevin Butler-97/+113
2014-07-04liburl: Remove some unnecessary allocations.Kevin Butler-166/+161
Some signatures have changed from String to &str returns. To fix, call to_string() on the returned value. [breaking-change]
2014-07-04liburl: Simplify encoding/decoding using iterators.Kevin Butler-336/+266
2014-07-04liburl: remove redundant fields in Url.Kevin Butler-36/+17
url.path - Now a Path instead of a String. To fix old code: url.path => url.path.path url.query => url.path.query url.fragment => url.path.fragment Not much point having the Path struct if it's not going to be used. [breaking-change]
2014-07-04liburl: rename and move path_from_str to Path::parse_str.Kevin Butler-26/+34
url::path_from_str => url::Path::parse_str The FromStr trait still works, but its confusing to have a path_from_str free function that retuns a Result, while the regular from_str style functions return an Option, hence the rename to indicate a Result. [breaking-change]
2014-07-04liburl: rename and move from_str to Url::parse_str.Kevin Butler-72/+61
url::from_str => url::Url::parse_str The FromStr trait still works, but its confusing to have a from_str free function that retuns a Result, while the regular from_str returns an Option, hence the rename. [breaking-change]
2014-07-02Merge remote-tracking branch 'origin/master' into 0.11.0-releaseAlex Crichton-1/+1
Conflicts: src/libstd/lib.rs
2014-06-29librustc: Remove the fallback to `int` for integers and `f64` forPatrick Walton-1/+1
floating point numbers for real. This will break code that looks like: let mut x = 0; while ... { x += 1; } println!("{}", x); Change that code to: let mut x = 0i; while ... { x += 1; } println!("{}", x); Closes #15201. [breaking-change]
2014-06-27Update to 0.11.0 0.11.0Alex Crichton-2/+2
2014-06-17Mark all crates except std as experimentalBrian Anderson-0/+1
2014-06-11std: Remove i18n/l10n from format!Alex Crichton-2/+2
* The select/plural methods from format strings are removed * The # character no longer needs to be escaped * The \-based escapes have been removed * '{{' is now an escape for '{' * '}}' is now an escape for '}' Closes #14810 [breaking-change]
2014-06-06rustdoc: Submit examples to play.rust-lang.orgAlex Crichton-1/+2
This grows a new option inside of rustdoc to add the ability to submit examples to an external website. If the `--markdown-playground-url` command line option or crate doc attribute `html_playground_url` is present, then examples will have a button on hover to submit the code to the playground specified. This commit enables submission of example code to play.rust-lang.org. The code submitted is that which is tested by rustdoc, not necessarily the exact code shown in the example. Closes #14654
2014-06-06url: encode small bytes correctly.Huon Wilson-2/+6
Previously, bytes less than 16 would be encoded as %X, rather than %XX, since the output width was left to be automatic.
2014-06-06auto merge of #14667 : aochagavia/rust/pr2, r=huonwbors-1/+1
2014-06-06Change to_str().to_string() to just to_str()Adolfo OchagavĂ­a-1/+1
2014-06-05Fallout from the libcollections movementAlex Crichton-8/+5
2014-06-01std: Drop Total from Total{Eq,Ord}Alex Crichton-2/+2
This completes the last stage of the renaming of the comparison hierarchy of traits. This change renames TotalEq to Eq and TotalOrd to Ord. In the future the new Eq/Ord will be filled out with their appropriate methods, but for now this change is purely a renaming change. [breaking-change]
2014-05-31Fix broken markup in query_to_str documentationFlorian Hartwig-2/+2
2014-05-30std: Rename {Eq,Ord} to Partial{Eq,Ord}Alex Crichton-5/+5
This is part of the ongoing renaming of the equality traits. See #12517 for more details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord} or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}. cc #12517 [breaking-change]
2014-05-27std: Rename strbuf operations to stringRicho Healey-207/+207
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-45/+45
[breaking-change]
2014-05-22auto merge of #14348 : alexcrichton/rust/doc.rust-lang.org, r=huonwbors-1/+1
2014-05-22libstd: Remove `~str` from all `libstd` modules except `fmt` and `str`.Patrick Walton-4/+4
2014-05-21Change static.rust-lang.org to doc.rust-lang.orgAlex Crichton-1/+1
The new documentation site has shorter urls, gzip'd content, and index.html redirecting functionality.
2014-05-15Updates with core::fmt changesAlex Crichton-13/+13
1. Wherever the `buf` field of a `Formatter` was used, the `Formatter` is used instead. 2. The usage of `write_fmt` is minimized as much as possible, the `write!` macro is preferred wherever possible. 3. Usage of `fmt::write` is minimized, favoring the `write!` macro instead.
2014-05-14liburl: Remove all uses of `~str` from `liburl`Patrick Walton-302/+315
2014-05-12Add the patch number to version strings. Closes #13289Brian Anderson-1/+1
2014-05-01remove leftover obsolete string literalsDaniel Micay-2/+2
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-213/+215
2014-04-15liburl doc: insert missing hyphenChris Shea-1/+1
2014-04-10libstd: Implement `StrBuf`, a new string buffer type like `Vec`, andPatrick Walton-24/+25
port all code over to use it.
2014-04-06De-~[] Mem{Reader,Writer}Steven Fackler-1/+1
2014-04-03Bump version to 0.11-preBrian Anderson-1/+1
This also changes some of the download links in the documentation to 'nightly'.
2014-04-03auto merge of #13286 : alexcrichton/rust/release, r=brsonbors-1/+1
Merging the 0.10 release into the master branch.
2014-03-31url: Switch privacy defaults where necessaryAlex Crichton-12/+12
2014-03-31Bump version to 0.10Alex Crichton-1/+1