- 21 1月, 2018 5 次提交
-
-
由 Guillaume Gomez 提交于
Add some edge cases to the documentation of `Path` Affected methods are `starts_with` and `strip_prefix`.
-
由 Guillaume Gomez 提交于
Deprecate std::net::lookup_host We intended to do this quite a while ago but it snuck through. r? @alexcrichton
-
由 Guillaume Gomez 提交于
add Rust By Example to the bookshelf cc #46194 With #46196 freshly merged, we should add a link to the main docs distribution so people can find it! We discussed this at the docs team meeting today and decided to go ahead with adding it to the bookshelf.
-
由 Guillaume Gomez 提交于
Add transpose conversions for nested Option and Result These impls are useful when working with combinator methods that expect an option or a result, but you have a `Result<Option<T>, E>` instead of an `Option<Result<T, E>>` or vice versa.
-
由 Guillaume Gomez 提交于
add kbd style tag to main.css in rustdoc Added css style for kbd tags so they actually look like keys. Result preview and discussion was going on in #46900 .
-
- 20 1月, 2018 18 次提交
-
-
由 bors 提交于
Auto merge of #46980 - zackmdavis:and_the_case_of_the_needlessly_parenthesized_arguments, r=petrochenkov in which the unused-parens lint comes to cover function and method args Resolves #46137.
-
由 bors 提交于
Rename std::ptr::Shared to NonNull and stabilize it This implements the changes proposed at https://github.com/rust-lang/rust/issues/27730#issuecomment-352800629: > * Rename `Shared<T>` to `NonNull<T>` and stabilize it. (Being in the `ptr` module is enough to say that it’s a pointer. I’m not very attached to this specific name though.) > * Rename `Box<T>` methods ~~`from_unique`~~/`into_unique` to ~~`from_nonnull`~~/`into_nonnull` (or whatever names are deemed appropriate), replace `Unique<T>` with `NonNull<T>` in their signatures, and stabilize them. > * Replace `Unique<T>` with `NonNull<T>` in the signatures of methods of the `Alloc` trait. > * Mark `Unique` “permanently-unstable” by replacing remaining occurrences of `#[unstable(feature = "unique", issue = "27730")]` with: > > ```rust > #[unstable(feature = "ptr_internals", issue = "0", reason = "\ > use NonNull instead and consider PhantomData<T> (if you also use #[may_dangle]), \ > Send, and/or Sync")] > ``` > > (Maybe the `reason` string is only useful on the struct definition.) Ideally it would be made private to some crate instead, but it needs to be used in both liballoc and libstd. > * (Leave `NonZero` and `Zeroable` unstable for now, and subject to future bikeshedding.)
-
-
由 Simon Sapin 提交于
-
由 Simon Sapin 提交于
-
由 Simon Sapin 提交于
-
-
由 Simon Sapin 提交于
-
-
由 Simon Sapin 提交于
-
由 Simon Sapin 提交于
-
由 Simon Sapin 提交于
-
由 Simon Sapin 提交于
-
由 Simon Sapin 提交于
Thew `_raw` prefix is included because the fact that `Box`’s ownership semantics are "dissolved" or recreated seem more important than the exact parameter type or return type.
-
由 Simon Sapin 提交于
-
由 Simon Sapin 提交于
`Shared` is now a deprecated `type` alias. CC https://github.com/rust-lang/rust/issues/27730#issuecomment-352800629
-
-
由 bors 提交于
Speed up leb128 encoding and decoding for unsigned values. Make the implementation for some leb128 functions potentially faster. @Mark-Simulacrum, could you please trigger a perf.rlo run?
-
- 19 1月, 2018 5 次提交
-
-
由 bors 提交于
avoid double-unsizing arrays in bytestring match lowering The match lowering code, when lowering matches against bytestrings, works by coercing both the scrutinee and the pattern to `&[u8]` and then comparing them using `<[u8] as Eq>::eq`. If the scrutinee is already of type `&[u8]`, then unsizing it is both unneccessary and a trait error caught by the new and updated MIR typeck, so this PR changes lowering to avoid doing that (match lowering tried to avoid that before, but that attempt was quite broken). Fixes #46920. r? @EddyB
-
由 bors 提交于
Update rustfmt to 0.3.6 r? @nrc
-
由 bors 提交于
Don't include DefIndex in proc-macro registrar function symbol. There can only ever be one registrar function per plugin or proc-macro crate, so adding the `DefIndex` to the function's symbol name does not serve a real purpose. Remove the `DefIndex` from the symbol name makes it stable across incremental compilation sessions. This should fix issue #47292.
-
由 Zack M. Davis 提交于
Resolves #46137.
-
- 18 1月, 2018 12 次提交
-
-
由 topecongiro 提交于
-
由 bors 提交于
Rollup of 6 pull requests - Successful merges: #47250, #47313, #47398, #47468, #47471, #47520 - Failed merges:
-
由 bors 提交于
Update Cargo and its dependencies This'll probably have a bunch of build errors, so let's try and head those off and find them sooner rather than later!
-
由 Marcel Hellwig 提交于
-
由 Alex Crichton 提交于
This'll probably have a bunch of build errors, so let's try and head those off and find them sooner rather than later!
-
由 Steven Fackler 提交于
We intended to do this quite a while ago but it snuck through.
-
由 Tobias Bucher 提交于
Affected methods are `starts_with` and `strip_prefix`.
-
由 Guillaume Gomez 提交于
Use File::metadata instead of fs::metadata to choose buffer size This replaces a `stat` syscall with `fstat` or similar, which can be faster. Fixes #47519.
-
由 Guillaume Gomez 提交于
On E0283, point at method with the requirements On required type annotation diagnostic error, point at method with the requirements if the span is available. CC #45453.
-
由 Guillaume Gomez 提交于
Do not suggest to make `mut` binding external to `Fn` closure Re #46834.
-
由 Guillaume Gomez 提交于
Switch to pulldown as default markdown renderer r? @QuietMisdreavus
-
由 Guillaume Gomez 提交于
rustdoc: Populate external_traits with traits only seen in impls This means default methods can always be found and "Important traits" will include all spotlight traits.
-