mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 06:35:27 +00:00
make PopStmt copy+clone
This commit is contained in:
parent
ab9b7a5ad2
commit
f10e39fd2b
@ -16,6 +16,7 @@ use super::WHILE_POP_UNWRAP;
|
||||
///
|
||||
/// Depending on whether the value was assigned to a variable or not changes what pattern
|
||||
/// we use for the suggestion.
|
||||
#[derive(Copy, Clone)]
|
||||
enum PopStmt<'hir> {
|
||||
/// `x.pop().unwrap()` was and assigned to a variable.
|
||||
/// The pattern of this local variable will be used and the local statement
|
||||
|
Loading…
Reference in New Issue
Block a user