diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-10-22 11:04:25 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-11-02 09:01:02 +1100 |
| commit | b9cef6984b606705f42adf9587f4f1c3babf4d4d (patch) | |
| tree | 361f6ab139c3f9fd37c3a8bf7263ac5937ddb82f /src/librustc_codegen_ssa/back | |
| parent | 5bc7084f7e1be9da93bb014e05f19a80ff6fa188 (diff) | |
| download | rust-b9cef6984b606705f42adf9587f4f1c3babf4d4d.tar.gz rust-b9cef6984b606705f42adf9587f4f1c3babf4d4d.zip | |
Simplify various `Symbol` use points.
Including removing a bunch of unnecessary `.as_str()` calls, and a bunch of unnecessary sigils.
Diffstat (limited to 'src/librustc_codegen_ssa/back')
| -rw-r--r-- | src/librustc_codegen_ssa/back/symbol_export.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_codegen_ssa/back/symbol_export.rs b/src/librustc_codegen_ssa/back/symbol_export.rs index 85a90459f5e..35b62603b07 100644 --- a/src/librustc_codegen_ssa/back/symbol_export.rs +++ b/src/librustc_codegen_ssa/back/symbol_export.rs @@ -129,9 +129,9 @@ fn reachable_non_generics_provider( // // In general though we won't link right if these // symbols are stripped, and LTO currently strips them. - if &*name == "rust_eh_personality" || - &*name == "rust_eh_register_frames" || - &*name == "rust_eh_unregister_frames" { + if name == "rust_eh_personality" || + name == "rust_eh_register_frames" || + name == "rust_eh_unregister_frames" { SymbolExportLevel::C } else { SymbolExportLevel::Rust |
