Skip to content

Commit 558d051

Browse files
committed
Rename {create,emit}_warning as {create,emit}_warn.
For consistency with `warn`/`struct_warn`, and also `{create,emit}_err`, all of which use an abbreviated form.
1 parent 47b0606 commit 558d051

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/gcc_util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub(crate) fn global_gcc_features(sess: &Session, diagnostics: bool) -> Vec<Stri
5252
Some(c @ ('+' | '-')) => c,
5353
Some(_) => {
5454
if diagnostics {
55-
sess.dcx().emit_warning(UnknownCTargetFeaturePrefix { feature: s });
55+
sess.dcx().emit_warn(UnknownCTargetFeaturePrefix { feature: s });
5656
}
5757
return None;
5858
}
@@ -79,7 +79,7 @@ pub(crate) fn global_gcc_features(sess: &Session, diagnostics: bool) -> Vec<Stri
7979
else {
8080
UnknownCTargetFeature { feature, rust_feature: PossibleFeature::None }
8181
};
82-
sess.dcx().emit_warning(unknown_feature);
82+
sess.dcx().emit_warn(unknown_feature);
8383
}
8484

8585
if diagnostics {

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl CodegenBackend for GccCodegenBackend {
191191
#[cfg(feature="master")]
192192
gccjit::set_global_personality_function_name(b"rust_eh_personality\0");
193193
if sess.lto() == Lto::Thin {
194-
sess.dcx().emit_warning(LTONotSupported {});
194+
sess.dcx().emit_warn(LTONotSupported {});
195195
}
196196

197197
#[cfg(not(feature="master"))]

0 commit comments

Comments
 (0)