about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/debuginfo/create_scope_map.rs
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-10-18 10:47:18 +0800
committerkennytm <kennytm@gmail.com>2018-10-18 12:54:45 +0800
commitfd616f01705ddc580948279cb22f1f69b753acf4 (patch)
tree73db5972d210860718a25b635d83349a34b624aa /src/librustc_codegen_llvm/debuginfo/create_scope_map.rs
parente4ac4478514779d956cbc51068ec2d3207083bfa (diff)
parent24b74b27443192f6d440be10f7aa0617d8003fab (diff)
downloadrust-fd616f01705ddc580948279cb22f1f69b753acf4.tar.gz
rust-fd616f01705ddc580948279cb22f1f69b753acf4.zip
Rollup merge of #54933 - ljedrz:cleanup_codegen_llvm/misc, r=varkor
Cleanup the rest of codegen_llvm

- improve common patterns
- convert string literals with `to_owned`
- remove explicit `return`s
- whitespace & formatting improvements
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo/create_scope_map.rs')
-rw-r--r--src/librustc_codegen_llvm/debuginfo/create_scope_map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/create_scope_map.rs b/src/librustc_codegen_llvm/debuginfo/create_scope_map.rs
index 0484837a48d..56352ae963f 100644
--- a/src/librustc_codegen_llvm/debuginfo/create_scope_map.rs
+++ b/src/librustc_codegen_llvm/debuginfo/create_scope_map.rs
@@ -37,7 +37,7 @@ pub struct MirDebugScope<'ll> {
 
 impl MirDebugScope<'ll> {
     pub fn is_valid(&self) -> bool {
-        !self.scope_metadata.is_none()
+        self.scope_metadata.is_some()
     }
 }