Bless tests
Update tests
This commit is contained in:
parent
9f327a2385
commit
d56cdd48cb
407 changed files with 1364 additions and 318 deletions
|
@ -6,6 +6,7 @@
|
|||
//~^^^ WARNING custom classes in code blocks will change behaviour
|
||||
//~| NOTE found these custom classes: class=language-c
|
||||
//~| NOTE see issue #79483 <https://github.com/rust-lang/rust/issues/79483>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
//~| HELP add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
|
||||
pub struct Bar;
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ LL | | /// ```
|
|||
|
|
||||
= note: see issue #79483 <https://github.com/rust-lang/rust/issues/79483> for more information
|
||||
= help: add `#![feature(custom_code_classes_in_docs)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
= note: found these custom classes: class=language-c
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | #![doc(cfg_hide(test))]
|
|||
|
|
||||
= note: see issue #43781 <https://github.com/rust-lang/rust/issues/43781> for more information
|
||||
= help: add `#![feature(doc_cfg_hide)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | //! [pointer::add]
|
|||
|
|
||||
= note: see issue #80896 <https://github.com/rust-lang/rust/issues/80896> for more information
|
||||
= help: add `#![feature(intra_doc_pointers)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
= note: rustdoc does not allow disambiguating between `*const` and `*mut`, and pointers are unstable until it does
|
||||
|
||||
error[E0658]: linking to associated items of raw pointers is experimental
|
||||
|
@ -16,6 +17,7 @@ LL | //! [pointer::wrapping_add]
|
|||
|
|
||||
= note: see issue #80896 <https://github.com/rust-lang/rust/issues/80896> for more information
|
||||
= help: add `#![feature(intra_doc_pointers)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
= note: rustdoc does not allow disambiguating between `*const` and `*mut`, and pointers are unstable until it does
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
|
|
@ -5,3 +5,4 @@
|
|||
//~^ ERROR unknown lint
|
||||
//~| NOTE lint is unstable
|
||||
//~| NOTE see issue
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
|
|
@ -7,6 +7,7 @@ LL | #![allow(rustdoc::missing_doc_code_examples)]
|
|||
= note: the `rustdoc::missing_doc_code_examples` lint is unstable
|
||||
= note: see issue #101730 <https://github.com/rust-lang/rust/issues/101730> for more information
|
||||
= help: add `#![feature(rustdoc_missing_doc_code_examples)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
note: the lint level is defined here
|
||||
--> $DIR/feature-gate-rustdoc_missing_doc_code_examples.rs:2:9
|
||||
|
|
||||
|
|
|
@ -1,16 +1,31 @@
|
|||
// ignore-stage1
|
||||
// compile-flags: -Zdeduplicate-diagnostics=yes
|
||||
extern crate rustc_data_structures;
|
||||
//~^ use of unstable library feature 'rustc_private'
|
||||
//~| NOTE: issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
extern crate rustc_macros;
|
||||
//~^ use of unstable library feature 'rustc_private'
|
||||
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
extern crate rustc_query_system;
|
||||
//~^ use of unstable library feature 'rustc_private'
|
||||
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
use rustc_macros::HashStable;
|
||||
//~^ use of unstable library feature 'rustc_private'
|
||||
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
#[derive(HashStable)]
|
||||
//~^ use of unstable library feature 'rustc_private'
|
||||
//~| NOTE: in this expansion of #[derive(HashStable)]
|
||||
//~| NOTE: in this expansion of #[derive(HashStable)]
|
||||
//~| NOTE: in this expansion of #[derive(HashStable)]
|
||||
//~| NOTE: in this expansion of #[derive(HashStable)]
|
||||
//~| NOTE: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
struct Test;
|
||||
|
||||
fn main() {}
|
||||
|
|
|
@ -1,47 +1,52 @@
|
|||
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
|
||||
--> $DIR/hash-stable-is-unstable.rs:2:1
|
||||
--> $DIR/hash-stable-is-unstable.rs:3:1
|
||||
|
|
||||
LL | extern crate rustc_data_structures;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
|
||||
--> $DIR/hash-stable-is-unstable.rs:4:1
|
||||
--> $DIR/hash-stable-is-unstable.rs:7:1
|
||||
|
|
||||
LL | extern crate rustc_macros;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
|
||||
--> $DIR/hash-stable-is-unstable.rs:6:1
|
||||
--> $DIR/hash-stable-is-unstable.rs:11:1
|
||||
|
|
||||
LL | extern crate rustc_query_system;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
|
||||
--> $DIR/hash-stable-is-unstable.rs:9:5
|
||||
--> $DIR/hash-stable-is-unstable.rs:16:5
|
||||
|
|
||||
LL | use rustc_macros::HashStable;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
|
||||
--> $DIR/hash-stable-is-unstable.rs:12:10
|
||||
--> $DIR/hash-stable-is-unstable.rs:21:10
|
||||
|
|
||||
LL | #[derive(HashStable)]
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
= note: this error originates in the derive macro `HashStable` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// edition:2018
|
||||
// ignore-stage1
|
||||
// compile-flags:--extern rustc_middle
|
||||
|
||||
// Test that `--extern rustc_middle` fails with `rustc_private`.
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead?
|
||||
--> $DIR/pathless-extern-unstable.rs:6:9
|
||||
--> $DIR/pathless-extern-unstable.rs:7:9
|
||||
|
|
||||
LL | pub use rustc_middle;
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #27812 <https://github.com/rust-lang/rust/issues/27812> for more information
|
||||
= help: add `#![feature(rustc_private)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -48,6 +48,7 @@ LL | const Foo: [i32; _] = [1, 2, 3];
|
|||
|
|
||||
= note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
|
||||
= help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: using `_` for array lengths is unstable
|
||||
--> $DIR/suggest-array-length.rs:8:26
|
||||
|
@ -57,6 +58,7 @@ LL | const REF_FOO: &[u8; _] = &[1];
|
|||
|
|
||||
= note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
|
||||
= help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: using `_` for array lengths is unstable
|
||||
--> $DIR/suggest-array-length.rs:11:20
|
||||
|
@ -66,6 +68,7 @@ LL | let foo: [i32; _] = [1, 2, 3];
|
|||
|
|
||||
= note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
|
||||
= help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: using `_` for array lengths is unstable
|
||||
--> $DIR/suggest-array-length.rs:14:20
|
||||
|
@ -75,6 +78,7 @@ LL | let bar: [i32; _] = [0; 3];
|
|||
|
|
||||
= note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
|
||||
= help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: using `_` for array lengths is unstable
|
||||
--> $DIR/suggest-array-length.rs:17:25
|
||||
|
@ -84,6 +88,7 @@ LL | let ref_foo: &[i32; _] = &[1, 2, 3];
|
|||
|
|
||||
= note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
|
||||
= help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: using `_` for array lengths is unstable
|
||||
--> $DIR/suggest-array-length.rs:20:25
|
||||
|
@ -93,6 +98,7 @@ LL | let ref_bar: &[i32; _] = &[0; 3];
|
|||
|
|
||||
= note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
|
||||
= help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: using `_` for array lengths is unstable
|
||||
--> $DIR/suggest-array-length.rs:23:35
|
||||
|
@ -102,6 +108,7 @@ LL | let multiple_ref_foo: &&[i32; _] = &&[1, 2, 3];
|
|||
|
|
||||
= note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
|
||||
= help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 14 previous errors
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ LL | fn foo<A: TraitWAssocConst<A=32>>() {
|
|||
|
|
||||
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
|
||||
= help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: associated const equality is incomplete
|
||||
--> $DIR/issue-105330.rs:15:29
|
||||
|
@ -32,6 +33,7 @@ LL | fn main<A: TraitWAssocConst<A=32>>() {
|
|||
|
|
||||
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
|
||||
= help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0562]: `impl Trait` is not allowed in impl headers
|
||||
--> $DIR/issue-105330.rs:6:27
|
||||
|
|
|
@ -24,6 +24,7 @@ LL | type_ascribe!(p, a<p:p<e=6>>);
|
|||
|
|
||||
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
|
||||
= help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: associated type bounds are unstable
|
||||
--> $DIR/issue-93835.rs:4:24
|
||||
|
@ -33,6 +34,7 @@ LL | type_ascribe!(p, a<p:p<e=6>>);
|
|||
|
|
||||
= note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information
|
||||
= help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ LL | type Data = aux::Owner::Data;
|
|||
| ^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= help: add `#![feature(data)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ LL | impl S { type P = (); }
|
|||
|
|
||||
= note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
|
||||
= help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@ LL | type Item = &[T];
|
|||
|
|
||||
= note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
|
||||
= help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0223]: ambiguous associated type
|
||||
--> $DIR/issue-109071.rs:15:22
|
||||
|
|
|
@ -28,6 +28,7 @@ LL | type AssocType3 = T;
|
|||
|
|
||||
= note: see issue #8995 <https://github.com/rust-lang/rust/issues/8995> for more information
|
||||
= help: add `#![feature(inherent_associated_types)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0061]: this struct takes 1 argument but 0 arguments were supplied
|
||||
--> $DIR/issue-109768.rs:10:56
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | fn get_iter(vec: &[i32]) -> impl Iterator<Item = {}> + '_ {
|
|||
|
|
||||
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
|
||||
= help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: expected type, found constant
|
||||
--> $DIR/issue-99828.rs:1:50
|
||||
|
|
|
@ -12,6 +12,7 @@ LL | fn foo<T: Trait<method(i32): Send>>() {}
|
|||
|
|
||||
= note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information
|
||||
= help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: associated type bounds are unstable
|
||||
--> $DIR/bad-inputs-and-output.rs:14:17
|
||||
|
@ -21,6 +22,7 @@ LL | fn bar<T: Trait<method() -> (): Send>>() {}
|
|||
|
|
||||
= note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information
|
||||
= help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
warning: the feature `return_type_notation` is incomplete and may not be safe to use and/or cause compiler crashes
|
||||
--> $DIR/bad-inputs-and-output.rs:3:12
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | fn foo<T: Trait<method(i32): Send>>() {}
|
|||
|
|
||||
= note: see issue #52662 <https://github.com/rust-lang/rust/issues/52662> for more information
|
||||
= help: add `#![feature(associated_type_bounds)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | let _ = async || {};
|
|||
|
|
||||
= note: see issue #62290 <https://github.com/rust-lang/rust/issues/62290> for more information
|
||||
= help: add `#![feature(async_closure)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
= help: to use an async block, remove the `||`: `async {`
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | for await _i in core::async_iter::from_iter(0..3) {
|
|||
|
|
||||
= note: see issue #118898 <https://github.com/rust-lang/rust/issues/118898> for more information
|
||||
= help: add `#![feature(async_for_loop)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `for await` loops are experimental
|
||||
--> $DIR/feature-async-for-loop.rs:17:13
|
||||
|
@ -15,6 +16,7 @@ LL | for await _i in core::async_iter::from_iter(0..3) {
|
|||
|
|
||||
= note: see issue #118898 <https://github.com/rust-lang/rust/issues/118898> for more information
|
||||
= help: add `#![feature(async_for_loop)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@ LL | async fn new() -> [u8; _];
|
|||
|
|
||||
= note: see issue #85077 <https://github.com/rust-lang/rust/issues/85077> for more information
|
||||
= help: add `#![feature(generic_arg_infer)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | let _ = #[track_caller] async {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-block.rs:15:13
|
||||
|
@ -15,6 +16,7 @@ LL | let _ = #[track_caller] async {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-block.rs:23:17
|
||||
|
@ -24,6 +26,7 @@ LL | let _ = #[track_caller] async {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | let _ = #[track_caller] async {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-block.rs:15:13
|
||||
|
@ -15,6 +16,7 @@ LL | let _ = #[track_caller] async {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-block.rs:23:17
|
||||
|
@ -24,6 +26,7 @@ LL | let _ = #[track_caller] async {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | let _ = #[track_caller] async || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-closure-gate.rs:15:13
|
||||
|
@ -15,6 +16,7 @@ LL | let _ = #[track_caller] async || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-closure-gate.rs:21:13
|
||||
|
@ -24,6 +26,7 @@ LL | let _ = #[track_caller] || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-closure-gate.rs:29:17
|
||||
|
@ -33,6 +36,7 @@ LL | let _ = #[track_caller] || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-closure-gate.rs:37:9
|
||||
|
@ -42,6 +46,7 @@ LL | #[track_caller] || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-closure-gate.rs:47:13
|
||||
|
@ -51,6 +56,7 @@ LL | #[track_caller] || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/async-closure-gate.rs:27:5
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | let _ = #[track_caller] async || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-closure-gate.rs:15:13
|
||||
|
@ -15,6 +16,7 @@ LL | let _ = #[track_caller] async || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-closure-gate.rs:21:13
|
||||
|
@ -24,6 +26,7 @@ LL | let _ = #[track_caller] || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-closure-gate.rs:29:17
|
||||
|
@ -33,6 +36,7 @@ LL | let _ = #[track_caller] || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-closure-gate.rs:37:9
|
||||
|
@ -42,6 +46,7 @@ LL | #[track_caller] || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `#[track_caller]` on closures is currently unstable
|
||||
--> $DIR/async-closure-gate.rs:47:13
|
||||
|
@ -51,6 +56,7 @@ LL | #[track_caller] || {
|
|||
|
|
||||
= note: see issue #87417 <https://github.com/rust-lang/rust/issues/87417> for more information
|
||||
= help: add `#![feature(closure_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/async-closure-gate.rs:27:5
|
||||
|
|
|
@ -11,6 +11,7 @@ LL | | }
|
|||
|
|
||||
= note: see issue #110011 <https://github.com/rust-lang/rust/issues/110011> for more information
|
||||
= help: add `#![feature(async_fn_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
= note: `#[warn(ungated_async_fn_track_caller)]` on by default
|
||||
|
||||
warning: `#[track_caller]` on async functions is a no-op
|
||||
|
@ -26,6 +27,7 @@ LL | | }
|
|||
|
|
||||
= note: see issue #110011 <https://github.com/rust-lang/rust/issues/110011> for more information
|
||||
= help: add `#![feature(async_fn_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
warning: 2 warnings emitted
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ LL | | }
|
|||
|
|
||||
= note: see issue #110011 <https://github.com/rust-lang/rust/issues/110011> for more information
|
||||
= help: add `#![feature(async_fn_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
= note: `#[warn(ungated_async_fn_track_caller)]` on by default
|
||||
|
||||
warning: `#[track_caller]` on async functions is a no-op
|
||||
|
@ -26,6 +27,7 @@ LL | | }
|
|||
|
|
||||
= note: see issue #110011 <https://github.com/rust-lang/rust/issues/110011> for more information
|
||||
= help: add `#![feature(async_fn_track_caller)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
warning: 2 warnings emitted
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ LL | auto trait Trait<P> {}
|
|||
|
|
||||
= note: see issue #13231 <https://github.com/rust-lang/rust/issues/13231> for more information
|
||||
= help: add `#![feature(auto_traits)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | auto trait Foo {}
|
|||
|
|
||||
= note: see issue #13231 <https://github.com/rust-lang/rust/issues/13231> for more information
|
||||
= help: add `#![feature(auto_traits)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
= warning: unstable syntax can change at any point in the future, causing a hard error!
|
||||
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ LL | type D = for<'a, T> fn();
|
|||
|
|
||||
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
||||
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: only lifetime parameters can be used in this context
|
||||
--> $DIR/bounds-lifetime.rs:5:18
|
||||
|
@ -33,6 +34,7 @@ LL | type E = dyn for<T, U> Fn();
|
|||
|
|
||||
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
||||
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | let _boxed: Box<u32, _> = Box::new(10);
|
|||
|
|
||||
= note: see issue #32838 <https://github.com/rust-lang/rust/issues/32838> for more information
|
||||
= help: add `#![feature(allocator_api)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | fn efiapi(f: extern "efiapi" fn(usize, ...)) {
|
|||
|
|
||||
= note: see issue #100189 <https://github.com/rust-lang/rust/issues/100189> for more information
|
||||
= help: add `#![feature(extended_varargs_abi_support)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0045]: C-variadic function must have a compatible calling convention, like `C` or `cdecl`
|
||||
--> $DIR/feature-gate-extended_varargs_abi_support.rs:1:14
|
||||
|
@ -21,6 +22,7 @@ LL | fn sysv(f: extern "sysv64" fn(usize, ...)) {
|
|||
|
|
||||
= note: see issue #100189 <https://github.com/rust-lang/rust/issues/100189> for more information
|
||||
= help: add `#![feature(extended_varargs_abi_support)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0045]: C-variadic function must have a compatible calling convention, like `C` or `cdecl`
|
||||
--> $DIR/feature-gate-extended_varargs_abi_support.rs:6:12
|
||||
|
@ -36,6 +38,7 @@ LL | fn win(f: extern "win64" fn(usize, ...)) {
|
|||
|
|
||||
= note: see issue #100189 <https://github.com/rust-lang/rust/issues/100189> for more information
|
||||
= help: add `#![feature(extended_varargs_abi_support)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0045]: C-variadic function must have a compatible calling convention, like `C` or `cdecl`
|
||||
--> $DIR/feature-gate-extended_varargs_abi_support.rs:11:11
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | trait A = Clone;
|
|||
|
|
||||
= note: see issue #41517 <https://github.com/rust-lang/rust/issues/41517> for more information
|
||||
= help: add `#![feature(trait_alias)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
= warning: unstable syntax can change at any point in the future, causing a hard error!
|
||||
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
|
||||
|
||||
|
@ -17,6 +18,7 @@ LL | let box _ = Box::new(0);
|
|||
|
|
||||
= note: see issue #29641 <https://github.com/rust-lang/rust/issues/29641> for more information
|
||||
= help: add `#![feature(box_patterns)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
= warning: unstable syntax can change at any point in the future, causing a hard error!
|
||||
= note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ fn main() {
|
|||
let mut c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let mut c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/arrays-completely-captured.rs:11:5
|
||||
--> $DIR/arrays-completely-captured.rs:12:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,18 +21,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing m[] -> MutBorrow
|
||||
--> $DIR/arrays-completely-captured.rs:14:9
|
||||
--> $DIR/arrays-completely-captured.rs:15:9
|
||||
|
|
||||
LL | m[0] += 10;
|
||||
| ^
|
||||
note: Capturing m[] -> MutBorrow
|
||||
--> $DIR/arrays-completely-captured.rs:17:9
|
||||
--> $DIR/arrays-completely-captured.rs:18:9
|
||||
|
|
||||
LL | m[1] += 40;
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/arrays-completely-captured.rs:11:5
|
||||
--> $DIR/arrays-completely-captured.rs:12:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -43,7 +44,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture m[] -> MutBorrow
|
||||
--> $DIR/arrays-completely-captured.rs:14:9
|
||||
--> $DIR/arrays-completely-captured.rs:15:9
|
||||
|
|
||||
LL | m[0] += 10;
|
||||
| ^
|
||||
|
|
|
@ -18,6 +18,7 @@ fn big_box() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ First Pass analysis includes:
|
||||
//~| Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/by_value.rs:21:5
|
||||
--> $DIR/by_value.rs:22:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,18 +21,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing t[(0, 0),Deref,(0, 0)] -> ByValue
|
||||
--> $DIR/by_value.rs:24:17
|
||||
--> $DIR/by_value.rs:25:17
|
||||
|
|
||||
LL | let p = t.0.0;
|
||||
| ^^^^^
|
||||
note: Capturing t[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/by_value.rs:27:29
|
||||
--> $DIR/by_value.rs:28:29
|
||||
|
|
||||
LL | println!("{} {:?}", t.1, p);
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/by_value.rs:21:5
|
||||
--> $DIR/by_value.rs:22:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -43,12 +44,12 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture t[(0, 0)] -> ByValue
|
||||
--> $DIR/by_value.rs:24:17
|
||||
--> $DIR/by_value.rs:25:17
|
||||
|
|
||||
LL | let p = t.0.0;
|
||||
| ^^^^^
|
||||
note: Min Capture t[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/by_value.rs:27:29
|
||||
--> $DIR/by_value.rs:28:29
|
||||
|
|
||||
LL | println!("{} {:?}", t.1, p);
|
||||
| ^^^
|
||||
|
|
|
@ -15,6 +15,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ First Pass analysis includes:
|
||||
//~| Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/capture-analysis-1.rs:18:5
|
||||
--> $DIR/capture-analysis-1.rs:19:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,28 +21,28 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing p[] -> ImmBorrow
|
||||
--> $DIR/capture-analysis-1.rs:21:26
|
||||
--> $DIR/capture-analysis-1.rs:22:26
|
||||
|
|
||||
LL | println!("{:?}", p);
|
||||
| ^
|
||||
note: Capturing p[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/capture-analysis-1.rs:24:26
|
||||
--> $DIR/capture-analysis-1.rs:25:26
|
||||
|
|
||||
LL | println!("{:?}", p.x);
|
||||
| ^^^
|
||||
note: Capturing q[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/capture-analysis-1.rs:27:26
|
||||
--> $DIR/capture-analysis-1.rs:28:26
|
||||
|
|
||||
LL | println!("{:?}", q.x);
|
||||
| ^^^
|
||||
note: Capturing q[] -> ImmBorrow
|
||||
--> $DIR/capture-analysis-1.rs:29:26
|
||||
--> $DIR/capture-analysis-1.rs:30:26
|
||||
|
|
||||
LL | println!("{:?}", q);
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/capture-analysis-1.rs:18:5
|
||||
--> $DIR/capture-analysis-1.rs:19:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -53,12 +54,12 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture p[] -> ImmBorrow
|
||||
--> $DIR/capture-analysis-1.rs:21:26
|
||||
--> $DIR/capture-analysis-1.rs:22:26
|
||||
|
|
||||
LL | println!("{:?}", p);
|
||||
| ^
|
||||
note: Min Capture q[] -> ImmBorrow
|
||||
--> $DIR/capture-analysis-1.rs:29:26
|
||||
--> $DIR/capture-analysis-1.rs:30:26
|
||||
|
|
||||
LL | println!("{:?}", q);
|
||||
| ^
|
||||
|
|
|
@ -14,6 +14,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ First Pass analysis includes:
|
||||
//~| Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/capture-analysis-2.rs:17:5
|
||||
--> $DIR/capture-analysis-2.rs:18:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,18 +21,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing p[(0, 0)] -> ByValue
|
||||
--> $DIR/capture-analysis-2.rs:20:18
|
||||
--> $DIR/capture-analysis-2.rs:21:18
|
||||
|
|
||||
LL | let _x = p.x;
|
||||
| ^^^
|
||||
note: Capturing p[] -> ImmBorrow
|
||||
--> $DIR/capture-analysis-2.rs:23:26
|
||||
--> $DIR/capture-analysis-2.rs:24:26
|
||||
|
|
||||
LL | println!("{:?}", p);
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/capture-analysis-2.rs:17:5
|
||||
--> $DIR/capture-analysis-2.rs:18:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -43,7 +44,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture p[] -> ByValue
|
||||
--> $DIR/capture-analysis-2.rs:20:18
|
||||
--> $DIR/capture-analysis-2.rs:21:18
|
||||
|
|
||||
LL | let _x = p.x;
|
||||
| ^^^ p[] captured as ByValue here
|
||||
|
|
|
@ -19,6 +19,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ First Pass analysis includes:
|
||||
//~| Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/capture-analysis-3.rs:22:5
|
||||
--> $DIR/capture-analysis-3.rs:23:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,18 +21,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing a[(0, 0),(0, 0)] -> ByValue
|
||||
--> $DIR/capture-analysis-3.rs:25:18
|
||||
--> $DIR/capture-analysis-3.rs:26:18
|
||||
|
|
||||
LL | let _x = a.b.c;
|
||||
| ^^^^^
|
||||
note: Capturing a[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/capture-analysis-3.rs:28:26
|
||||
--> $DIR/capture-analysis-3.rs:29:26
|
||||
|
|
||||
LL | println!("{:?}", a.b);
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/capture-analysis-3.rs:22:5
|
||||
--> $DIR/capture-analysis-3.rs:23:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -43,7 +44,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture a[(0, 0)] -> ByValue
|
||||
--> $DIR/capture-analysis-3.rs:25:18
|
||||
--> $DIR/capture-analysis-3.rs:26:18
|
||||
|
|
||||
LL | let _x = a.b.c;
|
||||
| ^^^^^ a[(0, 0)] captured as ByValue here
|
||||
|
|
|
@ -19,6 +19,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ First Pass analysis includes:
|
||||
//~| Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/capture-analysis-4.rs:22:5
|
||||
--> $DIR/capture-analysis-4.rs:23:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,18 +21,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing a[(0, 0)] -> ByValue
|
||||
--> $DIR/capture-analysis-4.rs:25:18
|
||||
--> $DIR/capture-analysis-4.rs:26:18
|
||||
|
|
||||
LL | let _x = a.b;
|
||||
| ^^^
|
||||
note: Capturing a[(0, 0),(0, 0)] -> ImmBorrow
|
||||
--> $DIR/capture-analysis-4.rs:28:26
|
||||
--> $DIR/capture-analysis-4.rs:29:26
|
||||
|
|
||||
LL | println!("{:?}", a.b.c);
|
||||
| ^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/capture-analysis-4.rs:22:5
|
||||
--> $DIR/capture-analysis-4.rs:23:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -43,7 +44,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture a[(0, 0)] -> ByValue
|
||||
--> $DIR/capture-analysis-4.rs:25:18
|
||||
--> $DIR/capture-analysis-4.rs:26:18
|
||||
|
|
||||
LL | let _x = a.b;
|
||||
| ^^^
|
||||
|
|
|
@ -13,6 +13,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ First Pass analysis includes:
|
||||
//~| Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/capture-disjoint-field-struct.rs:16:5
|
||||
--> $DIR/capture-disjoint-field-struct.rs:17:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,13 +21,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing p[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/capture-disjoint-field-struct.rs:19:24
|
||||
--> $DIR/capture-disjoint-field-struct.rs:20:24
|
||||
|
|
||||
LL | println!("{}", p.x);
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/capture-disjoint-field-struct.rs:16:5
|
||||
--> $DIR/capture-disjoint-field-struct.rs:17:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -38,7 +39,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture p[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/capture-disjoint-field-struct.rs:19:24
|
||||
--> $DIR/capture-disjoint-field-struct.rs:20:24
|
||||
|
|
||||
LL | println!("{}", p.x);
|
||||
| ^^^
|
||||
|
|
|
@ -8,6 +8,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ First Pass analysis includes:
|
||||
//~| Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/capture-disjoint-field-tuple.rs:11:5
|
||||
--> $DIR/capture-disjoint-field-tuple.rs:12:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,13 +21,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing t[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/capture-disjoint-field-tuple.rs:14:24
|
||||
--> $DIR/capture-disjoint-field-tuple.rs:15:24
|
||||
|
|
||||
LL | println!("{}", t.0);
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/capture-disjoint-field-tuple.rs:11:5
|
||||
--> $DIR/capture-disjoint-field-tuple.rs:12:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -38,7 +39,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture t[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/capture-disjoint-field-tuple.rs:14:24
|
||||
--> $DIR/capture-disjoint-field-tuple.rs:15:24
|
||||
|
|
||||
LL | println!("{}", t.0);
|
||||
| ^^^
|
||||
|
|
|
@ -16,6 +16,7 @@ fn multi_variant_enum() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ First Pass analysis includes:
|
||||
//~| Min Capture analysis includes:
|
||||
|
@ -47,6 +48,7 @@ fn single_variant_enum() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ First Pass analysis includes:
|
||||
//~| Min Capture analysis includes:
|
||||
|
|
|
@ -6,18 +6,20 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/capture-enums.rs:47:13
|
||||
--> $DIR/capture-enums.rs:48:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/capture-enums.rs:19:5
|
||||
--> $DIR/capture-enums.rs:20:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -29,28 +31,28 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing point[] -> ImmBorrow
|
||||
--> $DIR/capture-enums.rs:22:41
|
||||
--> $DIR/capture-enums.rs:23:41
|
||||
|
|
||||
LL | if let Info::Point(_, _, str) = point {
|
||||
| ^^^^^
|
||||
note: Capturing point[(2, 0)] -> ByValue
|
||||
--> $DIR/capture-enums.rs:22:41
|
||||
--> $DIR/capture-enums.rs:23:41
|
||||
|
|
||||
LL | if let Info::Point(_, _, str) = point {
|
||||
| ^^^^^
|
||||
note: Capturing meta[] -> ImmBorrow
|
||||
--> $DIR/capture-enums.rs:29:35
|
||||
--> $DIR/capture-enums.rs:30:35
|
||||
|
|
||||
LL | if let Info::Meta(_, v) = meta {
|
||||
| ^^^^
|
||||
note: Capturing meta[(1, 1)] -> ByValue
|
||||
--> $DIR/capture-enums.rs:29:35
|
||||
--> $DIR/capture-enums.rs:30:35
|
||||
|
|
||||
LL | if let Info::Meta(_, v) = meta {
|
||||
| ^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/capture-enums.rs:19:5
|
||||
--> $DIR/capture-enums.rs:20:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -62,18 +64,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture point[] -> ByValue
|
||||
--> $DIR/capture-enums.rs:22:41
|
||||
--> $DIR/capture-enums.rs:23:41
|
||||
|
|
||||
LL | if let Info::Point(_, _, str) = point {
|
||||
| ^^^^^
|
||||
note: Min Capture meta[] -> ByValue
|
||||
--> $DIR/capture-enums.rs:29:35
|
||||
--> $DIR/capture-enums.rs:30:35
|
||||
|
|
||||
LL | if let Info::Meta(_, v) = meta {
|
||||
| ^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/capture-enums.rs:50:5
|
||||
--> $DIR/capture-enums.rs:52:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -85,13 +87,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing point[(2, 0)] -> ByValue
|
||||
--> $DIR/capture-enums.rs:53:47
|
||||
--> $DIR/capture-enums.rs:55:47
|
||||
|
|
||||
LL | let SingleVariant::Point(_, _, str) = point;
|
||||
| ^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/capture-enums.rs:50:5
|
||||
--> $DIR/capture-enums.rs:52:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -103,7 +105,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture point[(2, 0)] -> ByValue
|
||||
--> $DIR/capture-enums.rs:53:47
|
||||
--> $DIR/capture-enums.rs:55:47
|
||||
|
|
||||
LL | let SingleVariant::Point(_, _, str) = point;
|
||||
| ^^^^^
|
||||
|
|
|
@ -34,6 +34,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/deep-multilevel-struct.rs:37:5
|
||||
--> $DIR/deep-multilevel-struct.rs:38:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,23 +21,23 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing p[(0, 0),(0, 0),(0, 0)] -> ImmBorrow
|
||||
--> $DIR/deep-multilevel-struct.rs:40:18
|
||||
--> $DIR/deep-multilevel-struct.rs:41:18
|
||||
|
|
||||
LL | let x = &p.a.p.x;
|
||||
| ^^^^^^^
|
||||
note: Capturing p[(1, 0),(1, 0),(1, 0)] -> MutBorrow
|
||||
--> $DIR/deep-multilevel-struct.rs:42:9
|
||||
--> $DIR/deep-multilevel-struct.rs:43:9
|
||||
|
|
||||
LL | p.b.q.y = 9;
|
||||
| ^^^^^^^
|
||||
note: Capturing p[] -> ImmBorrow
|
||||
--> $DIR/deep-multilevel-struct.rs:45:26
|
||||
--> $DIR/deep-multilevel-struct.rs:46:26
|
||||
|
|
||||
LL | println!("{:?}", p);
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/deep-multilevel-struct.rs:37:5
|
||||
--> $DIR/deep-multilevel-struct.rs:38:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -48,7 +49,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture p[] -> MutBorrow
|
||||
--> $DIR/deep-multilevel-struct.rs:42:9
|
||||
--> $DIR/deep-multilevel-struct.rs:43:9
|
||||
|
|
||||
LL | p.b.q.y = 9;
|
||||
| ^^^^^^^ p[] captured as MutBorrow here
|
||||
|
|
|
@ -8,6 +8,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/deep-multilevel-tuple.rs:11:5
|
||||
--> $DIR/deep-multilevel-tuple.rs:12:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,23 +21,23 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing t[(0, 0),(0, 0),(0, 0)] -> ImmBorrow
|
||||
--> $DIR/deep-multilevel-tuple.rs:14:18
|
||||
--> $DIR/deep-multilevel-tuple.rs:15:18
|
||||
|
|
||||
LL | let x = &t.0.0.0;
|
||||
| ^^^^^^^
|
||||
note: Capturing t[(1, 0),(1, 0),(1, 0)] -> MutBorrow
|
||||
--> $DIR/deep-multilevel-tuple.rs:16:9
|
||||
--> $DIR/deep-multilevel-tuple.rs:17:9
|
||||
|
|
||||
LL | t.1.1.1 = 9;
|
||||
| ^^^^^^^
|
||||
note: Capturing t[] -> ImmBorrow
|
||||
--> $DIR/deep-multilevel-tuple.rs:19:26
|
||||
--> $DIR/deep-multilevel-tuple.rs:20:26
|
||||
|
|
||||
LL | println!("{:?}", t);
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/deep-multilevel-tuple.rs:11:5
|
||||
--> $DIR/deep-multilevel-tuple.rs:12:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -48,7 +49,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture t[] -> MutBorrow
|
||||
--> $DIR/deep-multilevel-tuple.rs:16:9
|
||||
--> $DIR/deep-multilevel-tuple.rs:17:9
|
||||
|
|
||||
LL | t.1.1.1 = 9;
|
||||
| ^^^^^^^ t[] captured as MutBorrow here
|
||||
|
|
|
@ -10,6 +10,7 @@ fn arrays() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -38,6 +39,7 @@ fn structs() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -58,6 +60,7 @@ fn tuples() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,27 +6,30 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/destructure_patterns.rs:38:13
|
||||
--> $DIR/destructure_patterns.rs:39:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/destructure_patterns.rs:58:13
|
||||
--> $DIR/destructure_patterns.rs:60:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/destructure_patterns.rs:13:5
|
||||
--> $DIR/destructure_patterns.rs:14:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -38,23 +41,23 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing arr[Index] -> ByValue
|
||||
--> $DIR/destructure_patterns.rs:16:29
|
||||
--> $DIR/destructure_patterns.rs:17:29
|
||||
|
|
||||
LL | let [a, b, .., e] = arr;
|
||||
| ^^^
|
||||
note: Capturing arr[Index] -> ByValue
|
||||
--> $DIR/destructure_patterns.rs:16:29
|
||||
--> $DIR/destructure_patterns.rs:17:29
|
||||
|
|
||||
LL | let [a, b, .., e] = arr;
|
||||
| ^^^
|
||||
note: Capturing arr[Index] -> ByValue
|
||||
--> $DIR/destructure_patterns.rs:16:29
|
||||
--> $DIR/destructure_patterns.rs:17:29
|
||||
|
|
||||
LL | let [a, b, .., e] = arr;
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/destructure_patterns.rs:13:5
|
||||
--> $DIR/destructure_patterns.rs:14:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -66,13 +69,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture arr[] -> ByValue
|
||||
--> $DIR/destructure_patterns.rs:16:29
|
||||
--> $DIR/destructure_patterns.rs:17:29
|
||||
|
|
||||
LL | let [a, b, .., e] = arr;
|
||||
| ^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/destructure_patterns.rs:41:5
|
||||
--> $DIR/destructure_patterns.rs:43:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -84,18 +87,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing p[(0, 0)] -> MutBorrow
|
||||
--> $DIR/destructure_patterns.rs:44:58
|
||||
--> $DIR/destructure_patterns.rs:46:58
|
||||
|
|
||||
LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
|
||||
| ^
|
||||
note: Capturing p[(2, 0)] -> ByValue
|
||||
--> $DIR/destructure_patterns.rs:44:58
|
||||
--> $DIR/destructure_patterns.rs:46:58
|
||||
|
|
||||
LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/destructure_patterns.rs:41:5
|
||||
--> $DIR/destructure_patterns.rs:43:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -107,18 +110,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture p[(0, 0)] -> MutBorrow
|
||||
--> $DIR/destructure_patterns.rs:44:58
|
||||
--> $DIR/destructure_patterns.rs:46:58
|
||||
|
|
||||
LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
|
||||
| ^
|
||||
note: Min Capture p[(2, 0)] -> ByValue
|
||||
--> $DIR/destructure_patterns.rs:44:58
|
||||
--> $DIR/destructure_patterns.rs:46:58
|
||||
|
|
||||
LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
|
||||
| ^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/destructure_patterns.rs:61:5
|
||||
--> $DIR/destructure_patterns.rs:64:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -130,23 +133,23 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing t[(0, 0)] -> MutBorrow
|
||||
--> $DIR/destructure_patterns.rs:64:54
|
||||
--> $DIR/destructure_patterns.rs:67:54
|
||||
|
|
||||
LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
|
||||
| ^
|
||||
note: Capturing t[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/destructure_patterns.rs:64:54
|
||||
--> $DIR/destructure_patterns.rs:67:54
|
||||
|
|
||||
LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
|
||||
| ^
|
||||
note: Capturing t[(2, 0),(0, 0)] -> ByValue
|
||||
--> $DIR/destructure_patterns.rs:64:54
|
||||
--> $DIR/destructure_patterns.rs:67:54
|
||||
|
|
||||
LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/destructure_patterns.rs:61:5
|
||||
--> $DIR/destructure_patterns.rs:64:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -158,17 +161,17 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture t[(0, 0)] -> MutBorrow
|
||||
--> $DIR/destructure_patterns.rs:64:54
|
||||
--> $DIR/destructure_patterns.rs:67:54
|
||||
|
|
||||
LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
|
||||
| ^
|
||||
note: Min Capture t[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/destructure_patterns.rs:64:54
|
||||
--> $DIR/destructure_patterns.rs:67:54
|
||||
|
|
||||
LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
|
||||
| ^
|
||||
note: Min Capture t[(2, 0),(0, 0)] -> ByValue
|
||||
--> $DIR/destructure_patterns.rs:64:54
|
||||
--> $DIR/destructure_patterns.rs:67:54
|
||||
|
|
||||
LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
|
||||
| ^
|
||||
|
|
|
@ -8,6 +8,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/feature-gate-capture_disjoint_fields.rs:11:5
|
||||
--> $DIR/feature-gate-capture_disjoint_fields.rs:12:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,13 +21,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing s[] -> ImmBorrow
|
||||
--> $DIR/feature-gate-capture_disjoint_fields.rs:14:69
|
||||
--> $DIR/feature-gate-capture_disjoint_fields.rs:15:69
|
||||
|
|
||||
LL | println!("This uses new capture analyysis to capture s={}", s);
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/feature-gate-capture_disjoint_fields.rs:11:5
|
||||
--> $DIR/feature-gate-capture_disjoint_fields.rs:12:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -38,7 +39,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture s[] -> ImmBorrow
|
||||
--> $DIR/feature-gate-capture_disjoint_fields.rs:14:69
|
||||
--> $DIR/feature-gate-capture_disjoint_fields.rs:15:69
|
||||
|
|
||||
LL | println!("This uses new capture analyysis to capture s={}", s);
|
||||
| ^
|
||||
|
|
|
@ -14,6 +14,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/issue-87378.rs:17:5
|
||||
--> $DIR/issue-87378.rs:18:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,13 +21,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing u[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/issue-87378.rs:20:17
|
||||
--> $DIR/issue-87378.rs:21:17
|
||||
|
|
||||
LL | unsafe { u.value }
|
||||
| ^^^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/issue-87378.rs:17:5
|
||||
--> $DIR/issue-87378.rs:18:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -38,7 +39,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture u[] -> ImmBorrow
|
||||
--> $DIR/issue-87378.rs:20:17
|
||||
--> $DIR/issue-87378.rs:21:17
|
||||
|
|
||||
LL | unsafe { u.value }
|
||||
| ^^^^^^^
|
||||
|
|
|
@ -20,6 +20,7 @@ pub fn test1() {
|
|||
let x = #[rustc_capture_analysis] move || {
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
//~| ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
println!("{:?}", f.0);
|
||||
|
@ -47,6 +48,7 @@ fn test2() {
|
|||
let c = #[rustc_capture_analysis] move || {
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
//~| ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
println!("{}", character.hp)
|
||||
|
|
|
@ -6,15 +6,17 @@ LL | let x = #[rustc_capture_analysis] move || {
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/issue-88476.rs:47:13
|
||||
--> $DIR/issue-88476.rs:48:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/issue-88476.rs:20:39
|
||||
|
@ -30,7 +32,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing f[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/issue-88476.rs:25:26
|
||||
--> $DIR/issue-88476.rs:26:26
|
||||
|
|
||||
LL | println!("{:?}", f.0);
|
||||
| ^^^
|
||||
|
@ -49,13 +51,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture f[] -> ByValue
|
||||
--> $DIR/issue-88476.rs:25:26
|
||||
--> $DIR/issue-88476.rs:26:26
|
||||
|
|
||||
LL | println!("{:?}", f.0);
|
||||
| ^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/issue-88476.rs:47:39
|
||||
--> $DIR/issue-88476.rs:48:39
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || {
|
||||
| _______________________________________^
|
||||
|
@ -68,13 +70,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing character[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/issue-88476.rs:52:24
|
||||
--> $DIR/issue-88476.rs:54:24
|
||||
|
|
||||
LL | println!("{}", character.hp)
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/issue-88476.rs:47:39
|
||||
--> $DIR/issue-88476.rs:48:39
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || {
|
||||
| _______________________________________^
|
||||
|
@ -87,7 +89,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture character[(0, 0)] -> ByValue
|
||||
--> $DIR/issue-88476.rs:52:24
|
||||
--> $DIR/issue-88476.rs:54:24
|
||||
|
|
||||
LL | println!("{}", character.hp)
|
||||
| ^^^^^^^^^^^^
|
||||
|
|
|
@ -12,6 +12,7 @@ fn simple_move_closure() {
|
|||
let mut c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
move || {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -30,6 +31,7 @@ fn simple_ref() {
|
|||
let mut c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
move || {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -51,6 +53,7 @@ fn struct_contains_ref_to_another_struct_1() {
|
|||
let mut c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
move || {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -74,6 +77,7 @@ fn struct_contains_ref_to_another_struct_2() {
|
|||
let mut c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
move || {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -96,6 +100,7 @@ fn struct_contains_ref_to_another_struct_3() {
|
|||
let mut c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
move || {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -117,6 +122,7 @@ fn truncate_box_derefs() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
move || {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -133,6 +139,7 @@ fn truncate_box_derefs() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
move || {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -150,6 +157,7 @@ fn truncate_box_derefs() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
move || {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -172,6 +180,7 @@ fn box_mut_1() {
|
|||
let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
//~| First Pass analysis includes:
|
||||
//~| NOTE: Capturing box_p_foo[Deref,Deref,(0, 0)] -> MutBorrow
|
||||
//~| Min Capture analysis includes:
|
||||
|
@ -189,6 +198,7 @@ fn box_mut_2() {
|
|||
let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
//~| First Pass analysis includes:
|
||||
//~| NOTE: Capturing p_foo[Deref,Deref,(0, 0)] -> MutBorrow
|
||||
//~| Min Capture analysis includes:
|
||||
|
@ -202,6 +212,7 @@ fn returned_closure_owns_copy_type_data() -> impl Fn() -> i32 {
|
|||
let c = #[rustc_capture_analysis] move || x;
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
//~| First Pass analysis includes:
|
||||
//~| NOTE: Capturing x[] -> ImmBorrow
|
||||
//~| Min Capture analysis includes:
|
||||
|
|
|
@ -6,123 +6,134 @@ LL | let mut c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/move_closure.rs:30:17
|
||||
--> $DIR/move_closure.rs:31:17
|
||||
|
|
||||
LL | let mut c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/move_closure.rs:51:17
|
||||
--> $DIR/move_closure.rs:53:17
|
||||
|
|
||||
LL | let mut c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/move_closure.rs:74:17
|
||||
--> $DIR/move_closure.rs:77:17
|
||||
|
|
||||
LL | let mut c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/move_closure.rs:96:17
|
||||
--> $DIR/move_closure.rs:100:17
|
||||
|
|
||||
LL | let mut c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/move_closure.rs:117:13
|
||||
--> $DIR/move_closure.rs:122:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/move_closure.rs:133:13
|
||||
--> $DIR/move_closure.rs:139:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/move_closure.rs:150:13
|
||||
--> $DIR/move_closure.rs:157:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/move_closure.rs:172:13
|
||||
--> $DIR/move_closure.rs:180:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/move_closure.rs:189:13
|
||||
--> $DIR/move_closure.rs:198:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/move_closure.rs:202:13
|
||||
--> $DIR/move_closure.rs:212:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || x;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/move_closure.rs:202:39
|
||||
--> $DIR/move_closure.rs:212:39
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || x;
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
note: Capturing x[] -> ImmBorrow
|
||||
--> $DIR/move_closure.rs:202:47
|
||||
--> $DIR/move_closure.rs:212:47
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || x;
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/move_closure.rs:202:39
|
||||
--> $DIR/move_closure.rs:212:39
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || x;
|
||||
| ^^^^^^^^^
|
||||
|
|
||||
note: Min Capture x[] -> ByValue
|
||||
--> $DIR/move_closure.rs:202:47
|
||||
--> $DIR/move_closure.rs:212:47
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || x;
|
||||
| ^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/move_closure.rs:15:5
|
||||
--> $DIR/move_closure.rs:16:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -134,13 +145,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing t[(0, 0),(0, 0)] -> MutBorrow
|
||||
--> $DIR/move_closure.rs:18:9
|
||||
--> $DIR/move_closure.rs:19:9
|
||||
|
|
||||
LL | t.0.0 = "new S".into();
|
||||
| ^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/move_closure.rs:15:5
|
||||
--> $DIR/move_closure.rs:16:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -152,13 +163,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture t[(0, 0),(0, 0)] -> ByValue
|
||||
--> $DIR/move_closure.rs:18:9
|
||||
--> $DIR/move_closure.rs:19:9
|
||||
|
|
||||
LL | t.0.0 = "new S".into();
|
||||
| ^^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/move_closure.rs:33:5
|
||||
--> $DIR/move_closure.rs:35:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -170,13 +181,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing ref_s[Deref] -> MutBorrow
|
||||
--> $DIR/move_closure.rs:36:9
|
||||
--> $DIR/move_closure.rs:38:9
|
||||
|
|
||||
LL | *ref_s += 10;
|
||||
| ^^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/move_closure.rs:33:5
|
||||
--> $DIR/move_closure.rs:35:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -188,13 +199,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture ref_s[] -> ByValue
|
||||
--> $DIR/move_closure.rs:36:9
|
||||
--> $DIR/move_closure.rs:38:9
|
||||
|
|
||||
LL | *ref_s += 10;
|
||||
| ^^^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/move_closure.rs:54:5
|
||||
--> $DIR/move_closure.rs:57:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -206,13 +217,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing t[(0, 0),Deref,(0, 0)] -> MutBorrow
|
||||
--> $DIR/move_closure.rs:57:9
|
||||
--> $DIR/move_closure.rs:60:9
|
||||
|
|
||||
LL | t.0.0 = "new s".into();
|
||||
| ^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/move_closure.rs:54:5
|
||||
--> $DIR/move_closure.rs:57:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -224,13 +235,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture t[(0, 0)] -> ByValue
|
||||
--> $DIR/move_closure.rs:57:9
|
||||
--> $DIR/move_closure.rs:60:9
|
||||
|
|
||||
LL | t.0.0 = "new s".into();
|
||||
| ^^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/move_closure.rs:77:5
|
||||
--> $DIR/move_closure.rs:81:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -242,13 +253,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow
|
||||
--> $DIR/move_closure.rs:80:18
|
||||
--> $DIR/move_closure.rs:84:18
|
||||
|
|
||||
LL | let _t = t.0.0;
|
||||
| ^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/move_closure.rs:77:5
|
||||
--> $DIR/move_closure.rs:81:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -260,13 +271,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture t[(0, 0)] -> ByValue
|
||||
--> $DIR/move_closure.rs:80:18
|
||||
--> $DIR/move_closure.rs:84:18
|
||||
|
|
||||
LL | let _t = t.0.0;
|
||||
| ^^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/move_closure.rs:99:5
|
||||
--> $DIR/move_closure.rs:104:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -278,13 +289,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing t[(0, 0),Deref,(0, 0)] -> ByValue
|
||||
--> $DIR/move_closure.rs:102:18
|
||||
--> $DIR/move_closure.rs:107:18
|
||||
|
|
||||
LL | let _t = t.0.0;
|
||||
| ^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/move_closure.rs:99:5
|
||||
--> $DIR/move_closure.rs:104:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -296,13 +307,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture t[(0, 0)] -> ByValue
|
||||
--> $DIR/move_closure.rs:102:18
|
||||
--> $DIR/move_closure.rs:107:18
|
||||
|
|
||||
LL | let _t = t.0.0;
|
||||
| ^^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/move_closure.rs:120:5
|
||||
--> $DIR/move_closure.rs:126:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -314,13 +325,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing b[Deref,(0, 0)] -> ImmBorrow
|
||||
--> $DIR/move_closure.rs:123:18
|
||||
--> $DIR/move_closure.rs:129:18
|
||||
|
|
||||
LL | let _t = b.0;
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/move_closure.rs:120:5
|
||||
--> $DIR/move_closure.rs:126:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -332,13 +343,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture b[] -> ByValue
|
||||
--> $DIR/move_closure.rs:123:18
|
||||
--> $DIR/move_closure.rs:129:18
|
||||
|
|
||||
LL | let _t = b.0;
|
||||
| ^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/move_closure.rs:136:5
|
||||
--> $DIR/move_closure.rs:143:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -350,13 +361,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing b[Deref,(0, 0)] -> ImmBorrow
|
||||
--> $DIR/move_closure.rs:139:24
|
||||
--> $DIR/move_closure.rs:146:24
|
||||
|
|
||||
LL | println!("{}", b.0);
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/move_closure.rs:136:5
|
||||
--> $DIR/move_closure.rs:143:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -368,13 +379,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture b[] -> ByValue
|
||||
--> $DIR/move_closure.rs:139:24
|
||||
--> $DIR/move_closure.rs:146:24
|
||||
|
|
||||
LL | println!("{}", b.0);
|
||||
| ^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/move_closure.rs:153:5
|
||||
--> $DIR/move_closure.rs:161:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -386,13 +397,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing t[(1, 0),Deref,(0, 0)] -> ImmBorrow
|
||||
--> $DIR/move_closure.rs:156:24
|
||||
--> $DIR/move_closure.rs:164:24
|
||||
|
|
||||
LL | println!("{}", t.1.0);
|
||||
| ^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/move_closure.rs:153:5
|
||||
--> $DIR/move_closure.rs:161:5
|
||||
|
|
||||
LL | / move || {
|
||||
LL | |
|
||||
|
@ -404,55 +415,55 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture t[(1, 0)] -> ByValue
|
||||
--> $DIR/move_closure.rs:156:24
|
||||
--> $DIR/move_closure.rs:164:24
|
||||
|
|
||||
LL | println!("{}", t.1.0);
|
||||
| ^^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/move_closure.rs:172:39
|
||||
--> $DIR/move_closure.rs:180:39
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: Capturing box_p_foo[Deref,Deref,(0, 0)] -> MutBorrow
|
||||
--> $DIR/move_closure.rs:172:47
|
||||
--> $DIR/move_closure.rs:180:47
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/move_closure.rs:172:39
|
||||
--> $DIR/move_closure.rs:180:39
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: Min Capture box_p_foo[] -> ByValue
|
||||
--> $DIR/move_closure.rs:172:47
|
||||
--> $DIR/move_closure.rs:180:47
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/move_closure.rs:189:39
|
||||
--> $DIR/move_closure.rs:198:39
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: Capturing p_foo[Deref,Deref,(0, 0)] -> MutBorrow
|
||||
--> $DIR/move_closure.rs:189:47
|
||||
--> $DIR/move_closure.rs:198:47
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
||||
| ^^^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/move_closure.rs:189:39
|
||||
--> $DIR/move_closure.rs:198:39
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
note: Min Capture p_foo[] -> ByValue
|
||||
--> $DIR/move_closure.rs:189:47
|
||||
--> $DIR/move_closure.rs:198:47
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
|
||||
| ^^^^^^^
|
||||
|
|
|
@ -22,6 +22,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/multilevel-path-1.rs:25:5
|
||||
--> $DIR/multilevel-path-1.rs:26:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,13 +21,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing w[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/multilevel-path-1.rs:28:19
|
||||
--> $DIR/multilevel-path-1.rs:29:19
|
||||
|
|
||||
LL | let wp = &w.p;
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/multilevel-path-1.rs:25:5
|
||||
--> $DIR/multilevel-path-1.rs:26:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -38,7 +39,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture w[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/multilevel-path-1.rs:28:19
|
||||
--> $DIR/multilevel-path-1.rs:29:19
|
||||
|
|
||||
LL | let wp = &w.p;
|
||||
| ^^^
|
||||
|
|
|
@ -17,6 +17,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/multilevel-path-2.rs:20:5
|
||||
--> $DIR/multilevel-path-2.rs:21:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,13 +21,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing w[(0, 0),(0, 0)] -> ImmBorrow
|
||||
--> $DIR/multilevel-path-2.rs:23:24
|
||||
--> $DIR/multilevel-path-2.rs:24:24
|
||||
|
|
||||
LL | println!("{}", w.p.x);
|
||||
| ^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/multilevel-path-2.rs:20:5
|
||||
--> $DIR/multilevel-path-2.rs:21:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -38,7 +39,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture w[(0, 0),(0, 0)] -> ImmBorrow
|
||||
--> $DIR/multilevel-path-2.rs:23:24
|
||||
--> $DIR/multilevel-path-2.rs:24:24
|
||||
|
|
||||
LL | println!("{}", w.p.x);
|
||||
| ^^^^^
|
||||
|
|
|
@ -19,6 +19,7 @@ fn main() {
|
|||
let mut c1 = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -29,6 +30,7 @@ fn main() {
|
|||
let mut c2 = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| p.y += incr;
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,52 +6,54 @@ LL | let mut c1 = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/nested-closure.rs:29:22
|
||||
--> $DIR/nested-closure.rs:30:22
|
||||
|
|
||||
LL | let mut c2 = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/nested-closure.rs:32:9
|
||||
--> $DIR/nested-closure.rs:34:9
|
||||
|
|
||||
LL | || p.y += incr;
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
note: Capturing p[(1, 0)] -> MutBorrow
|
||||
--> $DIR/nested-closure.rs:32:12
|
||||
--> $DIR/nested-closure.rs:34:12
|
||||
|
|
||||
LL | || p.y += incr;
|
||||
| ^^^
|
||||
note: Capturing incr[] -> ImmBorrow
|
||||
--> $DIR/nested-closure.rs:32:19
|
||||
--> $DIR/nested-closure.rs:34:19
|
||||
|
|
||||
LL | || p.y += incr;
|
||||
| ^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/nested-closure.rs:32:9
|
||||
--> $DIR/nested-closure.rs:34:9
|
||||
|
|
||||
LL | || p.y += incr;
|
||||
| ^^^^^^^^^^^^^^
|
||||
|
|
||||
note: Min Capture p[(1, 0)] -> MutBorrow
|
||||
--> $DIR/nested-closure.rs:32:12
|
||||
--> $DIR/nested-closure.rs:34:12
|
||||
|
|
||||
LL | || p.y += incr;
|
||||
| ^^^
|
||||
note: Min Capture incr[] -> ImmBorrow
|
||||
--> $DIR/nested-closure.rs:32:19
|
||||
--> $DIR/nested-closure.rs:34:19
|
||||
|
|
||||
LL | || p.y += incr;
|
||||
| ^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/nested-closure.rs:22:5
|
||||
--> $DIR/nested-closure.rs:23:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -63,23 +65,23 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing p[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/nested-closure.rs:25:24
|
||||
--> $DIR/nested-closure.rs:26:24
|
||||
|
|
||||
LL | println!("{}", p.x);
|
||||
| ^^^
|
||||
note: Capturing p[(1, 0)] -> MutBorrow
|
||||
--> $DIR/nested-closure.rs:32:12
|
||||
--> $DIR/nested-closure.rs:34:12
|
||||
|
|
||||
LL | || p.y += incr;
|
||||
| ^^^
|
||||
note: Capturing p[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/nested-closure.rs:42:24
|
||||
--> $DIR/nested-closure.rs:44:24
|
||||
|
|
||||
LL | println!("{}", p.y);
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/nested-closure.rs:22:5
|
||||
--> $DIR/nested-closure.rs:23:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -91,12 +93,12 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture p[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/nested-closure.rs:25:24
|
||||
--> $DIR/nested-closure.rs:26:24
|
||||
|
|
||||
LL | println!("{}", p.x);
|
||||
| ^^^
|
||||
note: Min Capture p[(1, 0)] -> MutBorrow
|
||||
--> $DIR/nested-closure.rs:32:12
|
||||
--> $DIR/nested-closure.rs:34:12
|
||||
|
|
||||
LL | || p.y += incr;
|
||||
| ^^^
|
||||
|
|
|
@ -20,6 +20,7 @@ fn foo<'a, 'b>(m: &'a MyStruct<'b>) -> impl FnMut() + 'static {
|
|||
let c = #[rustc_capture_analysis] || drop(&m.a.0);
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
//~| ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
//~| NOTE: Capturing m[Deref,(0, 0),Deref,(0, 0)] -> ImmBorrow
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | let c = #[rustc_capture_analysis] || drop(&m.a.0);
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/edge_case.rs:20:39
|
||||
|
|
|
@ -23,6 +23,7 @@ fn main() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/path-with-array-access.rs:26:5
|
||||
--> $DIR/path-with-array-access.rs:27:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,13 +21,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing pent[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/path-with-array-access.rs:29:24
|
||||
--> $DIR/path-with-array-access.rs:30:24
|
||||
|
|
||||
LL | println!("{}", pent.points[5].x);
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/path-with-array-access.rs:26:5
|
||||
--> $DIR/path-with-array-access.rs:27:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -38,7 +39,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture pent[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/path-with-array-access.rs:29:24
|
||||
--> $DIR/path-with-array-access.rs:30:24
|
||||
|
|
||||
LL | println!("{}", pent.points[5].x);
|
||||
| ^^^^^^^^^^^
|
||||
|
|
|
@ -23,6 +23,7 @@ fn test_one() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: Min Capture analysis includes:
|
||||
//~| ERROR
|
||||
|
@ -49,6 +50,7 @@ fn test_two() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: Min Capture analysis includes:
|
||||
//~| ERROR
|
||||
|
@ -75,6 +77,7 @@ fn test_three() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: Min Capture analysis includes:
|
||||
//~| ERROR
|
||||
|
|
|
@ -6,27 +6,30 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/preserve_field_drop_order.rs:49:13
|
||||
--> $DIR/preserve_field_drop_order.rs:50:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/preserve_field_drop_order.rs:75:13
|
||||
--> $DIR/preserve_field_drop_order.rs:77:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/preserve_field_drop_order.rs:26:5
|
||||
--> $DIR/preserve_field_drop_order.rs:27:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -38,28 +41,28 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing a[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:29:26
|
||||
--> $DIR/preserve_field_drop_order.rs:30:26
|
||||
|
|
||||
LL | println!("{:?}", a.0);
|
||||
| ^^^
|
||||
note: Capturing a[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:32:26
|
||||
--> $DIR/preserve_field_drop_order.rs:33:26
|
||||
|
|
||||
LL | println!("{:?}", a.1);
|
||||
| ^^^
|
||||
note: Capturing b[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:36:26
|
||||
--> $DIR/preserve_field_drop_order.rs:37:26
|
||||
|
|
||||
LL | println!("{:?}", b.0);
|
||||
| ^^^
|
||||
note: Capturing b[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:39:26
|
||||
--> $DIR/preserve_field_drop_order.rs:40:26
|
||||
|
|
||||
LL | println!("{:?}", b.1);
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/preserve_field_drop_order.rs:26:5
|
||||
--> $DIR/preserve_field_drop_order.rs:27:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -71,28 +74,28 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture a[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:29:26
|
||||
--> $DIR/preserve_field_drop_order.rs:30:26
|
||||
|
|
||||
LL | println!("{:?}", a.0);
|
||||
| ^^^
|
||||
note: Min Capture a[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:32:26
|
||||
--> $DIR/preserve_field_drop_order.rs:33:26
|
||||
|
|
||||
LL | println!("{:?}", a.1);
|
||||
| ^^^
|
||||
note: Min Capture b[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:36:26
|
||||
--> $DIR/preserve_field_drop_order.rs:37:26
|
||||
|
|
||||
LL | println!("{:?}", b.0);
|
||||
| ^^^
|
||||
note: Min Capture b[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:39:26
|
||||
--> $DIR/preserve_field_drop_order.rs:40:26
|
||||
|
|
||||
LL | println!("{:?}", b.1);
|
||||
| ^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/preserve_field_drop_order.rs:52:5
|
||||
--> $DIR/preserve_field_drop_order.rs:54:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -104,28 +107,28 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing a[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:55:26
|
||||
--> $DIR/preserve_field_drop_order.rs:57:26
|
||||
|
|
||||
LL | println!("{:?}", a.1);
|
||||
| ^^^
|
||||
note: Capturing a[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:58:26
|
||||
--> $DIR/preserve_field_drop_order.rs:60:26
|
||||
|
|
||||
LL | println!("{:?}", a.0);
|
||||
| ^^^
|
||||
note: Capturing b[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:62:26
|
||||
--> $DIR/preserve_field_drop_order.rs:64:26
|
||||
|
|
||||
LL | println!("{:?}", b.1);
|
||||
| ^^^
|
||||
note: Capturing b[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:65:26
|
||||
--> $DIR/preserve_field_drop_order.rs:67:26
|
||||
|
|
||||
LL | println!("{:?}", b.0);
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/preserve_field_drop_order.rs:52:5
|
||||
--> $DIR/preserve_field_drop_order.rs:54:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -137,28 +140,28 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture a[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:58:26
|
||||
--> $DIR/preserve_field_drop_order.rs:60:26
|
||||
|
|
||||
LL | println!("{:?}", a.0);
|
||||
| ^^^
|
||||
note: Min Capture a[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:55:26
|
||||
--> $DIR/preserve_field_drop_order.rs:57:26
|
||||
|
|
||||
LL | println!("{:?}", a.1);
|
||||
| ^^^
|
||||
note: Min Capture b[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:65:26
|
||||
--> $DIR/preserve_field_drop_order.rs:67:26
|
||||
|
|
||||
LL | println!("{:?}", b.0);
|
||||
| ^^^
|
||||
note: Min Capture b[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:62:26
|
||||
--> $DIR/preserve_field_drop_order.rs:64:26
|
||||
|
|
||||
LL | println!("{:?}", b.1);
|
||||
| ^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/preserve_field_drop_order.rs:78:5
|
||||
--> $DIR/preserve_field_drop_order.rs:81:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -170,28 +173,28 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing b[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:81:26
|
||||
--> $DIR/preserve_field_drop_order.rs:84:26
|
||||
|
|
||||
LL | println!("{:?}", b.1);
|
||||
| ^^^
|
||||
note: Capturing a[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:84:26
|
||||
--> $DIR/preserve_field_drop_order.rs:87:26
|
||||
|
|
||||
LL | println!("{:?}", a.1);
|
||||
| ^^^
|
||||
note: Capturing a[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:87:26
|
||||
--> $DIR/preserve_field_drop_order.rs:90:26
|
||||
|
|
||||
LL | println!("{:?}", a.0);
|
||||
| ^^^
|
||||
note: Capturing b[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:91:26
|
||||
--> $DIR/preserve_field_drop_order.rs:94:26
|
||||
|
|
||||
LL | println!("{:?}", b.0);
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/preserve_field_drop_order.rs:78:5
|
||||
--> $DIR/preserve_field_drop_order.rs:81:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -203,22 +206,22 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture b[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:91:26
|
||||
--> $DIR/preserve_field_drop_order.rs:94:26
|
||||
|
|
||||
LL | println!("{:?}", b.0);
|
||||
| ^^^
|
||||
note: Min Capture b[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:81:26
|
||||
--> $DIR/preserve_field_drop_order.rs:84:26
|
||||
|
|
||||
LL | println!("{:?}", b.1);
|
||||
| ^^^
|
||||
note: Min Capture a[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:87:26
|
||||
--> $DIR/preserve_field_drop_order.rs:90:26
|
||||
|
|
||||
LL | println!("{:?}", a.0);
|
||||
| ^^^
|
||||
note: Min Capture a[(1, 0)] -> ImmBorrow
|
||||
--> $DIR/preserve_field_drop_order.rs:84:26
|
||||
--> $DIR/preserve_field_drop_order.rs:87:26
|
||||
|
|
||||
LL | println!("{:?}", a.1);
|
||||
| ^^^
|
||||
|
|
|
@ -14,6 +14,7 @@ fn test_alignment_not_affected() {
|
|||
let mut c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -44,6 +45,7 @@ fn test_alignment_affected() {
|
|||
let mut c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -79,6 +81,7 @@ fn test_truncation_when_ref_and_move() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,27 +6,30 @@ LL | let mut c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/repr_packed.rs:44:17
|
||||
--> $DIR/repr_packed.rs:45:17
|
||||
|
|
||||
LL | let mut c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/repr_packed.rs:79:13
|
||||
--> $DIR/repr_packed.rs:81:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/repr_packed.rs:17:5
|
||||
--> $DIR/repr_packed.rs:18:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -38,18 +41,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing foo[] -> ImmBorrow
|
||||
--> $DIR/repr_packed.rs:20:24
|
||||
--> $DIR/repr_packed.rs:21:24
|
||||
|
|
||||
LL | let z1: &u8 = &foo.x;
|
||||
| ^^^^^
|
||||
note: Capturing foo[] -> MutBorrow
|
||||
--> $DIR/repr_packed.rs:22:32
|
||||
--> $DIR/repr_packed.rs:23:32
|
||||
|
|
||||
LL | let z2: &mut u8 = &mut foo.y;
|
||||
| ^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/repr_packed.rs:17:5
|
||||
--> $DIR/repr_packed.rs:18:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -61,13 +64,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture foo[] -> MutBorrow
|
||||
--> $DIR/repr_packed.rs:22:32
|
||||
--> $DIR/repr_packed.rs:23:32
|
||||
|
|
||||
LL | let z2: &mut u8 = &mut foo.y;
|
||||
| ^^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/repr_packed.rs:47:5
|
||||
--> $DIR/repr_packed.rs:49:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -79,18 +82,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing foo[] -> ImmBorrow
|
||||
--> $DIR/repr_packed.rs:50:28
|
||||
--> $DIR/repr_packed.rs:52:28
|
||||
|
|
||||
LL | let z1: &String = &foo.x;
|
||||
| ^^^^^
|
||||
note: Capturing foo[] -> MutBorrow
|
||||
--> $DIR/repr_packed.rs:52:33
|
||||
--> $DIR/repr_packed.rs:54:33
|
||||
|
|
||||
LL | let z2: &mut u16 = &mut foo.y;
|
||||
| ^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/repr_packed.rs:47:5
|
||||
--> $DIR/repr_packed.rs:49:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -102,13 +105,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture foo[] -> MutBorrow
|
||||
--> $DIR/repr_packed.rs:52:33
|
||||
--> $DIR/repr_packed.rs:54:33
|
||||
|
|
||||
LL | let z2: &mut u16 = &mut foo.y;
|
||||
| ^^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/repr_packed.rs:82:5
|
||||
--> $DIR/repr_packed.rs:85:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -120,18 +123,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing foo[] -> ImmBorrow
|
||||
--> $DIR/repr_packed.rs:85:24
|
||||
--> $DIR/repr_packed.rs:88:24
|
||||
|
|
||||
LL | println!("{}", foo.x);
|
||||
| ^^^^^
|
||||
note: Capturing foo[(0, 0)] -> ByValue
|
||||
--> $DIR/repr_packed.rs:89:18
|
||||
--> $DIR/repr_packed.rs:92:18
|
||||
|
|
||||
LL | let _z = foo.x;
|
||||
| ^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/repr_packed.rs:82:5
|
||||
--> $DIR/repr_packed.rs:85:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -143,7 +146,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture foo[] -> ByValue
|
||||
--> $DIR/repr_packed.rs:85:24
|
||||
--> $DIR/repr_packed.rs:88:24
|
||||
|
|
||||
LL | println!("{}", foo.x);
|
||||
| ^^^^^ foo[] used here
|
||||
|
|
|
@ -23,6 +23,7 @@ fn main() {
|
|||
let mut c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,9 +6,10 @@ LL | let mut c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/simple-struct-min-capture.rs:26:5
|
||||
--> $DIR/simple-struct-min-capture.rs:27:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -20,18 +21,18 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing p[(0, 0)] -> MutBorrow
|
||||
--> $DIR/simple-struct-min-capture.rs:29:9
|
||||
--> $DIR/simple-struct-min-capture.rs:30:9
|
||||
|
|
||||
LL | p.x += 10;
|
||||
| ^^^
|
||||
note: Capturing p[] -> ImmBorrow
|
||||
--> $DIR/simple-struct-min-capture.rs:32:26
|
||||
--> $DIR/simple-struct-min-capture.rs:33:26
|
||||
|
|
||||
LL | println!("{:?}", p);
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/simple-struct-min-capture.rs:26:5
|
||||
--> $DIR/simple-struct-min-capture.rs:27:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -43,7 +44,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture p[] -> MutBorrow
|
||||
--> $DIR/simple-struct-min-capture.rs:29:9
|
||||
--> $DIR/simple-struct-min-capture.rs:30:9
|
||||
|
|
||||
LL | p.x += 10;
|
||||
| ^^^ p[] captured as MutBorrow here
|
||||
|
|
|
@ -25,6 +25,7 @@ fn unsafe_imm() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| unsafe {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -45,6 +46,7 @@ fn unsafe_mut() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,18 +6,20 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/unsafe_ptr.rs:45:13
|
||||
--> $DIR/unsafe_ptr.rs:46:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/unsafe_ptr.rs:28:6
|
||||
--> $DIR/unsafe_ptr.rs:29:6
|
||||
|
|
||||
LL | / || unsafe {
|
||||
LL | |
|
||||
|
@ -29,13 +31,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow
|
||||
--> $DIR/unsafe_ptr.rs:31:26
|
||||
--> $DIR/unsafe_ptr.rs:32:26
|
||||
|
|
||||
LL | println!("{:?}", (*t.0).s);
|
||||
| ^^^^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/unsafe_ptr.rs:28:6
|
||||
--> $DIR/unsafe_ptr.rs:29:6
|
||||
|
|
||||
LL | / || unsafe {
|
||||
LL | |
|
||||
|
@ -47,13 +49,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture t[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/unsafe_ptr.rs:31:26
|
||||
--> $DIR/unsafe_ptr.rs:32:26
|
||||
|
|
||||
LL | println!("{:?}", (*t.0).s);
|
||||
| ^^^^^^^^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/unsafe_ptr.rs:48:5
|
||||
--> $DIR/unsafe_ptr.rs:50:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -65,13 +67,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing p[Deref,(0, 0)] -> ImmBorrow
|
||||
--> $DIR/unsafe_ptr.rs:51:31
|
||||
--> $DIR/unsafe_ptr.rs:53:31
|
||||
|
|
||||
LL | let x = unsafe { &mut (*p).s };
|
||||
| ^^^^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/unsafe_ptr.rs:48:5
|
||||
--> $DIR/unsafe_ptr.rs:50:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -83,7 +85,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture p[] -> ImmBorrow
|
||||
--> $DIR/unsafe_ptr.rs:51:31
|
||||
--> $DIR/unsafe_ptr.rs:53:31
|
||||
|
|
||||
LL | let x = unsafe { &mut (*p).s };
|
||||
| ^^^^^^
|
||||
|
|
|
@ -22,6 +22,7 @@ fn wild_struct() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -40,6 +41,7 @@ fn wild_tuple() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
@ -58,6 +60,7 @@ fn wild_arr() {
|
|||
let c = #[rustc_capture_analysis]
|
||||
//~^ ERROR: attributes on expressions are experimental
|
||||
//~| NOTE: see issue #15701 <https://github.com/rust-lang/rust/issues/15701>
|
||||
//~| NOTE: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|| {
|
||||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
|
|
|
@ -6,27 +6,30 @@ LL | let c = #[rustc_capture_analysis]
|
|||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/wild_patterns.rs:40:13
|
||||
--> $DIR/wild_patterns.rs:41:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: attributes on expressions are experimental
|
||||
--> $DIR/wild_patterns.rs:58:13
|
||||
--> $DIR/wild_patterns.rs:60:13
|
||||
|
|
||||
LL | let c = #[rustc_capture_analysis]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
|
||||
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/wild_patterns.rs:25:5
|
||||
--> $DIR/wild_patterns.rs:26:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -38,13 +41,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing p[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/wild_patterns.rs:29:37
|
||||
--> $DIR/wild_patterns.rs:30:37
|
||||
|
|
||||
LL | let Point { x: _x, y: _ } = p;
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/wild_patterns.rs:25:5
|
||||
--> $DIR/wild_patterns.rs:26:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -56,13 +59,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture p[(0, 0)] -> ImmBorrow
|
||||
--> $DIR/wild_patterns.rs:29:37
|
||||
--> $DIR/wild_patterns.rs:30:37
|
||||
|
|
||||
LL | let Point { x: _x, y: _ } = p;
|
||||
| ^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/wild_patterns.rs:43:5
|
||||
--> $DIR/wild_patterns.rs:45:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -74,13 +77,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing t[(0, 0)] -> ByValue
|
||||
--> $DIR/wild_patterns.rs:47:23
|
||||
--> $DIR/wild_patterns.rs:49:23
|
||||
|
|
||||
LL | let (_x, _) = t;
|
||||
| ^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/wild_patterns.rs:43:5
|
||||
--> $DIR/wild_patterns.rs:45:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -92,13 +95,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture t[(0, 0)] -> ByValue
|
||||
--> $DIR/wild_patterns.rs:47:23
|
||||
--> $DIR/wild_patterns.rs:49:23
|
||||
|
|
||||
LL | let (_x, _) = t;
|
||||
| ^
|
||||
|
||||
error: First Pass analysis includes:
|
||||
--> $DIR/wild_patterns.rs:61:5
|
||||
--> $DIR/wild_patterns.rs:64:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -110,13 +113,13 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Capturing arr[Index] -> ByValue
|
||||
--> $DIR/wild_patterns.rs:65:23
|
||||
--> $DIR/wild_patterns.rs:68:23
|
||||
|
|
||||
LL | let [_x, _] = arr;
|
||||
| ^^^
|
||||
|
||||
error: Min Capture analysis includes:
|
||||
--> $DIR/wild_patterns.rs:61:5
|
||||
--> $DIR/wild_patterns.rs:64:5
|
||||
|
|
||||
LL | / || {
|
||||
LL | |
|
||||
|
@ -128,7 +131,7 @@ LL | | };
|
|||
| |_____^
|
||||
|
|
||||
note: Min Capture arr[] -> ByValue
|
||||
--> $DIR/wild_patterns.rs:65:23
|
||||
--> $DIR/wild_patterns.rs:68:23
|
||||
|
|
||||
LL | let [_x, _] = arr;
|
||||
| ^^^
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | for<const N: i32> || -> () {};
|
|||
|
|
||||
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
||||
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | for<T> || -> () {};
|
|||
|
|
||||
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
||||
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | core::mem::transmute::<usize, extern "C-cmse-nonsecure-call" fn(i32
|
|||
|
|
||||
= note: see issue #81391 <https://github.com/rust-lang/rust/issues/81391> for more information
|
||||
= help: add `#![feature(abi_c_cmse_nonsecure_call)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | #[cmse_nonsecure_entry]
|
|||
|
|
||||
= note: see issue #75835 <https://github.com/rust-lang/rust/issues/75835> for more information
|
||||
= help: add `#![feature(cmse_nonsecure_entry)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0775]: `#[cmse_nonsecure_entry]` is only valid for targets with the TrustZone-M extension
|
||||
--> $DIR/gate_test.rs:4:1
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | #![cfg_attr(broken, no_core)]
|
|||
|
|
||||
= note: see issue #29639 <https://github.com/rust-lang/rust/issues/29639> for more information
|
||||
= help: add `#![feature(no_core)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | #![cfg_attr(broken, no_core, no_std)]
|
|||
|
|
||||
= note: see issue #29639 <https://github.com/rust-lang/rust/issues/29639> for more information
|
||||
= help: add `#![feature(no_core)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | #![cfg_attr(broken, no_std, no_core)]
|
|||
|
|
||||
= note: see issue #29639 <https://github.com/rust-lang/rust/issues/29639> for more information
|
||||
= help: add `#![feature(no_core)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@ LL | type FnBad = for<#[cfg(no)] 'a, #[cfg(yes)] T> fn();
|
|||
|
|
||||
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
||||
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: only lifetime parameters can be used in this context
|
||||
--> $DIR/cfg-generic-params.rs:11:51
|
||||
|
@ -45,6 +46,7 @@ LL | type PolyBad = dyn for<#[cfg(no)] 'a, #[cfg(yes)] T> Copy;
|
|||
|
|
||||
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
||||
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: only lifetime parameters can be used in this context
|
||||
--> $DIR/cfg-generic-params.rs:15:54
|
||||
|
@ -54,6 +56,7 @@ LL | struct WhereBad where for<#[cfg(no)] 'a, #[cfg(yes)] T> u8: Copy;
|
|||
|
|
||||
= note: see issue #108185 <https://github.com/rust-lang/rust/issues/108185> for more information
|
||||
= help: add `#![feature(non_lifetime_binders)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 8 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | #[cfg_accessible(std)]
|
|||
|
|
||||
= note: see issue #64797 <https://github.com/rust-lang/rust/issues/64797> for more information
|
||||
= help: add `#![feature(cfg_accessible)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | impl Foo<N = 3> for Bar {
|
|||
|
|
||||
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
|
||||
= help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied
|
||||
--> $DIR/issue-89013-no-kw.rs:9:6
|
||||
|
|
|
@ -18,6 +18,7 @@ LL | impl Foo<N = const 3> for Bar {
|
|||
|
|
||||
= note: see issue #92827 <https://github.com/rust-lang/rust/issues/92827> for more information
|
||||
= help: add `#![feature(associated_const_equality)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0107]: trait takes 1 generic argument but 0 generic arguments were supplied
|
||||
--> $DIR/issue-89013.rs:9:6
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | const _: i32 = { core::mem::ManuallyDrop::new(async { 0 }); 4 };
|
|||
|
|
||||
= note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information
|
||||
= help: add `#![feature(const_async_blocks)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: `async` blocks are not allowed in statics
|
||||
--> $DIR/async-block.rs:15:51
|
||||
|
@ -15,6 +16,7 @@ LL | static _FUT: &(dyn Future<Output = ()> + Sync) = &async {};
|
|||
|
|
||||
= note: see issue #85368 <https://github.com/rust-lang/rust/issues/85368> for more information
|
||||
= help: add `#![feature(const_async_blocks)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ LL | const A: () = { let x = Cell::new(2); &raw const x; };
|
|||
|
|
||||
= note: see issue #80384 <https://github.com/rust-lang/rust/issues/80384> for more information
|
||||
= help: add `#![feature(const_refs_to_cell)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: cannot borrow here, since the borrowed element may contain interior mutability
|
||||
--> $DIR/const-address-of-interior-mut.rs:7:40
|
||||
|
@ -15,6 +16,7 @@ LL | static B: () = { let x = Cell::new(2); &raw const x; };
|
|||
|
|
||||
= note: see issue #80384 <https://github.com/rust-lang/rust/issues/80384> for more information
|
||||
= help: add `#![feature(const_refs_to_cell)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: cannot borrow here, since the borrowed element may contain interior mutability
|
||||
--> $DIR/const-address-of-interior-mut.rs:9:44
|
||||
|
@ -24,6 +26,7 @@ LL | static mut C: () = { let x = Cell::new(2); &raw const x; };
|
|||
|
|
||||
= note: see issue #80384 <https://github.com/rust-lang/rust/issues/80384> for more information
|
||||
= help: add `#![feature(const_refs_to_cell)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error[E0658]: cannot borrow here, since the borrowed element may contain interior mutability
|
||||
--> $DIR/const-address-of-interior-mut.rs:13:13
|
||||
|
@ -33,6 +36,7 @@ LL | let y = &raw const x;
|
|||
|
|
||||
= note: see issue #80384 <https://github.com/rust-lang/rust/issues/80384> for more information
|
||||
= help: add `#![feature(const_refs_to_cell)]` to the crate attributes to enable
|
||||
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue