Skip to content

Commit

Permalink
Cleaned up visitor and fixed compilation error on extern statics
Browse files Browse the repository at this point in the history
  • Loading branch information
hundsdor committed Mar 13, 2024
1 parent 5a79512 commit 40065d7
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 262 deletions.
10 changes: 5 additions & 5 deletions src/static_rts/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ impl FromStr for EdgeType {
"Contained" => Ok(Self::Contained),
"Drop" => Ok(Self::Drop),
"Static" => Ok(Self::Static),
"ReifyPtr" => Ok(Self::Static),
"FnPtr" => Ok(Self::Static),
"ReifyPtr" => Ok(Self::ReifyPtr),
"FnPtr" => Ok(Self::FnPtr),

"ClosurePtr" => Ok(Self::ClosurePtr),
"Asm" => Ok(Self::Static),
"Intrinsic" => Ok(Self::Static),
"LangItem" => Ok(Self::Static),
"Asm" => Ok(Self::Asm),
"Intrinsic" => Ok(Self::Intrinsic),
"LangItem" => Ok(Self::LangItem),

"Trimmed" => Ok(Self::Trimmed),
_ => Err(()),
Expand Down
Loading

0 comments on commit 40065d7

Please sign in to comment.