diff options
| author | klensy <klensy@users.noreply.github.com> | 2022-04-05 15:52:53 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2022-04-08 11:45:57 +0300 |
| commit | f2d2ec3e93532feb28a2d5e86632c38d8d75f9a5 (patch) | |
| tree | 2f9f04d0cfed765e3dbf69ae12b3c740d237c31b | |
| parent | 2efede77493df5912800fc358f28277642f56bc9 (diff) | |
| download | rust-f2d2ec3e93532feb28a2d5e86632c38d8d75f9a5.tar.gz rust-f2d2ec3e93532feb28a2d5e86632c38d8d75f9a5.zip | |
check_doc_keyword: don't alloc string for emptiness check
check_doc_alias_value: get argument as Symbol to prevent needless string convertions check_doc_attrs: don't alloc vec, iterate over slice. Vec introduced in #83149, but no perf run posted on merge replace as_str() check with symbol check get_single_str_from_tts: don't prealloc string trivial string to str replace LifetimeScopeForPath::NonElided use Vec<Symbol> instead of Vec<String> AssertModuleSource use BTreeSet<Symbol> instead of BTreeSet<String> CrateInfo.crate_name replace FxHashMap<CrateNum, String> with FxHashMap<CrateNum, Symbol>
| -rw-r--r-- | src/driver/jit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/jit.rs b/src/driver/jit.rs index 6c22296db71..7f15bc75fda 100644 --- a/src/driver/jit.rs +++ b/src/driver/jit.rs @@ -288,8 +288,8 @@ fn load_imported_symbols_for_jit( match data[cnum.as_usize() - 1] { Linkage::NotLinked | Linkage::IncludedFromDylib => {} Linkage::Static => { - let name = &crate_info.crate_name[&cnum]; - let mut err = sess.struct_err(&format!("Can't load static lib {}", name.as_str())); + let name = crate_info.crate_name[&cnum]; + let mut err = sess.struct_err(&format!("Can't load static lib {}", name)); err.note("rustc_codegen_cranelift can only load dylibs in JIT mode."); err.emit(); } |
