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 10 pull requests #89783

Closed
wants to merge 26 commits into from

Conversation

matthiaskrgr
Copy link
Member

Successful merges:

Failed merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

ibraheemdev and others added 26 commits October 7, 2021 15:47
Rather than compiling rustbuild and all its dependencies with
`debuginfo=2`, this compiles dependencies without debuginfo and
rustbuild with `debuginfo=1`. On my laptop, this brings compile times
down from ~1:20 to ~1:05.
This seems to no longer be giving spurious errors when incremental is
enabled.
Fix inherent impl overlap check.

The current implementation of the overlap check was slightly buggy, and unified the wrong connected component in the `ids.len() <= 1` case. This became visible in another PR which changed the iteration order of items.

r? `@matthewjasper` since you reviewed the other PR.
Add `Poll::ready` and revert stabilization of `task::ready!`

This PR adds an inherent `ready` method to `Poll` that can be used with the `?` operator as an alternative to the `task::ready!` macro:
```rust
let val = ready!(fut.poll(cx));
let val = fut.poll(cx).ready()?;
```

I think this form is a nice, non-breaking middle ground between changing the `impl Try for Poll`, and adding a separate macro. It looks better than `ready!` in my opinion, and it composes well:

```rust
let elem = ready!(fut.poll(cx)).pop().unwrap();
let elem = fut.poll(cx).ready()?.pop().unwrap();
```

The planned stabilization of `ready!` in 1.56 has been reverted because I think this alternate approach is worth considering.

r? rust-lang/libs
Re-use TypeChecker instead of passing around some of its fields

In the future (for lazy TAIT) we will need more of its fields, but even ignoring that, this change seems reasonable on its own to me.
…lacrum

Greatly reduce amount of debuginfo compiled for bootstrap itself

Rather than compiling rustbuild and all its dependencies with
`debuginfo=2`, this compiles dependencies without debuginfo and
rustbuild with `debuginfo=1`. On my laptop, this brings compile times
down from ~1:20 to ~1:05.

See also https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/async.20in.20bootstrap.3F/near/254847594.

r? `@Mark-Simulacrum`
…ark-Simulacrum

Remove hack ignoring unused attributes for stage 0 std

This seems to no longer be giving spurious errors when incremental is
enabled.

Closes rust-lang#58633.
…, r=joshtriplett

Add #[must_use] to MaybeUninit::new

As discussed in rust-lang#89729 (comment).

Parent issue: rust-lang#89692

r? `@joshtriplett`
…=joshtriplett

Add #[must_use] to From::from and Into::into

Risk of churn: **High**
Magic 8-Ball says: **Outlook not so good**

I figured I'd put this out there. If we don't do it now maybe we save it for a rainy day.

Parent issue: rust-lang#89692

r? `@joshtriplett`
…-test-gdb, r=Mark-Simulacrum

Fix function-names test for GDB 10.1

This PR updates the test output in `src/test/debuginfo/function-names.rs` for GDB 10.1.

This should fix issue rust-lang#89750 -- but not the underlying problem of CI ignoring tests if not viable debugger happens to be present.
…ons, r=joshtriplett

Add #[must_use] to as_type conversions

Clippy missed these:

```rust
alloc::string::String   fn as_mut_str(&mut self) -> &mut str;
core::mem::NonNull<T>   unsafe fn as_uninit_mut<'a>(&mut self) -> &'a MaybeUninit<T>;
str                     unsafe fn as_bytes_mut(&mut self) -> &mut [u8];
str                     fn as_mut_ptr(&mut self) -> *mut u8;
```

Parent issue: rust-lang#89692

r? `@joshtriplett`
@rustbot rustbot added the rollup A PR which is a rollup label Oct 11, 2021
@matthiaskrgr
Copy link
Member Author

@bors r+ p=10 rollup=never

@bors
Copy link
Contributor

bors commented Oct 11, 2021

📌 Commit 96fe5ad has been approved by matthiaskrgr

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 11, 2021
@klensy
Copy link
Contributor

klensy commented Oct 11, 2021

#89756 can be perf sensitive?

@matthiaskrgr
Copy link
Member Author

I wondered too, but it's just affecting the build of the tool that builds the compiler, so it shouldn't have any effect on rustc itself.

@bors
Copy link
Contributor

bors commented Oct 11, 2021

⌛ Testing commit 96fe5ad with merge 1cc688eab338e30397d2c762bb6441d77ed761df...

@bors
Copy link
Contributor

bors commented Oct 11, 2021

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 11, 2021
@rust-log-analyzer
Copy link
Collaborator

The job x86_64-gnu-tools failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
---- compile_test stdout ----

error: failed to compile fixed code
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "tests/ui/cast_lossless_float.fixed" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/test" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/test/cast_lossless_float.stage-id" "--emit=metadata" "-Dwarnings" "-Zui-testing" "-L" "dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "-L" "dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-392b40a2759b0504.rlib" "--extern" "serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps/libserde_derive-8bd56d0234290b82.so" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-89222f6e0d369b36.rlib" "--extern" "if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-b3e76e8f62643cc6.rlib" "--extern" "clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-bc2b0c8a9dcb9fb3.rlib" "--extern" "derive_new=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps/libderive_new-ea1db0c41efed0d6.so" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-b0f19a5fad83a10b.rlib" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-2c42e7af51424ce5.rlib" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-c6bd037ba33baa25.rlib" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/test/cast_lossless_float.stage-id.aux"
------------------------------------------

------------------------------------------
stderr:
stderr:
------------------------------------------
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_float.fixed","byte_start":223,"byte_end":237,"line_start":9,"line_end":9,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"    f32::from(x0);","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D unused-must-use` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_float.fixed:9:5\n   |\nLL |     f32::from(x0);\n   |     ^^^^^^^^^^^^^^\n   |\n   = note: `-D unused-must-use` implied by `-D warnings`\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_float.fixed","byte_start":242,"byte_end":256,"line_start":10,"line_end":10,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"    f64::from(x0);","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_float.fixed:10:5\n   |\nLL |     f64::from(x0);\n   |     ^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_float.fixed","byte_start":279,"byte_end":293,"line_start":12,"line_end":12,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"    f32::from(x1);","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_float.fixed:12:5\n   |\nLL |     f32::from(x1);\n   |     ^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_float.fixed","byte_start":298,"byte_end":312,"line_start":13,"line_end":13,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"    f64::from(x1);","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_float.fixed:13:5\n   |\nLL |     f64::from(x1);\n   |     ^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_float.fixed","byte_start":336,"byte_end":350,"line_start":15,"line_end":15,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"    f32::from(x2);","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_float.fixed:15:5\n   |\nLL |     f32::from(x2);\n   |     ^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_float.fixed","byte_start":355,"byte_end":369,"line_start":16,"line_end":16,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"    f64::from(x2);","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_float.fixed:16:5\n   |\nLL |     f64::from(x2);\n   |     ^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_float.fixed","byte_start":393,"byte_end":407,"line_start":18,"line_end":18,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"    f32::from(x3);","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_float.fixed:18:5\n   |\nLL |     f32::from(x3);\n   |     ^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_float.fixed","byte_start":412,"byte_end":426,"line_start":19,"line_end":19,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"    f64::from(x3);","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_float.fixed:19:5\n   |\nLL |     f64::from(x3);\n   |     ^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_float.fixed","byte_start":450,"byte_end":464,"line_start":21,"line_end":21,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"    f64::from(x4);","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_float.fixed:21:5\n   |\nLL |     f64::from(x4);\n   |     ^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_float.fixed","byte_start":488,"byte_end":502,"line_start":23,"line_end":23,"column_start":5,"column_end":19,"is_primary":true,"text":[{"text":"    f64::from(x5);","highlight_start":5,"highlight_end":19}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_float.fixed:23:5\n   |\nLL |     f64::from(x5);\n   |     ^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_float.fixed","byte_start":557,"byte_end":575,"line_start":26,"line_end":26,"column_start":5,"column_end":23,"is_primary":true,"text":[{"text":"    f64::from(1.0f32);","highlight_start":5,"highlight_end":23}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_float.fixed:26:5\n   |\nLL |     f64::from(1.0f32);\n   |     ^^^^^^^^^^^^^^^^^^\n\n"}

------------------------------------------



error: failed to compile fixed code
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/clippy-driver" "tests/ui/cast_lossless_integer.fixed" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/test" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/test/cast_lossless_integer.stage-id" "--emit=metadata" "-Dwarnings" "-Zui-testing" "-L" "dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps" "-L" "dependency=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps" "--extern" "regex=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libregex-392b40a2759b0504.rlib" "--extern" "serde_derive=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps/libserde_derive-8bd56d0234290b82.so" "--extern" "serde=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libserde-89222f6e0d369b36.rlib" "--extern" "if_chain=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libif_chain-b3e76e8f62643cc6.rlib" "--extern" "clippy_utils=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libclippy_utils-bc2b0c8a9dcb9fb3.rlib" "--extern" "derive_new=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/release/deps/libderive_new-ea1db0c41efed0d6.so" "--extern" "itertools=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libitertools-b0f19a5fad83a10b.rlib" "--extern" "syn=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libsyn-2c42e7af51424ce5.rlib" "--extern" "quote=/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libquote-c6bd037ba33baa25.rlib" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/test/cast_lossless_integer.stage-id.aux"
------------------------------------------

------------------------------------------
error: test failed, to rerun pass '--test compile-test'
error: test failed, to rerun pass '--test compile-test'
stderr:
------------------------------------------
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":198,"byte_end":213,"line_start":8,"line_end":8,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":"    i16::from(1i8);","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D unused-must-use` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:8:5\n   |\nLL |     i16::from(1i8);\n   |     ^^^^^^^^^^^^^^^\n   |\n   = note: `-D unused-must-use` implied by `-D warnings`\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":218,"byte_end":233,"line_start":9,"line_end":9,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":"    i32::from(1i8);","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:9:5\n   |\nLL |     i32::from(1i8);\n   |     ^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":238,"byte_end":253,"line_start":10,"line_end":10,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":"    i64::from(1i8);","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:10:5\n   |\nLL |     i64::from(1i8);\n   |     ^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":258,"byte_end":273,"line_start":11,"line_end":11,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":"    i16::from(1u8);","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:11:5\n   |\nLL |     i16::from(1u8);\n   |     ^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":278,"byte_end":293,"line_start":12,"line_end":12,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":"    i32::from(1u8);","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:12:5\n   |\nLL |     i32::from(1u8);\n   |     ^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":298,"byte_end":313,"line_start":13,"line_end":13,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":"    i64::from(1u8);","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:13:5\n   |\nLL |     i64::from(1u8);\n   |     ^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":318,"byte_end":333,"line_start":14,"line_end":14,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":"    u16::from(1u8);","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:14:5\n   |\nLL |     u16::from(1u8);\n   |     ^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":338,"byte_end":353,"line_start":15,"line_end":15,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":"    u32::from(1u8);","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:15:5\n   |\nLL |     u32::from(1u8);\n   |     ^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":358,"byte_end":373,"line_start":16,"line_end":16,"column_start":5,"column_end":20,"is_primary":true,"text":[{"text":"    u64::from(1u8);","highlight_start":5,"highlight_end":20}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:16:5\n   |\nLL |     u64::from(1u8);\n   |     ^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":378,"byte_end":394,"line_start":17,"line_end":17,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"    i32::from(1i16);","highlight_start":5,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:17:5\n   |\nLL |     i32::from(1i16);\n   |     ^^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":399,"byte_end":415,"line_start":18,"line_end":18,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"    i64::from(1i16);","highlight_start":5,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:18:5\n   |\nLL |     i64::from(1i16);\n   |     ^^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":420,"byte_end":436,"line_start":19,"line_end":19,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"    i32::from(1u16);","highlight_start":5,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:19:5\n   |\nLL |     i32::from(1u16);\n   |     ^^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":441,"byte_end":457,"line_start":20,"line_end":20,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"    i64::from(1u16);","highlight_start":5,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:20:5\n   |\nLL |     i64::from(1u16);\n   |     ^^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":462,"byte_end":478,"line_start":21,"line_end":21,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"    u32::from(1u16);","highlight_start":5,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:21:5\n   |\nLL |     u32::from(1u16);\n   |     ^^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":483,"byte_end":499,"line_start":22,"line_end":22,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"    u64::from(1u16);","highlight_start":5,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:22:5\n   |\nLL |     u64::from(1u16);\n   |     ^^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":504,"byte_end":520,"line_start":23,"line_end":23,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"    i64::from(1i32);","highlight_start":5,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:23:5\n   |\nLL |     i64::from(1i32);\n   |     ^^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":525,"byte_end":541,"line_start":24,"line_end":24,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"    i64::from(1u32);","highlight_start":5,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:24:5\n   |\nLL |     i64::from(1u32);\n   |     ^^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":546,"byte_end":562,"line_start":25,"line_end":25,"column_start":5,"column_end":21,"is_primary":true,"text":[{"text":"    u64::from(1u32);","highlight_start":5,"highlight_end":21}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:25:5\n   |\nLL |     u64::from(1u32);\n   |     ^^^^^^^^^^^^^^^^\n\n"}
{"message":"unused return value of `std::convert::From::from` that must be used","code":{"code":"unused_must_use","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/cast_lossless_integer.fixed","byte_start":617,"byte_end":638,"line_start":28,"line_end":28,"column_start":5,"column_end":26,"is_primary":true,"text":[{"text":"    u16::from(1u8 + 1u8);","highlight_start":5,"highlight_end":26}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: unused return value of `std::convert::From::from` that must be used\n  --> tests/ui/cast_lossless_integer.fixed:28:5\n   |\nLL |     u16::from(1u8 + 1u8);\n   |     ^^^^^^^^^^^^^^^^^^^^^\n\n"}

------------------------------------------

thread 'compile_test' panicked at 'Some tests failed', /cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/compiletest_rs-0.7.0/src/lib.rs:105:22

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 S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.