Skip to content

.unwrap() when expecting fmt::Result #120090

Closed
@uselessgoddess

Description

@uselessgoddess

Reading the compiler code (specifically the one responsible for mir output) I found these .unwrap()s where probably expected ?.

write!(fmt, "(").unwrap();
}
ProjectionElem::Deref => {
write!(fmt, "(*").unwrap();

Metadata

Metadata

Assignees

Labels

C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions