Skip to content

Commit 1674598

Browse files
authored
Rollup merge of rust-lang#56738 - turboladen:fix-private_no_mangle_fns-message, r=zackmdavis
Fix private_no_mangle_fns message grammar Simply changes "an warning" to "a warning" in the `private_no_mangle_fns` warning. I started getting this in some code after upgrading to 1.31.0.
2 parents a3b0779 + 517bfe0 commit 1674598

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/librustc_lint/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ pub fn register_builtins(store: &mut lint::LintStore, sess: Option<&Session>) {
376376
store.register_removed("resolve_trait_on_defaulted_unit",
377377
"converted into hard error, see https://github.com/rust-lang/rust/issues/48950");
378378
store.register_removed("private_no_mangle_fns",
379-
"no longer an warning, #[no_mangle] functions always exported");
379+
"no longer a warning, #[no_mangle] functions always exported");
380380
store.register_removed("private_no_mangle_statics",
381-
"no longer an warning, #[no_mangle] statics always exported");
381+
"no longer a warning, #[no_mangle] statics always exported");
382382
}

src/test/ui/lint/lint-unexported-no-mangle.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
warning: lint `private_no_mangle_fns` has been removed: `no longer an warning, #[no_mangle] functions always exported`
1+
warning: lint `private_no_mangle_fns` has been removed: `no longer a warning, #[no_mangle] functions always exported`
22
|
33
= note: requested on the command line with `-F private_no_mangle_fns`
44

5-
warning: lint `private_no_mangle_statics` has been removed: `no longer an warning, #[no_mangle] statics always exported`
5+
warning: lint `private_no_mangle_statics` has been removed: `no longer a warning, #[no_mangle] statics always exported`
66
|
77
= note: requested on the command line with `-F private_no_mangle_statics`
88

0 commit comments

Comments
 (0)