diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2015-02-02 18:58:24 +0100 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2015-02-02 18:58:24 +0100 |
| commit | 431baa9a19fefeab66ad9399d2271aa1efb69c87 (patch) | |
| tree | 078515f7271901ab5eb65072dbc86f93e0585025 | |
| parent | 758a296e2710746a31b36a2396047aad2367cfa5 (diff) | |
| download | rust-431baa9a19fefeab66ad9399d2271aa1efb69c87.tar.gz rust-431baa9a19fefeab66ad9399d2271aa1efb69c87.zip | |
Remove a bogus match from type_is_unique
The inner match will always result in `true`, so we can as well replace it with just that.
| -rw-r--r-- | src/librustc/middle/ty.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs index 1544db8ce4a..143b3261ed7 100644 --- a/src/librustc/middle/ty.rs +++ b/src/librustc/middle/ty.rs @@ -3099,10 +3099,7 @@ pub fn type_is_unsafe_ptr(ty: Ty) -> bool { pub fn type_is_unique(ty: Ty) -> bool { match ty.sty { - ty_uniq(_) => match ty.sty { - ty_trait(..) => false, - _ => true - }, + ty_uniq(_) => true, _ => false } } |
