mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
clippy
This commit is contained in:
parent
560b48a9cb
commit
5a08acba44
1 changed files with 5 additions and 4 deletions
|
@ -259,7 +259,6 @@ fn build_object<'a, B: Backend<'a>>(
|
||||||
&mut layout_ids,
|
&mut layout_ids,
|
||||||
&mut procs,
|
&mut procs,
|
||||||
&mut backend,
|
&mut backend,
|
||||||
exposed_proc.name.name(),
|
|
||||||
layout,
|
layout,
|
||||||
exposed_proc,
|
exposed_proc,
|
||||||
Exposed::Exposed,
|
Exposed::Exposed,
|
||||||
|
@ -270,19 +269,19 @@ fn build_object<'a, B: Backend<'a>>(
|
||||||
&mut layout_ids,
|
&mut layout_ids,
|
||||||
&mut procs,
|
&mut procs,
|
||||||
&mut backend,
|
&mut backend,
|
||||||
exposed_generic_proc.name.name(),
|
|
||||||
layout,
|
layout,
|
||||||
exposed_generic_proc,
|
exposed_generic_proc,
|
||||||
Exposed::ExposedGeneric,
|
Exposed::ExposedGeneric,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debug_assert_eq!(sym, proc.name.name());
|
||||||
|
|
||||||
build_proc_symbol(
|
build_proc_symbol(
|
||||||
&mut output,
|
&mut output,
|
||||||
&mut layout_ids,
|
&mut layout_ids,
|
||||||
&mut procs,
|
&mut procs,
|
||||||
&mut backend,
|
&mut backend,
|
||||||
sym,
|
|
||||||
layout,
|
layout,
|
||||||
proc,
|
proc,
|
||||||
Exposed::NotExposed,
|
Exposed::NotExposed,
|
||||||
|
@ -519,6 +518,7 @@ fn build_exposed_generic_proc<'a, B: Backend<'a>>(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::enum_variant_names)]
|
||||||
enum Exposed {
|
enum Exposed {
|
||||||
ExposedGeneric,
|
ExposedGeneric,
|
||||||
Exposed,
|
Exposed,
|
||||||
|
@ -530,11 +530,12 @@ fn build_proc_symbol<'a, B: Backend<'a>>(
|
||||||
layout_ids: &mut LayoutIds<'a>,
|
layout_ids: &mut LayoutIds<'a>,
|
||||||
procs: &mut Vec<'a, (String, SectionId, SymbolId, Proc<'a>)>,
|
procs: &mut Vec<'a, (String, SectionId, SymbolId, Proc<'a>)>,
|
||||||
backend: &mut B,
|
backend: &mut B,
|
||||||
sym: roc_module::symbol::Symbol,
|
|
||||||
layout: ProcLayout<'a>,
|
layout: ProcLayout<'a>,
|
||||||
proc: Proc<'a>,
|
proc: Proc<'a>,
|
||||||
exposed: Exposed,
|
exposed: Exposed,
|
||||||
) {
|
) {
|
||||||
|
let sym = proc.name.name();
|
||||||
|
|
||||||
let section_id = output.add_section(
|
let section_id = output.add_section(
|
||||||
output.segment_name(StandardSegment::Text).to_vec(),
|
output.segment_name(StandardSegment::Text).to_vec(),
|
||||||
format!(".text.{:x}", sym.as_u64()).as_bytes().to_vec(),
|
format!(".text.{:x}", sym.as_u64()).as_bytes().to_vec(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue