| Age | Commit message (Collapse) | Author | Lines |
|
|
|
[beta] Tweak some stabilizations in libstd
This is a backport of https://github.com/rust-lang/rust/pull/50088
|
|
|
|
This commit tweaks a few stable APIs in the `beta` branch before they hit
stable. The `str::is_whitespace` and `str::is_alphanumeric` functions were
deleted (added in #49381, issue at #49657). The `and_modify` APIs added
in #44734 were altered to take a `FnOnce` closure rather than a `FnMut` closure.
Closes #49581
Closes #49657
|
|
rustdoc: add an --edition flag to compile docs/doctests with a certain edition
To correspond with the 2018 edition, this adds a (currently unstable) `--edition` flag to rustdoc that makes it compile crates and doctests with the given edition. Once this lands, Cargo should be updated to pass this flag when the edition configuration option is given.
|
|
Rename fs::read_string to read_to_string and stabilize
As approved in https://github.com/rust-lang/rust/issues/46588#issuecomment-377530365
Closes #46588.
|
|
Implement some trivial size_hints for various iterators
This also implements ExactSizeIterator where applicable.
Addresses most of the Iterator traits mentioned in #23708.
I intend to do more, but I don't want to make the PR too large.
|
|
Add primitive intra-links
Part of #43466.
r? @QuietMisdreavus
|
|
|
|
Rollup of 10 pull requests
- Successful merges: #49443, #49445, #49446, #49463, #49464, #49466, #49468, #49473, #49484, #49486
- Failed merges:
|
|
Hide type declarations by default
I'm not very happy for the moment about the rendering but the bases are here:
<img width="610" alt="screen shot 2018-03-27 at 11 56 27" src="https://user-images.githubusercontent.com/3050060/37960492-0e045954-31b6-11e8-9cea-1ef8a3f980c4.png">
r? @QuietMisdreavus
|
|
Rename main theme into light theme
r? @QuietMisdreavus
|
|
Fix tooltip position
r? @QuietMisdreavus
|
|
|
|
|
|
|
|
Remove universes from `ty::ParamEnv`
This change was never meant to land. #48407 takes an alternate approach. However, that PR is now blocked on some issues with canonicalization, and rebasing these reverts gets harder each time, so let's just get this bit out of the way now.
r? @nikomatsakis
|
|
|
|
Fix text overlap
Fixes #49006.
r? @QuietMisdreavus
|
|
Fix trait implementation not collapsing docs
r? @QuietMisdreavus
|
|
r=QuietMisdreavus
Fix collapse toggle insertions on impl with docs
Just went through this one randomly... When an impl has docs, the collapse toggle isn't generated. This fixes it.
r? @QuietMisdreavus
|
|
Correctly handle impl trait in external items in rustdoc
fixes #49373
r? @QuietMisdreavus
|
|
Fix search appearance
Fixes #49377.
r? @QuietMisdreavus
And a screenshot:
<img width="1016" alt="screen shot 2018-03-27 at 10 33 01" src="https://user-images.githubusercontent.com/3050060/37956373-7b522852-31ab-11e8-8915-7e20064b5edd.png">
|
|
Introduce a TargetTriple enum to support absolute target paths
This PR replaces target triple strings with a `TargetTriple` enum, which represents either a target triple or a path to a JSON target file. The path variant is used if the `--target` argument has a `.json` extension, else the target triple variant is used.
The motivation of this PR is support for absolute target paths to avoid the need for setting the `RUST_TARGET_PATH` environment variable (see rust-lang/cargo#4905 for more information). For places where some kind of triple is needed (e.g. in the sysroot folder), we use the file name (without extension).
For compatibility, we keep the old behavior of searching for a file named `$(target_triple).json` in `RUST_TARGET_PATH` for non-official target triples.
|
|
|
|
|
|
|
|
Rustdoc support for universal_impl_trait
Hides type parameters synthesized by `impl Trait`-in-argument-position, and enables links to trait names.
<img alt="before" src="https://user-images.githubusercontent.com/7091080/37831646-a61413c6-2ee9-11e8-8ec2-a6137956d922.png" width="450"/>
↓
<img alt="after" src="https://user-images.githubusercontent.com/7091080/37831657-b2ff0ae6-2ee9-11e8-8797-fdad904782bf.png" width="450"/>
Fixes #49309
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Add is_whitespace and is_alphanumeric to str.
The other methods from `UnicodeStr` are already stable inherent
methods on str, but these have not been included.
r? @SimonSapin
|
|
Fix impl assoc constant link not working
Fixes #49323.
r? @QuietMisdreavus
|
|
|
|
|
|
|
|
Fix IE11 search
Fixes #49263.
r? @QuietMisdreavus
I got this code from: https://stackoverflow.com/a/30867255/7879548
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
r=QuietMisdreavus
Fix automatic urls with backticks
Fixes #49164.
r? @QuietMisdreavus
|
|
Put `#[macro_use] extern crate <crate>` before fn main() in doctests
Closes #49174.
|