diff options
| author | Patrick Walton <[email protected]> | 2010-11-18 14:17:17 -0800 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-11-18 14:19:06 -0800 |
| commit | 77ff12c435aeb6181ee2678a526b6f6ea3831938 (patch) | |
| tree | 499fd7149a5fc2a9f0f8c9201b4e2e21c4231f26 /src/lib/option.rs | |
| parent | Update frame logic to be compatible with SysV x86 ABI. Improves diagnostics. (diff) | |
| download | rust-77ff12c435aeb6181ee2678a526b6f6ea3831938.tar.xz rust-77ff12c435aeb6181ee2678a526b6f6ea3831938.zip | |
rustboot: Don't use walk to traverse statements in type.ml; fixes redundant checking, improves diagnostics. Also report untyped slots.
Diffstat (limited to 'src/lib/option.rs')
| -rw-r--r-- | src/lib/option.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/option.rs b/src/lib/option.rs index dbf08b3e..25f82b52 100644 --- a/src/lib/option.rs +++ b/src/lib/option.rs @@ -16,6 +16,7 @@ fn get[T](&t[T] opt) -> T { fail; } } + fail; // FIXME: remove me when exhaustiveness checking works } fn map[T, U](&operator[T, U] f, &t[T] opt) -> t[U] { @@ -27,6 +28,7 @@ fn map[T, U](&operator[T, U] f, &t[T] opt) -> t[U] { ret none[U]; } } + fail; // FIXME: remove me when exhaustiveness checking works } // Local Variables: |