Skip to content

Conversation

jethrogb
Copy link
Contributor

Not sure what happened, this used to work.

cc @VardhanThigle

@@ -196,30 +198,32 @@ impl BacktraceFrameFmt<'_, '_, '_> {
// To reduce TCB size in Sgx enclave, we do not want to implement symbol
// resolution functionality. Rather, we can print the offset of the
// address here, which could be later mapped to correct function.
#[cfg(all(feature = "std", target_env = "sgx", target_vendor = "fortanix"))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the removal of this feature directive will break this building when included into libstd?

write!(self.fmt.fmt, "{:1$}", "", HEX_WIDTH + 3)?;
}
}

// Next up write out the symbol name, using the alternate formatting for
// more information if we're a full backtrace. Here we also handle
// symbols which don't have a name,
#[cfg(not(all(target_env = "sgx", target_vendor = "fortanix")))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this use an if instead of using an attribute?

@jethrogb
Copy link
Contributor Author

@workingjubilee
Copy link
Member

@jethrogb Hello! Do you intend to pick up this PR again? Is this even still needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants