Skip to content

Commit 9f6bdb9

Browse files
committed
lower case some feature gate messages
1 parent 2a1c4ee commit 9f6bdb9

9 files changed

+20
-20
lines changed

src/libsyntax/feature_gate.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,17 +1355,17 @@ pub const EXPLAIN_LITERAL_MATCHER: &'static str =
13551355
":literal fragment specifier is experimental and subject to change";
13561356

13571357
pub const EXPLAIN_UNSIZED_TUPLE_COERCION: &'static str =
1358-
"Unsized tuple coercion is not stable enough for use and is subject to change";
1358+
"unsized tuple coercion is not stable enough for use and is subject to change";
13591359

13601360
pub const EXPLAIN_MACRO_AT_MOST_ONCE_REP: &'static str =
1361-
"Using the `?` macro Kleene operator for \"at most one\" repetition is unstable";
1361+
"using the `?` macro Kleene operator for \"at most one\" repetition is unstable";
13621362

13631363
pub const EXPLAIN_MACROS_IN_EXTERN: &'static str =
1364-
"Macro invocations in `extern {}` blocks are experimental.";
1364+
"macro invocations in `extern {}` blocks are experimental.";
13651365

13661366
// mention proc-macros when enabled
13671367
pub const EXPLAIN_PROC_MACROS_IN_EXTERN: &'static str =
1368-
"Macro and proc-macro invocations in `extern {}` blocks are experimental.";
1368+
"macro and proc-macro invocations in `extern {}` blocks are experimental.";
13691369

13701370
struct PostExpansionVisitor<'a> {
13711371
context: &'a Context<'a>,

src/test/compile-fail-fulldeps/proc-macro/macros-in-extern.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ fn main() {
2626
#[link(name = "rust_test_helpers", kind = "static")]
2727
extern {
2828
#[no_output]
29-
//~^ ERROR Macro and proc-macro invocations in `extern {}` blocks are experimental.
29+
//~^ ERROR macro and proc-macro invocations in `extern {}` blocks are experimental.
3030
fn some_definitely_unknown_symbol_which_should_be_removed();
3131

3232
#[nop_attr]
33-
//~^ ERROR Macro and proc-macro invocations in `extern {}` blocks are experimental.
33+
//~^ ERROR macro and proc-macro invocations in `extern {}` blocks are experimental.
3434
fn rust_get_test_int() -> isize;
3535

3636
emit_input!(fn rust_dbg_extern_identity_u32(arg: u32) -> u32;);
37-
//~^ ERROR Macro and proc-macro invocations in `extern {}` blocks are experimental.
37+
//~^ ERROR macro and proc-macro invocations in `extern {}` blocks are experimental.
3838
}

src/test/compile-fail/macros-in-extern.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ fn main() {
3434
#[link(name = "rust_test_helpers", kind = "static")]
3535
extern {
3636
returns_isize!(rust_get_test_int);
37-
//~^ ERROR Macro invocations in `extern {}` blocks are experimental.
37+
//~^ ERROR macro invocations in `extern {}` blocks are experimental.
3838
takes_u32_returns_u32!(rust_dbg_extern_identity_u32);
39-
//~^ ERROR Macro invocations in `extern {}` blocks are experimental.
39+
//~^ ERROR macro invocations in `extern {}` blocks are experimental.
4040
emits_nothing!();
41-
//~^ ERROR Macro invocations in `extern {}` blocks are experimental.
41+
//~^ ERROR macro invocations in `extern {}` blocks are experimental.
4242
}

src/test/ui/feature-gate-macro_at_most_once_rep.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// gate is not used.
1313

1414
macro_rules! m { ($(a)?) => {} }
15-
//~^ ERROR Using the `?` macro Kleene operator for "at most one" repetition is unstable
15+
//~^ ERROR using the `?` macro Kleene operator for "at most one" repetition is unstable
1616

1717
fn main() {
1818
m!();

src/test/ui/feature-gate-macro_at_most_once_rep.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: Using the `?` macro Kleene operator for "at most one" repetition is unstable (see issue #48075)
1+
error[E0658]: using the `?` macro Kleene operator for "at most one" repetition is unstable (see issue #48075)
22
--> $DIR/feature-gate-macro_at_most_once_rep.rs:14:20
33
|
44
LL | macro_rules! m { ($(a)?) => {} }

src/test/ui/feature-gate-macros_in_extern.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ macro_rules! emits_nothing(
2727
#[link(name = "rust_test_helpers", kind = "static")]
2828
extern {
2929
returns_isize!(rust_get_test_int);
30-
//~^ ERROR Macro invocations in `extern {}` blocks are experimental.
30+
//~^ ERROR macro invocations in `extern {}` blocks are experimental.
3131
takes_u32_returns_u32!(rust_dbg_extern_identity_u32);
32-
//~^ ERROR Macro invocations in `extern {}` blocks are experimental.
32+
//~^ ERROR macro invocations in `extern {}` blocks are experimental.
3333
emits_nothing!();
34-
//~^ ERROR Macro invocations in `extern {}` blocks are experimental.
34+
//~^ ERROR macro invocations in `extern {}` blocks are experimental.
3535
}

src/test/ui/feature-gate-macros_in_extern.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
error[E0658]: Macro invocations in `extern {}` blocks are experimental. (see issue #49476)
1+
error[E0658]: macro invocations in `extern {}` blocks are experimental. (see issue #49476)
22
--> $DIR/feature-gate-macros_in_extern.rs:29:5
33
|
44
LL | returns_isize!(rust_get_test_int);
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= help: add #![feature(macros_in_extern)] to the crate attributes to enable
88

9-
error[E0658]: Macro invocations in `extern {}` blocks are experimental. (see issue #49476)
9+
error[E0658]: macro invocations in `extern {}` blocks are experimental. (see issue #49476)
1010
--> $DIR/feature-gate-macros_in_extern.rs:31:5
1111
|
1212
LL | takes_u32_returns_u32!(rust_dbg_extern_identity_u32);
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1414
|
1515
= help: add #![feature(macros_in_extern)] to the crate attributes to enable
1616

17-
error[E0658]: Macro invocations in `extern {}` blocks are experimental. (see issue #49476)
17+
error[E0658]: macro invocations in `extern {}` blocks are experimental. (see issue #49476)
1818
--> $DIR/feature-gate-macros_in_extern.rs:33:5
1919
|
2020
LL | emits_nothing!();

src/test/ui/feature-gate-unsized_tuple_coercion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010

1111
fn main() {
1212
let _ : &(Send,) = &((),);
13-
//~^ ERROR Unsized tuple coercion is not stable enough
13+
//~^ ERROR unsized tuple coercion is not stable enough
1414
}

src/test/ui/feature-gate-unsized_tuple_coercion.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0658]: Unsized tuple coercion is not stable enough for use and is subject to change (see issue #42877)
1+
error[E0658]: unsized tuple coercion is not stable enough for use and is subject to change (see issue #42877)
22
--> $DIR/feature-gate-unsized_tuple_coercion.rs:12:24
33
|
44
LL | let _ : &(Send,) = &((),);

0 commit comments

Comments
 (0)