about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Burka <aburka@seas.upenn.edu>2016-03-07 18:35:01 -0500
committerAlex Burka <aburka@seas.upenn.edu>2016-03-14 16:49:12 -0400
commit4982f913461a2a6dfbac8bace53961233322646a (patch)
tree81bf96f174bb70d35e57a673c8e7b749db67b3ac /src/rustllvm/RustWrapper.cpp
parentd19f1b629918a556709e6b89a1929305db6449dc (diff)
downloadrust-4982f913461a2a6dfbac8bace53961233322646a.tar.gz
rust-4982f913461a2a6dfbac8bace53961233322646a.zip
fix FIXME(#6449) in #[derive(PartialOrd, Ord)]
This replaces some `if`s with `match`es. This was originally not possible
because using a global path in a match statement caused a "non-constant
path in constant expr" ICE. The issue is long since closed, though you still
hit it (as an error now, not an ICE) if you try to generate match patterns
using pat_lit(expr_path). But it works when constructing the patterns more
carefully.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions