diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2021-10-21 09:01:16 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2021-10-29 17:13:15 -0500 |
| commit | 4cfb7add771367757ee2dd26da4e29d333c93cb6 (patch) | |
| tree | 196507eb9640a0afdaa4f57eb3e212442177bde2 /src/test/ui/borrowck | |
| parent | 37f70a0e1e04086aee7ae57fbefd6d4071953506 (diff) | |
Fix a format_args span to be expansion
Diffstat (limited to 'src/test/ui/borrowck')
6 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/borrowck/borrowck-and-init.stderr b/src/test/ui/borrowck/borrowck-and-init.stderr index c7e357d4604..d2c7473c036 100644 --- a/src/test/ui/borrowck/borrowck-and-init.stderr +++ b/src/test/ui/borrowck/borrowck-and-init.stderr @@ -3,6 +3,8 @@ error[E0381]: borrow of possibly-uninitialized variable: `i` | LL | println!("{}", i); | ^ use of possibly-uninitialized `i` + | + = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to previous error diff --git a/src/test/ui/borrowck/borrowck-break-uninit-2.stderr b/src/test/ui/borrowck/borrowck-break-uninit-2.stderr index bc9b25c0221..b134f5cc2d8 100644 --- a/src/test/ui/borrowck/borrowck-break-uninit-2.stderr +++ b/src/test/ui/borrowck/borrowck-break-uninit-2.stderr @@ -3,6 +3,8 @@ error[E0381]: borrow of possibly-uninitialized variable: `x` | LL | println!("{}", x); | ^ use of possibly-uninitialized `x` + | + = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to previous error diff --git a/src/test/ui/borrowck/borrowck-break-uninit.stderr b/src/test/ui/borrowck/borrowck-break-uninit.stderr index 766d5cfd634..652d7d3076f 100644 --- a/src/test/ui/borrowck/borrowck-break-uninit.stderr +++ b/src/test/ui/borrowck/borrowck-break-uninit.stderr @@ -3,6 +3,8 @@ error[E0381]: borrow of possibly-uninitialized variable: `x` | LL | println!("{}", x); | ^ use of possibly-uninitialized `x` + | + = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to previous error diff --git a/src/test/ui/borrowck/borrowck-or-init.stderr b/src/test/ui/borrowck/borrowck-or-init.stderr index 3fe8d9eeded..6c757759f71 100644 --- a/src/test/ui/borrowck/borrowck-or-init.stderr +++ b/src/test/ui/borrowck/borrowck-or-init.stderr @@ -3,6 +3,8 @@ error[E0381]: borrow of possibly-uninitialized variable: `i` | LL | println!("{}", i); | ^ use of possibly-uninitialized `i` + | + = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to previous error diff --git a/src/test/ui/borrowck/borrowck-while-break.stderr b/src/test/ui/borrowck/borrowck-while-break.stderr index 3eaaf8d7df0..fc144a066bb 100644 --- a/src/test/ui/borrowck/borrowck-while-break.stderr +++ b/src/test/ui/borrowck/borrowck-while-break.stderr @@ -3,6 +3,8 @@ error[E0381]: borrow of possibly-uninitialized variable: `v` | LL | println!("{}", v); | ^ use of possibly-uninitialized `v` + | + = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to previous error diff --git a/src/test/ui/borrowck/issue-24267-flow-exit.stderr b/src/test/ui/borrowck/issue-24267-flow-exit.stderr index 4eb41ca24dd..e29cf7a1a75 100644 --- a/src/test/ui/borrowck/issue-24267-flow-exit.stderr +++ b/src/test/ui/borrowck/issue-24267-flow-exit.stderr @@ -3,12 +3,16 @@ error[E0381]: borrow of possibly-uninitialized variable: `x` | LL | println!("{}", x); | ^ use of possibly-uninitialized `x` + | + = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0381]: borrow of possibly-uninitialized variable: `x` --> $DIR/issue-24267-flow-exit.rs:18:20 | LL | println!("{}", x); | ^ use of possibly-uninitialized `x` + | + = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info) error: aborting due to 2 previous errors |
