diff options
| author | Kornel <kornel@geekhood.net> | 2017-11-07 11:23:20 +0000 |
|---|---|---|
| committer | Kornel <kornel@geekhood.net> | 2017-11-07 11:23:20 +0000 |
| commit | fb2a5d55cf9ecec9a9498573b63f0976b115a6f6 (patch) | |
| tree | 40ec49aa4ae8484c90127e78ccf9075cc73942d0 | |
| parent | a17e72462fcf4c4b8699fba086ab5363b0bba3bb (diff) | |
Remove deprecated message
Second stage of #43067
| -rw-r--r-- | src/librustc_trans/back/link.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/librustc_trans/back/link.rs b/src/librustc_trans/back/link.rs index 907693ea8a3..c9d6c965bf2 100644 --- a/src/librustc_trans/back/link.rs +++ b/src/librustc_trans/back/link.rs @@ -503,31 +503,10 @@ fn link_staticlib(sess: &Session, if !all_native_libs.is_empty() { if sess.opts.prints.contains(&PrintRequest::NativeStaticLibs) { print_native_static_libs(sess, &all_native_libs); - } else { - // Fallback for backwards compatibility only - print_native_static_libs_legacy(sess, &all_native_libs); } } } -fn print_native_static_libs_legacy(sess: &Session, all_native_libs: &[NativeLibrary]) { - sess.note_without_error("link against the following native artifacts when linking against \ - this static library"); - sess.note_without_error("This list will not be printed by default. \ - Please add --print=native-static-libs if you need this information"); - - for lib in all_native_libs.iter().filter(|l| relevant_lib(sess, l)) { - let name = match lib.kind { - NativeLibraryKind::NativeStaticNobundle | - NativeLibraryKind::NativeUnknown => "library", - NativeLibraryKind::NativeFramework => "framework", - // These are included, no need to print them - NativeLibraryKind::NativeStatic => continue, - }; - sess.note_without_error(&format!("{}: {}", name, lib.name)); - } -} - fn print_native_static_libs(sess: &Session, all_native_libs: &[NativeLibrary]) { let lib_args: Vec<_> = all_native_libs.iter() .filter(|l| relevant_lib(sess, l)) |
