diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-01-30 14:13:27 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-02-21 11:51:56 +1100 |
| commit | 23007fc9e4ad5666c65e8a598e2942c8329def0e (patch) | |
| tree | 2c620ab42bf9dfa5e687f776c8142f29b4ba7cd8 | |
| parent | af75a2f7f10001da3f9d5fbda2d9cce458b7959d (diff) | |
| download | rust-23007fc9e4ad5666c65e8a598e2942c8329def0e.tar.gz rust-23007fc9e4ad5666c65e8a598e2942c8329def0e.zip | |
Use `ThinVec` in `ast::Block`.
| -rw-r--r-- | src/closures.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/closures.rs b/src/closures.rs index 8fd0fcf8f5c..340113866c4 100644 --- a/src/closures.rs +++ b/src/closures.rs @@ -1,5 +1,6 @@ use rustc_ast::{ast, ptr}; use rustc_span::Span; +use thin_vec::thin_vec; use crate::attr::get_attrs_from_stmt; use crate::config::lists::*; @@ -150,7 +151,7 @@ fn rewrite_closure_with_block( } let block = ast::Block { - stmts: vec