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 16 pull requests #62182

Closed
wants to merge 40 commits into from
Closed

Conversation

Centril
Copy link
Contributor

@Centril Centril commented Jun 27, 2019

Successful merges:

Failed merges:

r? @ghost

RalfJung and others added 30 commits June 15, 2019 23:51
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
Co-Authored-By: Taiki Endo <te316e89@gmail.com>
Co-Authored-By: Jonas Schievink <jonasschievink@gmail.com>
Co-Authored-By: Torbjørn Birch Moltu <t.b.moltu@lyse.net>
Lexer uses Symbols for a lot of stuff, not only for identifiers, so
the "name" terminology is just confusing.
Otherwise it ends up writing the file byte at a time, which can be very slow for large outputs.
We've seen quite a few issues with spurious illegal instructions getting
executed on OSX on CI recently. For whatever reason `cc` itself is
executing an illegal instruction and we're not really getting any other
information about what's happening. Since we're already retrying the
linker when it segfaults, let's just continue to retry everything and
automatically reinvoke the linker when it fails with an illegal instruction.
improve pinning projection docs

This tries to improve the explanation of structural pinning and pinning projections based on [this URLO thread](https://users.rust-lang.org/t/when-is-it-safe-to-move-a-member-value-out-of-a-pinned-future/28182).

Fixes rust-lang#61272.
Remove `FnBox`

Remove `FnBox` since we now have `Box<dyn FnOnce>`.

Closes rust-lang#28796.

r? @cramertj
…jasper

Add suggestion for missing `.await` keyword

This commit adds a suggestion diagnostic for missing `.await`. In order to do this, the trait `Future` is promoted to a lang item.

Compiling code of the form:

```rust
#![feature(async_await)]

fn take_u32(x: u32) {}

async fn make_u32() -> u32 {
    22
}

async fn foo() {
    let x = make_u32();
    take_u32(x)
}

fn main() {}
```

Will now result in the suggestion:

```
error[E0308]: mismatched types
  --> src/main.rs:11:18
   |
11 |         take_u32(x)
   |                  ^
   |                  |
   |                  expected u32, found opaque type
   |                  help: consider using `.await` here: `x.await`
   |
   = note: expected type `u32`
              found type `impl std::future::Future`
```

This commit does not cover chained expressions and therefore only covers the case originally pointed out in rust-lang#61076. Cases I can think of that still need to be covered:

- [ ] Return places for functions
- [ ] Field access
- [ ] Method invocation

I'm planning to submit PRs for each of these separately as and when I have figured them out.
call out explicitly that general read needs to be called with an initialized buffer
Add more tests for async/await

I'll follow up with more of these, but here's an initial few.

r? @Centril
…g,oli-obk,Centril

Implement mem::{zeroed,uninitialized} in terms of MaybeUninit.

Refs rust-lang#62061

r? @oli-obk
Don't ICE on item in `.await` expression

The code for lowering a `.await` expression missed that item IDs may already have been assigned for items inside of an `async` block, or for closures. This change means we no longer exit early after finding a `.await` in a block that isn't `async` and instead just emit the error. This avoids an ICE generated due to item IDs not being densely generated. (The `YieldSource` of the generated `yield` expression is  used to avoid errors generated about having `yield` expressions outside of generator literals.)

r? @cramertj

Resolves rust-lang#62009 and resolves rust-lang#61685
Add regression test for MIR drop generation in async loops

Fixes rust-lang#61986.

r? @Centril
Update books

Update nomicon, reference, book, rust-by-example, rustc-guide

## nomicon

2 commits in c656171b749b7307f21371dd0d3278efee5573b8..341c221116a8b9f1010cf1eece952b80c5ec7f54
2019-04-25 15:31:26 -0400 to 2019-06-19 09:08:47 -0700
- Fix some links.
- cleanup the intro, and clarify how it relates to the reference (rust-lang/nomicon#140)

## reference

2 commits in 08ae27a..7a5aab5
2019-06-17 11:24:13 -0700 to 2019-06-20 17:38:52 +0200
- Update for cfg on generic parameter. (rust-lang/reference#624)
- Link to "const functions" section from constant expressions list (rust-lang/reference#623)

## book

2 commits in 9aacfcc4c5b102c8cda195932addefd32fe955d2..6c0d83499c8e77e06a71d28c5e1adccec278d4f3
2019-06-16 21:27:26 -0400 to 2019-06-23 20:25:30 -0400
- fancy quotes
- Edits made in copyedit

## rust-by-example

2 commits in b27472962986e85c94f4183b1a6d2207660d3ed6..62b3ff2cb44dd8b648c3ef2a9347c3706d148014
2019-06-17 15:52:07 -0300 to 2019-06-24 09:17:21 -0300
- A couple of fixes for the `Box, stack and heap` chapter. (rust-lang/rust-by-example#1206)
- [typo] Note, that it is -&gt; Note that, it is (rust-lang/rust-by-example#1207)

## rustc-guide

38 commits in f55e97c145cf37fd664db2e0e2f2d05df328bf4f..abf512fc9cc969dcbea69aa15b44586bbeb13c2d
2019-06-15 17:29:12 -0500 to 2019-06-26 11:05:58 -0500
- fix long line
- add `point` to the glossary and link a use of it
- fix indentation
- Update src/borrow_check/region_inference/placeholders_and_universes.md
- Update src/borrow_check/region_inference/placeholders_and_universes.md
- Update src/borrow_check/region_inference/placeholders_and_universes.md
- Update src/borrow_check/region_inference/member_constraints.md
- Update src/borrow_check/region_inference/constraint_propagation.md
- Update src/borrow_check/region_inference/member_constraints.md
- Update src/borrow_check/region_inference/constraint_propagation.md
- Update src/borrow_check/region_inference/member_constraints.md
- Update src/borrow_check/region_inference/member_constraints.md
- Update src/borrow_check/region_inference/lifetime_parameters.md
- Update src/borrow_check/region_inference/member_constraints.md
- Update src/borrow_check/region_inference/constraint_propagation.md
- Update src/borrow_check/region_inference/constraint_propagation.md
- Update src/borrow_check/region_inference/constraint_propagation.md
- Update src/borrow_check/region_inference/constraint_propagation.md
- Update src/borrow_check/region_inference/constraint_propagation.md
- Update src/borrow_check/region_inference/constraint_propagation.md
- Update src/borrow_check/region_inference/constraint_propagation.md
- Update src/borrow_check/region_inference/lifetime_parameters.md
- Update src/borrow_check/region_inference/lifetime_parameters.md
- Update src/borrow_check/region_inference/lifetime_parameters.md
- Update src/borrow_check/region_inference/constraint_propagation.md
- adjust overview slightly
- describe region inference and member constraints in some detail
- start filling out the constraint propagation chapter in more detail
- break out parts of the region inference chapter into sub-chapters
- fix typo
- avoid ftp links
- fix broken links
- add bibligraphy appendix
- Update to mdbook-linkcheck 0.3.0
- Update mdbook
- Change stage0 cfg_attr to bootstrap
- fix compiler-team
- Added Rustc Debugger Support Chapter
…ochenkov

Remove outdated question_mark_macro_sep lint
save-analysis: use buffered writes

Otherwise it ends up writing the file byte at a time, which can be very slow for large outputs.

cc @ljw1004
rustc: Retry SIGILL linker invocations

We've seen quite a few issues with spurious illegal instructions getting
executed on OSX on CI recently. For whatever reason `cc` itself is
executing an illegal instruction and we're not really getting any other
information about what's happening. Since we're already retrying the
linker when it segfaults, let's just continue to retry everything and
automatically reinvoke the linker when it fails with an illegal instruction.
Update RLS

Merged PRs:
* fix(cmd): make clear_env_rust_log default to false (rust-lang/rls#1486)
  - Retain `RUST_LOG` in `rls --cli` mode
* Pass --file-lines to rustfmt only if specified (rust-lang/rls#1497)
  - Fix entire-file formatting when using external rustfmt (specified via `rustfmt_path` config)
* Ensure that --error-format is only passed once to `rustc` (rust-lang/rls#1500)
  - Unbreaks RLS when used together with Cargo [pipelining build](rust-lang#60988) feature (@alexcrichton I'd consider this a stabilization blocker, mind adding it to the tracking issue for the record? 🙇‍♂️ )
@Centril
Copy link
Contributor Author

Centril commented Jun 27, 2019

@bors r+ p=16 rollup=never

@bors
Copy link
Contributor

bors commented Jun 27, 2019

📌 Commit 24a356f has been approved by Centril

@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 Jun 27, 2019
@bors
Copy link
Contributor

bors commented Jun 27, 2019

⌛ Testing commit 24a356f with merge a0de724a4ddcc990b565da246e347a4c59456397...

@bors
Copy link
Contributor

bors commented Jun 27, 2019

💔 Test failed - checks-travis

@bors bors removed the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jun 27, 2019
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-tools of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
[01:28:59]    |
[01:28:59] LL |     let ref_uninit: &T = std::intrinsics::uninit(); // warning
[01:28:59]    |                                           ^^^^^^ help: a function with a similar name exists: `init`
[01:28:59] 
[01:28:59] error: use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead
[01:28:59]    |
[01:28:59] LL | use std::intrinsics::{init, uninit};
[01:28:59]    |                       ^^^^
[01:28:59]    |
[01:28:59]    |
[01:28:59]    = note: `-D deprecated` implied by `-D warnings`
[01:28:59] 
[01:28:59] error: use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead
[01:28:59]    |
[01:28:59]    |
[01:28:59] LL |     let ref_zero: &T = std::intrinsics::init(); // warning
[01:28:59] 
[01:28:59] 
[01:28:59] error: use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead
[01:28:59]    |
[01:28:59]    |
[01:28:59] LL |     let mem_zero: usize = std::intrinsics::init(); // no warning
[01:28:59] 
[01:28:59] error: aborting due to 5 previous errors
[01:28:59] 
[01:28:59] Some errors have detailed explanations: E0425, E0432.
[01:28:59] Some errors have detailed explanations: E0425, E0432.
[01:28:59] For more information about an error, try `rustc --explain E0425`.
[01:28:59] 
[01:28:59] 
[01:28:59] expected stderr:
[01:28:59] error: reference to zeroed memory
[01:28:59]   --> $DIR/invalid_ref.rs:24:24
[01:28:59]    |
[01:28:59] LL |     let ref_zero: &T = std::mem::zeroed(); // warning
[01:28:59]    |
[01:28:59]    = note: #[deny(clippy::invalid_ref)] on by default
[01:28:59]    = note: #[deny(clippy::invalid_ref)] on by default
[01:28:59]    = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59] error: reference to zeroed memory
[01:28:59]   --> $DIR/invalid_ref.rs:28:24
[01:28:59]    |
[01:28:59]    |
[01:28:59] LL |     let ref_zero: &T = core::mem::zeroed(); // warning
[01:28:59]    |
[01:28:59]    |
[01:28:59]    = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59] error: reference to zeroed memory
[01:28:59]   --> $DIR/invalid_ref.rs:32:24
[01:28:59]    |
[01:28:59]    |
[01:28:59] LL |     let ref_zero: &T = std::intrinsics::init(); // warning
[01:28:59]    |
[01:28:59]    |
[01:28:59]    = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59] error: reference to uninitialized memory
[01:28:59]   --> $DIR/invalid_ref.rs:36:26
[01:28:59]    |
[01:28:59] LL |     let ref_uninit: &T = std::mem::uninitialized(); // warning
[01:28:59] LL |     let ref_uninit: &T = std::mem::uninitialized(); // warning
[01:28:59]    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^
[01:28:59]    |
[01:28:59]    = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59] error: reference to uninitialized memory
[01:28:59]   --> $DIR/invalid_ref.rs:40:26
[01:28:59]    |
[01:28:59] LL |     let ref_uninit: &T = core::mem::uninitialized(); // warning
[01:28:59] LL |     let ref_uninit: &T = core::mem::uninitialized(); // warning
[01:28:59]    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
[01:28:59]    |
[01:28:59]    = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59] error: reference to uninitialized memory
[01:28:59]   --> $DIR/invalid_ref.rs:44:26
[01:28:59]    |
[01:28:59] LL |     let ref_uninit: &T = std::intrinsics::uninit(); // warning
[01:28:59] LL |     let ref_uninit: &T = std::intrinsics::uninit(); // warning
[01:28:59]    |                          ^^^^^^^^^^^^^^^^^^^^^^^^^
[01:28:59]    |
[01:28:59]    = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59] error: aborting due to 6 previous errors
[01:28:59] 
[01:28:59] 
[01:28:59] 
[01:28:59] 
[01:28:59] diff of stderr:
[01:28:59] 
[01:28:59] -error: reference to zeroed memory
[01:28:59] -  --> $DIR/invalid_ref.rs:24:24
[01:28:59] +error[E0432]: unresolved import `std::intrinsics::uninit`
[01:28:59] +  --> $DIR/invalid_ref.rs:5:29
[01:28:59]     |
[01:28:59] -LL |     let ref_zero: &T = std::mem::zeroed(); // warning
[01:28:59] +LL | use std::intrinsics::{init, uninit};
[01:28:59] +   |                             ^^^^^^
[01:28:59] +   |                             |
[01:28:59] +   |                             no `uninit` in `intrinsics`
[01:28:59] +   |                             no `uninit` in `intrinsics`
[01:28:59] +   |                             help: a similar name exists in the module: `init`
[01:28:59] +
[01:28:59] +error[E0425]: cannot find function `uninit` in module `std::intrinsics`
[01:28:59] +  --> $DIR/invalid_ref.rs:44:43
[01:28:59]     |
[01:28:59] -   = note: #[deny(clippy::invalid_ref)] on by default
[01:28:59] -   = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59] +LL |     let ref_uninit: &T = std::intrinsics::uninit(); // warning
[01:28:59]  
[01:28:59] -error: reference to zeroed memory
[01:28:59] -  --> $DIR/invalid_ref.rs:28:24
[01:28:59] -  --> $DIR/invalid_ref.rs:28:24
[01:28:59] +error: use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead
[01:28:59]     |
[01:28:59]     |
[01:28:59] -LL |     let ref_zero: &T = core::mem::zeroed(); // warning
[01:28:59] +LL | use std::intrinsics::{init, uninit};
[01:28:59] +   |                       ^^^^
[01:28:59]     |
[01:28:59]     |
[01:28:59] -   = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59]  
[01:28:59] -error: reference to zeroed memory
[01:28:59] -error: reference to zeroed memory
[01:28:59] +error: use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead
[01:28:59]     |
[01:28:59]     |
[01:28:59]  LL |     let ref_zero: &T = std::intrinsics::init(); // warning
[01:28:59] -   |
[01:28:59] -   |
[01:28:59] -   = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59]  
[01:28:59] -error: reference to uninitialized memory
[01:28:59] -  --> $DIR/invalid_ref.rs:36:26
[01:28:59] -  --> $DIR/invalid_ref.rs:36:26
[01:28:59] +error: use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead
[01:28:59]     |
[01:28:59] -LL |     let ref_uninit: &T = std::mem::uninitialized(); // warning
[01:28:59] -   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^
[01:28:59] -   |
[01:28:59] -   |
[01:28:59] -   = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59] +LL |     let mem_zero: usize = std::intrinsics::init(); // no warning
[01:28:59]  
[01:28:59] -error: reference to uninitialized memory
[01:28:59] -  --> $DIR/invalid_ref.rs:40:26
[01:28:59] -   |
[01:28:59] -   |
[01:28:59] -LL |     let ref_uninit: &T = core::mem::uninitialized(); // warning
[01:28:59] -   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
[01:28:59] -   |
[01:28:59] -   = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59]  
[01:28:59] -error: reference to uninitialized memory
[01:28:59] -  --> $DIR/invalid_ref.rs:44:26
[01:28:59] -   |
[01:28:59] -   |
[01:28:59] -LL |     let ref_uninit: &T = std::intrinsics::uninit(); // warning
[01:28:59] -   |                          ^^^^^^^^^^^^^^^^^^^^^^^^^
[01:28:59] -   |
[01:28:59] -   = help: Creation of a null reference is undefined behavior; see https://doc.rust-lang.org/reference/behavior-considered-undefined.html
[01:28:59] -error: aborting due to 6 previous errors
[01:28:59] -
[01:28:59] +Some errors have detailed explanations: E0425, E0432.
[01:28:59] +For more information about an error, try `rustc --explain E0425`.
---
[01:28:59] 
[01:28:59] ------------------------------------------
[01:28:59] stderr:
[01:28:59] ------------------------------------------
[01:28:59] {"message":"unresolved import `std::intrinsics::uninit`","code":{"code":"E0432","explanation":"\nAn import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nPaths in `use` statements are relative to the crate root. To import items\nrelative to the current and parent modules, use the `self::` and `super::`\nprefixes, respectively. Also verify that you didn't misspell the import\nname and that the import exists in the module from where you tried to\nimport it. Example:\n\n```\nuse self::something::Foo; // ok!\n\nmod something {\n    pub struct Foo;\n}\n# fn main() {}\n```\n\nOr, if you tried to use a module from an external crate, you may have missed\nthe `extern crate` declaration (which is usually placed in the crate root):\n\n```\nextern crate core; // Required to use the `core` crate\n\nuse core::any;\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"tests/ui/invalid_ref.rs","byte_start":95,"byte_end":101,"line_start":5,"line_end":5,"column_start":29,"column_end":35,"is_primary":true,"text":[{"text":"use std::intrinsics::{init, uninit};","highlight_start":29,"highlight_end":35}],"label":"no `uninit` in `intrinsics`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a similar name exists in the module","code":null,"level":"help","spans":[{"file_name":"tests/ui/invalid_ref.rs","byte_start":95,"byte_end":101,"line_start":5,"line_end":5,"column_start":29,"column_end":35,"is_primary":true,"text":[{"text":"use std::intrinsics::{init, uninit};","highlight_start":29,"highlight_end":35}],"label":null,"suggested_replacement":"init","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0432]: unresolved import `std::intrinsics::uninit`\n  --> tests/ui/invalid_ref.rs:5:29\n   |\nLL | use std::intrinsics::{init, uninit};\n   |                             ^^^^^^\n   |                             |\n   |                             no `uninit` in `intrinsics`\n   |                             help: a similar name exists in the module: `init`\n\n"}
[01:28:59] {"message":"cannot find function `uninit` in module `std::intrinsics`","code":{"code":"E0425","explanation":"\nAn unresolved name was used.\n\nErroneous code examples:\n\n```compile_fail,E0425\nsomething_that_doesnt_exist::foo;\n// error: unresolved name `something_that_doesnt_exist::foo`\n\n// or:\n\ntrait Foo {\n    fn bar() {\n        Self; // error: unresolved name `Self`\n    }\n}\n\n// or:\n\nlet x = unknown_variable;  // error: unresolved name `unknown_variable`\n```\n\nPlease verify that the name wasn't misspelled and ensure that the\nidentifier being referred to is valid for the given situation. Example:\n\n```\nenum something_that_does_exist {\n    Foo,\n}\n```\n\nOr:\n\n```\nmod something_that_does_exist {\n    pub static foo : i32 = 0i32;\n}\n\nsomething_that_does_exist::foo; // ok!\n```\n\nOr:\n\n```\nlet unknown_variable = 12u32;\nlet x = unknown_variable; // ok!\n```\n\nIf the item is not defined in the current module, it must be imported using a\n`use` statement, like so:\n\n```\n# mod foo { pub fn bar() {} }\n# fn main() {\nuse foo::bar;\nbar();\n# }\n```\n\nIf the item you are importing is not defined in some super-module of the\ncurrent module, then it must also be declared as public (e.g., `pub fn`).\n"},"level":"error","spans":[{"file_name":"tests/ui/invalid_ref.rs","byte_start":1095,"byte_end":1101,"line_start":44,"line_end":44,"column_start":43,"column_end":49,"is_primary":true,"text":[{"text":"    let ref_uninit: &T = std::intrinsics::uninit(); // warning","highlight_start":43,"highlight_end":49}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"a function with a similar name exists","code":null,"level":"help","spans":[{"file_name":"tests/ui/invalid_ref.rs","byte_start":1095,"byte_end":1101,"line_start":44,"line_end":44,"column_start":43,"column_end":49,"is_primary":true,"text":[{"text":"    let ref_uninit: &T = std::intrinsics::uninit(); // warning","highlight_start":43,"highlight_end":49}],"label":null,"suggested_replacement":"init","suggestion_applicability":"MaybeIncorrect","expansion":null}],"children":[],"rendered":null}],"rendered":"error[E0425]: cannot find function `uninit` in module `std::intrinsics`\n  --> tests/ui/invalid_ref.rs:44:43\n   |\nLL |     let ref_uninit: &T = std::intrinsics::uninit(); // warning\n   |                                           ^^^^^^ help: a function with a similar name exists: `init`\n\n"}
[01:28:59] {"message":"use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead","code":{"code":"deprecated","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/invalid_ref.rs","byte_start":89,"byte_end":93,"line_start":5,"line_end":5,"column_start":23,"column_end":27,"is_primary":true,"text":[{"text":"use std::intrinsics::{init, uninit};","highlight_start":23,"highlight_end":27}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"`-D deprecated` implied by `-D warnings`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead\n  --> tests/ui/invalid_ref.rs:5:23\n   |\nLL | use std::intrinsics::{init, uninit};\n   |                       ^^^^\n   |\n   = note: `-D deprecated` implied by `-D warnings`\n\n"}
[01:28:59] {"message":"use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead","code":{"code":"deprecated","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/invalid_ref.rs","byte_start":735,"byte_end":756,"line_start":32,"line_end":32,"column_start":24,"column_end":45,"is_primary":true,"text":[{"text":"    let ref_zero: &T = std::intrinsics::init(); // warning","highlight_start":24,"highlight_end":45}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead\n  --> tests/ui/invalid_ref.rs:32:24\n   |\nLL |     let ref_zero: &T = std::intrinsics::init(); // warning\n   |                        ^^^^^^^^^^^^^^^^^^^^^\n\n"}
[01:28:59] {"message":"use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead","code":{"code":"deprecated","explanation":null},"level":"error","spans":[{"file_name":"tests/ui/invalid_ref.rs","byte_start":1410,"byte_end":1431,"line_start":60,"line_end":60,"column_start":27,"column_end":48,"is_primary":true,"text":[{"text":"    let mem_zero: usize = std::intrinsics::init(); // no warning","highlight_start":27,"highlight_end":48}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"error: use of deprecated item 'std::intrinsics::init': no longer used by rustc, will be removed - use MaybeUnint instead\n  --> tests/ui/invalid_ref.rs:60:27\n   |\nLL |     let mem_zero: usize = std::intrinsics::init(); // no warning\n   |                           ^^^^^^^^^^^^^^^^^^^^^\n\n"}
[01:28:59] {"message":"aborting due to 5 previous errors","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to 5 previous errors\n\n"}
[01:28:59] {"message":"Some errors have detailed explanations: E0425, E0432.","code":null,"level":"","spans":[],"children":[],"rendered":"Some errors have detailed explanations: E0425, E0432.\n"}
[01:28:59] 
[01:28:59] ------------------------------------------
[01:28:59] 
[01:28:59] thread '[ui] ui/invalid_ref.rs' panicked at 'explicit panic', /cargo/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.22/src/runtest.rs:2632:9
---
travis_time:end:013f9808:start=1561668751222386325,finish=1561668751230000364,duration=7614039
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:10b743b3
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb --batch -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:04d49416
travis_time:start:04d49416
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:00105a95
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@bors bors added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 27, 2019
@Centril Centril closed this Jun 27, 2019
@Centril Centril deleted the rollup-reguimn branch June 27, 2019 20:56
@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 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.