about summary refs log tree commit diff
path: root/src/test/codegen
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-04-17 18:14:50 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-04-17 19:01:28 +0530
commite81cb172e368571aa9ca340769083d9ddbc8d8a2 (patch)
tree8ac6574b96fb2a3b27e1870147865f0954d77629 /src/test/codegen
parentbdef7f62f5b15ba8dac1479cdc7fa8dded8f52c4 (diff)
parent6de33c22e306505c95cc2f3b775e1a82925560fd (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions