rust/src/libsyntax_ext
bors bc001fa07f Auto merge of #49881 - varkor:partialord-opt, r=Manishearth
Fix derive(PartialOrd) and optimise final field operation

```rust
// Before (`lt` on 2-field struct)
self.f1 < other.f1 || (!(other.f1 < self.f1) &&
(self.f2 < other.f2 || (!(other.f2 < self.f2) &&
(false)
))
)

// After
self.f1 < other.f1 || (!(other.f1 < self.f1) &&
self.f2 < other.f2
)

// Before (`le` on 2-field struct)
self.f1 < other.f1 || (!(other.f1 < self.f1) &&
(self.f2 < other.f2 || (!(other.f2 < self.f2) &&
(true)
))
)

// After
self.f1 < other.f1 || (self.f1 == other.f1 &&
self.f2 <= other.f2
)
```

(The big diff is mainly because of a past faulty rustfmt application that I corrected 😒)

Fixes #49650 and fixes #49505.
2018-04-15 03:54:15 +00:00
..
deriving Auto merge of #49881 - varkor:partialord-opt, r=Manishearth 2018-04-15 03:54:15 +00:00
asm.rs Add error codes for libsyntax_ext 2018-04-14 17:25:35 +02:00
assert.rs Remove more duplicated spans 2018-04-06 11:50:49 +03:00
Cargo.toml Replace Rc with Lrc for shared data 2018-03-02 10:48:52 +01:00
cfg.rs Use Span::apply_mark where possible 2018-04-06 11:48:19 +03:00
compile_error.rs Stabilize the compile_error_macro feature 2017-07-25 07:09:31 -07:00
concat.rs Use Span::apply_mark where possible 2018-04-06 11:48:19 +03:00
concat_idents.rs Remove more duplicated spans 2018-04-06 11:50:49 +03:00
diagnostics.rs Add tests and longer error explanation 2018-04-14 17:25:35 +02:00
env.rs Use Span::apply_mark where possible 2018-04-06 11:48:19 +03:00
format.rs Use Span::apply_mark where possible 2018-04-06 11:48:19 +03:00
format_foreign.rs Implement some trivial size_hints for various iterators 2018-03-20 05:33:59 -04:00
global_asm.rs Rename Span::empty to Span::shrink_to_lo, add Span::shrink_to_hi 2018-03-17 22:12:21 +03:00
lib.rs Add error codes for libsyntax_ext 2018-04-14 17:25:35 +02:00
log_syntax.rs make emit_feature_err take a ParseSess 2016-09-26 07:07:41 +02:00
proc_macro_impl.rs Do not capture stderr in the compiler. Instead just panic silently for fatal errors 2018-01-26 04:52:30 +01:00
proc_macro_registrar.rs Use Span::apply_mark where possible 2018-04-06 11:48:19 +03:00
trace_macros.rs Move syntax::util::interner -> syntax::symbol, cleanup. 2016-11-20 23:40:20 +00:00