]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #60959 - petrochenkov:sassert, r=estebank
authorMazdak Farrokhzad <twingoow@gmail.com>
Mon, 20 May 2019 21:03:07 +0000 (23:03 +0200)
committerGitHub <noreply@github.com>
Mon, 20 May 2019 21:03:07 +0000 (23:03 +0200)
rustc: Improve type size assertions

Now they
- Tell what the new size is, when it changes
- Do not require passing an identifier

```
   ::: src\libsyntax\parse\token.rs:223:1
    |
223 |    static_assert_size!(Token, 123);
    |    -------------------------------- in this macro invocation
    |
    = note: expected type `[(); 123]`
               found type `[(); 16]`
```

1  2 
src/librustc/hir/mod.rs
src/librustc/ty/mod.rs
src/librustc/ty/sty.rs

Simple merge
Simple merge
Simple merge