Skip to content

Rolling up PRs in the queue #15949

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

Merged
merged 23 commits into from
Jul 24, 2014
Merged

Rolling up PRs in the queue #15949

merged 23 commits into from
Jul 24, 2014

Conversation

alexcrichton
Copy link
Member

No description provided.

aochagavia and others added 23 commits July 24, 2014 07:25
This trait was only implemented by `String`. It provided the methods
`into_bytes` and `append`, both of which **are already implemented as normal
methods** of `String` (not as trait methods). This change improves the
consistency of strings.

This shouldn't break any code, except if somebody has implemented
`OwnedStr` for a user-defined type.
Use `string::raw::from_buf` instead

[breaking-change]
Replaced by `string::raw::from_utf8`

[breaking-change]
Use `string:raw::from_utf8` instead

[breaking-change]
Replaced by `string::raw::from_buf_len`

[breaking-change]
Replaced by `string::raw::from_parts`

[breaking-change]
We use use `from_utf8_lossy` to convert it to a MaybeOwned string, to
avoid failing in case the CString contains invalid UTF-8
This also removes checks in other methods of `CString`

Breaking changes:
* `CString::new` now fails if `buf` is null. To avoid this add a check
before creatng a new `CString` .
* The `is_null` and `is_not_null` methods are deprecated, because a
`CString` cannot be null.
* Other methods which used to fail if the `CString` was null do not fail anymore

[breaking-change]
There should be no more problems during SjLj pass
This eliminates the last vestige of the `~` syntax.

Instead of `~self`, write `self: Box<TypeOfSelf>`; instead of `mut
~self`, write `mut self: Box<TypeOfSelf>`, replacing `TypeOfSelf` with
the self-type parameter as specified in the implementation.

Closes rust-lang#13885.

[breaking-change]
rustdoc currently determines whether to produce a table of
contents (along with numbered sections) from the input type: yes for
markdown input, no for Rust input. This commit adds a flag to disable
the table of contents for markdown input, which is useful for embedding
the output in a larger context.
This is done entirely in the libraries for functions up to 16 arguments.
A macro is used so that more arguments can be easily added if we need.
Note that I had to adjust the overloaded call algorithm to not try
calling the overloaded call operator if the callee is a built-in
function type, to prevent loops.

Closes rust-lang#15448.
This breaks code like:

    struct Point<T> {
        x: T,
        y: T,
    }

    let pt = Point::<bool> {
        x: 1,
        y: 2,
    };

Change this code to not contain a type error. For example:

    let pt = Point::<int> {
        x: 1,
        y: 2,
    };

Closes rust-lang#9620.
Closes rust-lang#15875.

[breaking-change]
Like rustc, this is required by cargo to build documentation.
Closes rust-lang#15807 (Deprecate some unsafe functions in `str::raw` and remove `OwnedStr` trait)
Closes rust-lang#15859 (Implement `Show` for `CString` and fix warning compiling tests for libcollections)
Closes rust-lang#15911 (Updated LLVM for iOS)
Closes rust-lang#15925 (libsyntax: Remove `~self` and `mut ~self` from the language.)
Closes rust-lang#15930 (Add examples for Checked[Add|Sub|Mul|Div])
Closes rust-lang#15933 (rustdoc: make table of contents optional)
Closes rust-lang#15937 (librustc: Make bare functions implement the `FnMut` trait.)
Closes rust-lang#15938 (librustc: Check structure constructors against their types.)
Closes rust-lang#15939 (rustdoc: Add a --crate-name option)
Closes rust-lang#15942 (Document trie collections)
Closes rust-lang#15943 (Document SmallIntMap)
@bors bors closed this Jul 24, 2014
@bors bors merged commit 1031ad8 into rust-lang:master Jul 24, 2014
@alexcrichton alexcrichton deleted the rollup branch July 24, 2014 21:39
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

Successfully merging this pull request may close these issues.

8 participants