Skip to content

Commit

Permalink
Merge branch 'main' into son/source
Browse files Browse the repository at this point in the history
  • Loading branch information
sonmarcho authored Oct 2, 2024
2 parents c37fa60 + c139608 commit e595921
Show file tree
Hide file tree
Showing 3 changed files with 455 additions and 67 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ impl<'tcx, 'ctx, 'ctx1> BodyTransCtx<'tcx, 'ctx, 'ctx1> {
// `false`. It will be consumed by the next round of `batching`.
.peeking_take_while(|(_, opt_comment)| opt_comment.is_some())
.map(|(_, opt_comment)| opt_comment.unwrap())
.map(str::trim_start)
.map(|s| s.strip_prefix(" ").unwrap_or(s))
.map(str::to_owned)
.collect_vec();
comments.reverse();
Expand Down
Loading

0 comments on commit e595921

Please sign in to comment.