Work around #8256, do not fail the task, just return None
libsyntax/ext/deriving/cmp/* was ignored by the build system.
syntax: make #[deriving(TotalOrd)] lazy.

Previously it would call:

  f(sf1.cmp(&of1), f(sf2.cmp(&of2), ...))

(where s/of1 = 'self/other field 1', and f was
std::cmp::lexical_ordering)

This meant that every .cmp subcall got evaluated when calling a derived
TotalOrd.cmp.

This corrects this to use

   let test = sf1.cmp(&of1);
   if test == Equal {
      let test = sf2.cmp(&of2);
      if test == Equal {
        // ...
      } else {
        test
      }
   } else {
     test
   }

This gives a lexical ordering by short-circuiting on the first comparison
that is not Equal.
std: implement Total{Ord,Eq} for pointers.
std: minor cleanup
std: add str.to_c_str()
std: rewrite run::with_{argv,envp,dirp} to copy C strings
std: remove str::NullTerminatedStr
std: cleanup os and str tests
std: add test for str::as_c_str
std: remove str::from_bytes_with_null
extra: make sure time::match_digits does not read past the end of the str
std: replace str::as_c_str with std::c_str
std and rustc: explicitly pass c strings to c functions

When strings lose their trailing null, this pattern will become dangerous:

let foo = "bar";
let foo_ptr: *u8 = &foo[0];

Instead we should use c_strs to handle this correctly.
std: merge str::raw::from_buf and str::raw::from_c_str
std: remove use of cast module from os.
Remove trailing null from strings
Merge remote-tracking branch 'remotes/origin/master' into str-remove-null
std: Update the c_str docs, and support CString not owning the pointer
std: Use correct lifetime parameter on str::raw::slice_bytes

fn slice_bytes is marked unsafe since it allows violating the valid
string encoding property; but the function did also allow extending the
lifetime of the slice by mistake, since it's returning `&str`.

Use the annotation `slice_bytes<'a>(&'a str, ...) -> &'a str` so
that all uses of slice_bytes are region checked correctly.