1. 08 9月, 2018 2 次提交
    • N
      region_infer.rs: add some debug! · 8eb789f4
      Niko Matsakis 提交于
      8eb789f4
    • B
      Auto merge of #53327 - wesleywiser:wip_optimize_nll, r=nikomatsakis · fc81e362
      bors 提交于
      [nll] teach SCC about `'static`
      
      r? @nikomatsakis
      
      I think this is right? I am seeing better performance on the `html5ever` benchmark but I'd like a perf run to quantify the exact speedup. There's a few ui tests failing due to changes in the error messages. The main issue seems to be that returns aren't being detected correctly?
      
      `mir_check_cast_unsize.rs` before:
      
      ```
      error: unsatisfied lifetime constraints
        --> mir_check_cast_unsize.rs:17:46
         |
      17 |   fn bar<'a>(x: &'a u32) -> &'static dyn Debug {
         |  ________--____________________________________^
         | |        |
         | |        lifetime `'a` defined here
      18 | |     //~^ ERROR unsatisfied lifetime constraints
      19 | |     x
      20 | |     //~^ WARNING not reporting region error due to nll
      21 | | }
         | |_^ return requires that `'a` must outlive `'static`
      ```
      
      `mir_check_cast_unsize.rs` after:
      
      ```
      error: unsatisfied lifetime constraints
        --> mir_check_cast_unsize.rs:19:5
         |
      17 | fn bar<'a>(x: &'a u32) -> &'static dyn Debug {
         |        -- lifetime `'a` defined here
      18 |     //~^ ERROR unsatisfied lifetime constraints
      19 |     x
         |     ^ cast requires that `'a` must outlive `'static`
      ```
      fc81e362
  2. 07 9月, 2018 37 次提交
  3. 06 9月, 2018 1 次提交