Skip to content

Commit a11245f

Browse files
committed
Ensure that changed errors are lower case.
1 parent 59e64e9 commit a11245f

18 files changed

+45
-45
lines changed

src/librustc_mir/borrow_check/nll/region_infer/error_reporting.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ enum ConstraintCategory {
3737
impl fmt::Display for ConstraintCategory {
3838
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
3939
match self {
40-
ConstraintCategory::Assignment => write!(f, "Assignment"),
41-
ConstraintCategory::Return => write!(f, "Return"),
42-
ConstraintCategory::Cast => write!(f, "Cast"),
43-
ConstraintCategory::CallArgument => write!(f, "Argument"),
44-
_ => write!(f, "Free region"),
40+
ConstraintCategory::Assignment => write!(f, "assignment"),
41+
ConstraintCategory::Return => write!(f, "return"),
42+
ConstraintCategory::Cast => write!(f, "cast"),
43+
ConstraintCategory::CallArgument => write!(f, "argument"),
44+
_ => write!(f, "free region"),
4545
}
4646
}
4747
}

src/test/ui/borrowck/issue-45983.nll.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ warning: not reporting region error due to nll
44
LL | give_any(|y| x = Some(y));
55
| ^
66

7-
error: Assignment requires that data must outlive free region `'_#2r`
7+
error: assignment requires that data must outlive free region `'_#2r`
88
--> $DIR/issue-45983.rs:17:27
99
|
1010
LL | give_any(|y| x = Some(y));

src/test/ui/borrowck/regions-escape-bound-fn-2.nll.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ warning: not reporting region error due to nll
44
LL | with_int(|y| x = Some(y));
55
| ^
66

7-
error: Assignment requires that data must outlive free region `'_#2r`
7+
error: assignment requires that data must outlive free region `'_#2r`
88
--> $DIR/regions-escape-bound-fn-2.rs:18:27
99
|
1010
LL | with_int(|y| x = Some(y));

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-comparing-against-free.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn case1() {
3131
foo(cell, |cell_a, cell_x| {
3232
//~^ WARNING not reporting region error due to nll
3333
cell_a.set(cell_x.get()); // forces 'x: 'a, error in closure
34-
//~^ ERROR Argument requires that data must outlive free region
34+
//~^ ERROR argument requires that data must outlive free region
3535
})
3636
}
3737

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-comparing-against-free.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ warning: not reporting region error due to nll
44
LL | foo(cell, |cell_a, cell_x| {
55
| ^^^
66

7-
error: Argument requires that data must outlive free region `'_#1r`
7+
error: argument requires that data must outlive free region `'_#1r`
88
--> $DIR/propagate-approximated-shorter-to-static-comparing-against-free.rs:33:20
99
|
1010
LL | cell_a.set(cell_x.get()); // forces 'x: 'a, error in closure
@@ -17,7 +17,7 @@ LL | foo(cell, |cell_a, cell_x| {
1717
| _______________^
1818
LL | | //~^ WARNING not reporting region error due to nll
1919
LL | | cell_a.set(cell_x.get()); // forces 'x: 'a, error in closure
20-
LL | | //~^ ERROR Argument requires that data must outlive free region
20+
LL | | //~^ ERROR argument requires that data must outlive free region
2121
LL | | })
2222
| |_____^
2323
|

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fn demand_y<'x, 'y>(_cell_x: &Cell<&'x u32>, _cell_y: &Cell<&'y u32>, _y: &'y u3
4343
#[rustc_regions]
4444
fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
4545
establish_relationships(&cell_a, &cell_b, |_outlives, x, y| {
46-
//~^ ERROR Argument requires that data must outlive free region
46+
//~^ ERROR argument requires that data must outlive free region
4747

4848
// Only works if 'x: 'y:
4949
demand_y(x, y, x.get()) //~ WARNING not reporting region error due to nll

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-no-bound.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: External requirements
99
|
1010
LL | establish_relationships(&cell_a, &cell_b, |_outlives, x, y| {
1111
| _______________________________________________^
12-
LL | | //~^ ERROR Argument requires that data must outlive free region
12+
LL | | //~^ ERROR argument requires that data must outlive free region
1313
LL | |
1414
LL | | // Only works if 'x: 'y:
1515
LL | | demand_y(x, y, x.get()) //~ WARNING not reporting region error due to nll
@@ -23,11 +23,11 @@ LL | | });
2323
= note: number of external vids: 2
2424
= note: where '_#1r: '_#0r
2525

26-
error: Argument requires that data must outlive free region `ReStatic`
26+
error: argument requires that data must outlive free region `ReStatic`
2727
--> $DIR/propagate-approximated-shorter-to-static-no-bound.rs:45:5
2828
|
2929
LL | / establish_relationships(&cell_a, &cell_b, |_outlives, x, y| {
30-
LL | | //~^ ERROR Argument requires that data must outlive free region
30+
LL | | //~^ ERROR argument requires that data must outlive free region
3131
LL | |
3232
LL | | // Only works if 'x: 'y:
3333
LL | | demand_y(x, y, x.get()) //~ WARNING not reporting region error due to nll
@@ -39,7 +39,7 @@ note: No external requirements
3939
|
4040
LL | / fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
4141
LL | | establish_relationships(&cell_a, &cell_b, |_outlives, x, y| {
42-
LL | | //~^ ERROR Argument requires that data must outlive free region
42+
LL | | //~^ ERROR argument requires that data must outlive free region
4343
LL | |
4444
... |
4545
LL | | });

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn demand_y<'x, 'y>(_cell_x: &Cell<&'x u32>, _cell_y: &Cell<&'y u32>, _y: &'y u3
4646
#[rustc_regions]
4747
fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
4848
establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
49-
//~^ ERROR Argument requires that data must outlive free region
49+
//~^ ERROR argument requires that data must outlive free region
5050
// Only works if 'x: 'y:
5151
demand_y(x, y, x.get())
5252
//~^ WARNING not reporting region error due to nll

src/test/ui/nll/closure-requirements/propagate-approximated-shorter-to-static-wrong-bound.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ note: External requirements
99
|
1010
LL | establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
1111
| _______________________________________________^
12-
LL | | //~^ ERROR Argument requires that data must outlive free region
12+
LL | | //~^ ERROR argument requires that data must outlive free region
1313
LL | | // Only works if 'x: 'y:
1414
LL | | demand_y(x, y, x.get())
1515
LL | | //~^ WARNING not reporting region error due to nll
@@ -23,11 +23,11 @@ LL | | });
2323
= note: number of external vids: 3
2424
= note: where '_#1r: '_#0r
2525

26-
error: Argument requires that data must outlive free region `ReStatic`
26+
error: argument requires that data must outlive free region `ReStatic`
2727
--> $DIR/propagate-approximated-shorter-to-static-wrong-bound.rs:48:5
2828
|
2929
LL | / establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
30-
LL | | //~^ ERROR Argument requires that data must outlive free region
30+
LL | | //~^ ERROR argument requires that data must outlive free region
3131
LL | | // Only works if 'x: 'y:
3232
LL | | demand_y(x, y, x.get())
3333
LL | | //~^ WARNING not reporting region error due to nll
@@ -39,7 +39,7 @@ note: No external requirements
3939
|
4040
LL | / fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
4141
LL | | establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
42-
LL | | //~^ ERROR Argument requires that data must outlive free region
42+
LL | | //~^ ERROR argument requires that data must outlive free region
4343
LL | | // Only works if 'x: 'y:
4444
... |
4545
LL | | });

src/test/ui/nll/closure-requirements/propagate-fail-to-approximate-longer-no-bounds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
4646
// Only works if 'x: 'y:
4747
demand_y(x, y, x.get())
4848
//~^ WARN not reporting region error due to nll
49-
//~| ERROR Argument requires that data must outlive free region
49+
//~| ERROR argument requires that data must outlive free region
5050
});
5151
}
5252

0 commit comments

Comments
 (0)