diff options
| author | kennytm <kennytm@gmail.com> | 2018-10-18 10:47:18 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-10-18 12:54:45 +0800 |
| commit | fd616f01705ddc580948279cb22f1f69b753acf4 (patch) | |
| tree | 73db5972d210860718a25b635d83349a34b624aa /src/librustc_codegen_llvm/debuginfo/create_scope_map.rs | |
| parent | e4ac4478514779d956cbc51068ec2d3207083bfa (diff) | |
| parent | 24b74b27443192f6d440be10f7aa0617d8003fab (diff) | |
| download | rust-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.rs | 2 |
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() } } |
