]> git.lizzy.rs Git - rust.git/commitdiff
rustc: Change an unconditional `warn` to a `note`
authorAlex Crichton <alex@alexcrichton.com>
Sun, 1 Feb 2015 22:25:55 +0000 (14:25 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 1 Feb 2015 22:25:55 +0000 (14:25 -0800)
There [have been reports][issue] of an unconditional warning causing tooling to
go awry. This isn't actually a warning per se, it's more of a note anyway!

[issue]: https://github.com/rust-lang/cargo/issues/1260

Closes rust-lang/cargo#1260

src/librustc_trans/back/link.rs

index 93a2b6eaa4f02b6600f8b5dff67d81a7f88265ba..590632d7140e0735882037e8288066a50302b349 100644 (file)
@@ -740,7 +740,7 @@ fn link_staticlib(sess: &Session, obj_filename: &Path, out_filename: &Path) {
     let _ = ab.build();
 
     if !all_native_libs.is_empty() {
-        sess.warn("link against the following native artifacts when linking against \
+        sess.note("link against the following native artifacts when linking against \
                   this static library");
         sess.note("the order and any duplication can be significant on some platforms, \
                   and so may need to be preserved");