mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-24 20:42:29 +00:00
use &str instead of Ident in some key places
This commit is contained in:
parent
15f860e6d7
commit
76754e4d2a
11 changed files with 57 additions and 60 deletions
|
@ -1,6 +1,5 @@
|
|||
use bumpalo::collections::vec::Vec;
|
||||
use bumpalo::Bump;
|
||||
use roc_module::ident::Ident;
|
||||
use roc_module::low_level::LowLevel;
|
||||
use roc_module::symbol::{IdentIds, ModuleId, Symbol};
|
||||
use roc_target::TargetInfo;
|
||||
|
@ -396,7 +395,7 @@ impl<'a> CodeGenHelp<'a> {
|
|||
}
|
||||
|
||||
fn create_symbol(&self, ident_ids: &mut IdentIds, debug_name: &str) -> Symbol {
|
||||
let ident_id = ident_ids.add_ident(&Ident::from(debug_name));
|
||||
let ident_id = ident_ids.add_str(debug_name);
|
||||
Symbol::new(self.home, ident_id)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue