diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-17 18:14:50 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-04-17 19:01:28 +0530 |
| commit | e81cb172e368571aa9ca340769083d9ddbc8d8a2 (patch) | |
| tree | 8ac6574b96fb2a3b27e1870147865f0954d77629 /src/test/codegen/stack-alloc-string-slice.rs | |
| parent | bdef7f62f5b15ba8dac1479cdc7fa8dded8f52c4 (diff) | |
| parent | 6de33c22e306505c95cc2f3b775e1a82925560fd (diff) | |
| download | rust-e81cb172e368571aa9ca340769083d9ddbc8d8a2.tar.gz rust-e81cb172e368571aa9ca340769083d9ddbc8d8a2.zip | |
Rollup merge of #23782 - mvdnes:obsolete_note, r=alexcrichton
When emmitting a note, previously it was not known if the note was for an error or a
warning. If it was for a warning, then with `-Awarnings` it should not have been print.
The `emit_for` function allows someone to specify which level should determine its visibility.
An example:
```rust
extern crate \"std\" as std2;
fn main() {}
```
When compiling with `-Awarnings`, this would previously emit `note: use an identifier not in quotes instead` (and nothing else).
With this patch, it will be completely silent as expected.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions
