1. 11 1月, 2018 2 次提交
    • B
      Auto merge of #47087 - Zoxc:incr_no_in_ignore, r=michaelwoerister · 619ced05
      bors 提交于
      Replace uses of DepGraph.in_ignore with DepGraph.with_ignore
      
      I currently plan to track tasks in thread local storage. Ignoring things in a closure ensures that the ignore tasks do not overlap the beginning or end of any other task. The TLS API will also use a closure to change a TLS value, so having the ignore task be a closure also helps there.
      
      It also adds `assert_ignored` which is used before a `TyCtxt` is created. Instead of adding a new ignore task this simply ensures that we are in a context where reads are ignored.
      
      r? @michaelwoerister
      619ced05
    • B
      Auto merge of #47243 - wesleywiser:incr_fingerprint_encoding, r=michaelwoerister · c9c29807
      bors 提交于
      [incremental] Specialize encoding and decoding of Fingerprints
      
      This saves the storage space used by about 32 bits per `Fingerprint`.
      On average, this reduces the size of the `/target/{mode}/incremental`
      folder by roughly 5% [Full details here](https://gist.github.com/wesleywiser/264076314794fbd6a4c110d7c1adc43e).
      
      Fixes #45875
      
      r? @michaelwoerister
      c9c29807
  2. 10 1月, 2018 15 次提交
  3. 09 1月, 2018 15 次提交
  4. 08 1月, 2018 8 次提交
    • E
      Upgrade liblibc to latest upstream version. · 80cfcdf1
      Ed Schouten 提交于
      This version of liblibc is a prerequisite for getting libstd to build on
      CloudABI.
      80cfcdf1
    • B
      Auto merge of #47208 - Manishearth:double-ended-searcher, r=pnkfelix · b5392f54
      bors 提交于
      Make double ended searchers use dependent fingers
      
      (fixes #47175)
      
      r? @burntsushi @alexcrichton
      
      needs uplift to beta
      b5392f54
    • G
      Add missing links · 93969734
      Guillaume Gomez 提交于
      93969734
    • J
      1a7b00d5
    • M
      94f3037f
    • B
      Auto merge of #47232 - keatinge:master, r=petrochenkov · 1b193de9
      bors 提交于
      Add help message for incorrect pattern syntax
      
      When I was getting started with rust I often made the mistake of using `||` instead of `|` to match multiple patterns and spent a long time staring at my code wondering what was wrong.
      
      for example:
      
      ```
      fn main() {
          let x = 1;
      
          match x {
              1 || 2 => println!("1 or 2"),
              _ => println!("Something else"),
          }
      }
      
      ```
      
      If you compile this with current rustc you will see
      
      ```
      error: expected one of `...`, `..=`, `..`, `=>`, `if`, or `|`, found `||`
       --> test.rs:5:11
        |
      5 |         1 || 2 => println!("1 or 2"),
        |          -^^ unexpected token
        |          |
        |          expected one of `...`, `..=`, `..`, `=>`, `if`, or `|` here
      
      error: aborting due to previous error
      ```
      
      With my proposed change it will show:
      ```
      error: unexpected token `||` after pattern
       --> test.rs:5:11
        |
      5 |         1 || 2 => println!("1 or 2"),
        |           ^^
        |
        = help: did you mean to use `|` to specify multiple patterns instead?
      
      error: aborting due to previous error
      ```
      1b193de9
    • E
      0528693f
    • B
      Auto merge of #47200 - BurntPizza:query-snatp, r=nikomatsakis · 795594cd
      bors 提交于
      Make normalize_and_test_predicates into a query
      
      From #44891.
      
      I'm not real solid on how `dep_graph` stuff works, but if a node is going to have a key (again, not sure how important that is), then the key needs to be `Copy`. So since `normalize_and_test_predicates` only had one out-of-module use, I changed that call site to use a new function, `substitute_normalize_and_test_predicates` which is the query and enables having the arguments be `Copy`. Hopefully this makes sense.
      
      r? @nikomatsakis
      and/or @michaelwoerister
      795594cd