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

Rollup of 19 pull requests #35462

Closed
wants to merge 40 commits into from
Closed

Rollup of 19 pull requests #35462

wants to merge 40 commits into from

Conversation

mikhail-m1 and others added 30 commits August 5, 2016 18:57
Function errno_location() is not used on DragonFly. As warnings are
errors, this breaks the build.
Fixes rust-lang#35251
Also changes the span of the error to the span of the type
as suggested in the bonus section of rust-lang#35251
Updates compiler error E0046 with new format

Addresses rust-lang#35209 as part of rust-lang#35233.
r? @jonathandturner

I've repeated the following in my code. If this is something not desirable then let me know if there's any process to make this any cleaner. Thank you.
```rust
missing_items.iter()
    .map(|name| name.to_string())
     .collect::<Vec<_>>().join("`, `"))
```
Updates compiler error E0040 with new format

Addresses rust-lang#35208 as part of rust-lang#35233.
r? @GuillaumeGomez
…andturner

Update compiler error 0027 to use new error format.

Part of rust-lang#35233,
Addresses rust-lang#35200

r? @jonathandturner
Update E0220 message to new format

Part of rust-lang#35233 .
Fixes rust-lang#35385.

r? @jonathandturner

Should it keep E0191?
Jonathan Turner added 10 commits August 7, 2016 07:25
…andturner

Update compiler error 0029 to use new error format.

Part of rust-lang#35233,
Addresses rust-lang#35201

r? @jonathandturner
E0131 updated to new format

Changes
```
error[E0131]: main function is not allowed to have type parameters
  --> src/test/compile-fail/E0131.rs:11:1
   |
11 | fn main<T>() { //~ ERROR E0131
   | ^
```
to
```
error[E0131]: main function is not allowed to have type parameters
  --> src/test/compile-fail/E0131.rs:11:1
   |
11 | fn main<T>() { //~ ERROR E0131
   |        ^^^ main cannot have type parameters
```
Fixes rust-lang#35257. Part of rust-lang#35233.
r? @jonathandturner
…t, r=jonathandturner

Updated E0225 to new format.

Part of rust-lang#35233.
Fixes rust-lang#35388.

r? @jonathandturner
…l422

Indicate tracking issue for `exact_size_is_empty` unstability.

rust-lang#35428
…-location, r=alexcrichton

Fix build on DragonFly (unused function errno_location)

Function errno_location() is not used on DragonFly. As warnings are
errors, this breaks the build.
…=jonathandturner

Fixing compiler error E0121

Fixes rust-lang#35254 and part of rust-lang#35233
Add doc example for `std::ffi::NulError::into_vec`.

None
@rust-highfive
Copy link
Collaborator

r? @arielb1

(rust_highfive has picked a reviewer for you, use r? to override)

@sophiajt
Copy link
Contributor Author

sophiajt commented Aug 7, 2016

@bors r+ p=1

@bors
Copy link
Contributor

bors commented Aug 7, 2016

📌 Commit 1703f87 has been approved by jonathandturner

@TimNN
Copy link
Contributor

TimNN commented Aug 7, 2016

A local build of this PR had some test failures:

failures:

---- [compile-fail] compile-fail/E0206.rs stdout ----

error: /home/logic/build/rust/src/test/compile-fail/E0206.rs:13: unexpected "note": 'impl doesn't use types inside crate'

error: /home/logic/build/rust/src/test/compile-fail/E0206.rs:13: unexpected "note": '13:1: 13:22: the impl does not reference any types defined in this crate'

error: 2 unexpected errors found, 0 expected errors not found
status: exit code: 101
command: /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/stage2/bin/rustc /home/logic/build/rust/src/test/compile-fail/E0206.rs -L /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail --target=x86_64-unknown-linux-gnu --error-format json -Z unstable-options -L /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail/E0206.stage2-x86_64-unknown-linux-gnu.compile-fail.libaux -C prefer-dynamic -o /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail/E0206.stage2-x86_64-unknown-linux-gnu -Crpath -O -Lnative=/home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/rust-test-helpers
unexpected errors (from JSON output): [
    Error {
        line_num: 13,
        kind: Some(
            Note
        ),
        msg: "impl doesn\'t use types inside crate"
    },
    Error {
        line_num: 13,
        kind: Some(
            Note
        ),
        msg: "13:1: 13:22: the impl does not reference any types defined in this crate"
    }
]

thread '[compile-fail] compile-fail/E0206.rs' panicked at 'Box<Any>', /home/logic/build/rust/src/tools/compiletest/src/runtest.rs:1082
note: Run with `RUST_BACKTRACE=1` for a backtrace.

---- [compile-fail] compile-fail/E0220.rs stdout ----

error: /home/logic/build/rust/src/test/compile-fail/E0220.rs:15: unexpected "error": '15:12: 15:24: the value of the associated type `Bar` (from the trait `Trait`) must be specified [E0191]'

error: /home/logic/build/rust/src/test/compile-fail/E0220.rs:16: expected error not found: E0191

error: 1 unexpected errors found, 1 expected errors not found
status: exit code: 101
command: /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/stage2/bin/rustc /home/logic/build/rust/src/test/compile-fail/E0220.rs -L /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail --target=x86_64-unknown-linux-gnu --error-format json -Z unstable-options -L /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail/E0220.stage2-x86_64-unknown-linux-gnu.compile-fail.libaux -C prefer-dynamic -o /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail/E0220.stage2-x86_64-unknown-linux-gnu -Crpath -O -Lnative=/home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/rust-test-helpers
unexpected errors (from JSON output): [
    Error {
        line_num: 15,
        kind: Some(
            Error
        ),
        msg: "15:12: 15:24: the value of the associated type `Bar` (from the trait `Trait`) must be specified [E0191]"
    }
]

not found errors (from test file): [
    Error {
        line_num: 16,
        kind: Some(
            Error
        ),
        msg: "E0191"
    }
]

thread '[compile-fail] compile-fail/E0220.rs' panicked at 'Box<Any>', /home/logic/build/rust/src/tools/compiletest/src/runtest.rs:1082

---- [compile-fail] compile-fail/coherence-impls-copy.rs stdout ----

error: /home/logic/build/rust/src/test/compile-fail/coherence-impls-copy.rs:34: unexpected "note": 'impl doesn't use types inside crate'

error: /home/logic/build/rust/src/test/compile-fail/coherence-impls-copy.rs:34: unexpected "note": '34:1: 34:34: the impl does not reference any types defined in this crate'

error: /home/logic/build/rust/src/test/compile-fail/coherence-impls-copy.rs:43: unexpected "note": 'impl doesn't use types inside crate'

error: /home/logic/build/rust/src/test/compile-fail/coherence-impls-copy.rs:43: unexpected "note": '43:1: 43:26: the impl does not reference any types defined in this crate'

error: /home/logic/build/rust/src/test/compile-fail/coherence-impls-copy.rs:48: unexpected "note": 'impl doesn't use types inside crate'

error: /home/logic/build/rust/src/test/compile-fail/coherence-impls-copy.rs:48: unexpected "note": '48:1: 48:36: the impl does not reference any types defined in this crate'

error: 6 unexpected errors found, 0 expected errors not found
status: exit code: 101
command: /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/stage2/bin/rustc /home/logic/build/rust/src/test/compile-fail/coherence-impls-copy.rs -L /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail --target=x86_64-unknown-linux-gnu --error-format json -Z unstable-options -L /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail/coherence-impls-copy.stage2-x86_64-unknown-linux-gnu.compile-fail.libaux -C prefer-dynamic -o /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail/coherence-impls-copy.stage2-x86_64-unknown-linux-gnu -Crpath -O -Lnative=/home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/rust-test-helpers
unexpected errors (from JSON output): [
    Error {
        line_num: 34,
        kind: Some(
            Note
        ),
        msg: "impl doesn\'t use types inside crate"
    },
    Error {
        line_num: 34,
        kind: Some(
            Note
        ),
        msg: "34:1: 34:34: the impl does not reference any types defined in this crate"
    },
    Error {
        line_num: 43,
        kind: Some(
            Note
        ),
        msg: "impl doesn\'t use types inside crate"
    },
    Error {
        line_num: 43,
        kind: Some(
            Note
        ),
        msg: "43:1: 43:26: the impl does not reference any types defined in this crate"
    },
    Error {
        line_num: 48,
        kind: Some(
            Note
        ),
        msg: "impl doesn\'t use types inside crate"
    },
    Error {
        line_num: 48,
        kind: Some(
            Note
        ),
        msg: "48:1: 48:36: the impl does not reference any types defined in this crate"
    }
]

thread '[compile-fail] compile-fail/coherence-impls-copy.rs' panicked at 'Box<Any>', /home/logic/build/rust/src/tools/compiletest/src/runtest.rs:1082

---- [compile-fail] compile-fail/unboxed-closure-sugar-wrong-trait.rs stdout ----

error: /home/logic/build/rust/src/test/compile-fail/unboxed-closure-sugar-wrong-trait.rs:15: unexpected "note": 'associated `Output` not found in `Trait`'

error: 1 unexpected errors found, 0 expected errors not found
status: exit code: 101
command: /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/stage2/bin/rustc /home/logic/build/rust/src/test/compile-fail/unboxed-closure-sugar-wrong-trait.rs -L /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail --target=x86_64-unknown-linux-gnu --error-format json -Z unstable-options -L /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail/unboxed-closure-sugar-wrong-trait.stage2-x86_64-unknown-linux-gnu.compile-fail.libaux -C prefer-dynamic -o /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/test/compile-fail/unboxed-closure-sugar-wrong-trait.stage2-x86_64-unknown-linux-gnu -Crpath -O -Lnative=/home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/rust-test-helpers
unexpected errors (from JSON output): [
    Error {
        line_num: 15,
        kind: Some(
            Note
        ),
        msg: "associated `Output` not found in `Trait`"
    }
]

thread '[compile-fail] compile-fail/unboxed-closure-sugar-wrong-trait.rs' panicked at 'Box<Any>', /home/logic/build/rust/src/tools/compiletest/src/runtest.rs:1082


failures:
    [compile-fail] compile-fail/E0206.rs
    [compile-fail] compile-fail/E0220.rs
    [compile-fail] compile-fail/coherence-impls-copy.rs
    [compile-fail] compile-fail/unboxed-closure-sugar-wrong-trait.rs

@sophiajt
Copy link
Contributor Author

sophiajt commented Aug 7, 2016

@bors r-

@TimNN
Copy link
Contributor

TimNN commented Aug 7, 2016

I believe the failures in E0206.rs and coherence-impls-copy.rs are from #35402 due to now missing notes.

@sophiajt
Copy link
Contributor Author

sophiajt commented Aug 7, 2016

@TimNN - thanks for the catch.

@TimNN
Copy link
Contributor

TimNN commented Aug 7, 2016

The E0220.rs failures also seems to be due to now missing notes (#35412).

@TimNN
Copy link
Contributor

TimNN commented Aug 7, 2016

unboxed-closure-sugar-wrong-trait.rs seems to be #35412 as well.

@sophiajt
Copy link
Contributor Author

sophiajt commented Aug 7, 2016

Closing so I can reroll now that there are new PRs

@sophiajt sophiajt closed this Aug 7, 2016
@Centril Centril added the rollup A PR which is a rollup label Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.