File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed
src/test/run-make/const_fn_mir Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1180,10 +1180,6 @@ impl<'tcx> LocalDecl<'tcx> {
1180
1180
}
1181
1181
}
1182
1182
1183
- pub fn temp(mut self) {
1184
- self.local_info = Some(Box::new(LocalInfo::Temp));
1185
- }
1186
-
1187
1183
/// Converts `self` into same `LocalDecl` except tagged as internal.
1188
1184
#[inline]
1189
1185
pub fn internal(mut self) -> Self {
Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ fn may_be_reference(ty: Ty<'_>) -> bool {
59
59
60
60
/// Determines whether or not this LocalDecl is temp, if not it needs retagging.
61
61
fn is_not_temp<'tcx>(local_decl: &LocalDecl<'tcx>) -> bool {
62
- if local_decl.local_info.is_some() {
63
- match local_decl. local_info.as_ref().unwrap() .as_ref() {
62
+ if let Some(local_info) = & local_decl.local_info {
63
+ match local_info.as_ref() {
64
64
LocalInfo::Temp => return false,
65
65
_ => (),
66
66
};
Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ fn foo() -> i32 {
23
23
_0 = move (_1.0: i32); // scope 0 at main.rs:5:5: 5:10
24
24
return; // scope 0 at main.rs:6:2: 6:2
25
25
}
26
-
27
- bb2 (cleanup): {
28
- resume; // scope 0 at main.rs:4:1: 6:2
29
- }
30
26
}
31
27
32
28
fn main() -> () {
You can’t perform that action at this time.
0 commit comments