diff options
| author | bors <bors@rust-lang.org> | 2015-05-20 18:08:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-05-20 18:08:40 +0000 |
| commit | d7185dcff12a6963535e73ed4b0f392da236068c (patch) | |
| tree | 211ff657b6767ea805e648a2d3b320dc2ad9497d /src/test/codegen/stack-alloc-string-slice.cc | |
| parent | cfceecafc680d10607e6a29b8c4b056bf86a819b (diff) | |
| parent | 70db73a33011794622e22f10fbc0c6b2cae4292c (diff) | |
| download | rust-d7185dcff12a6963535e73ed4b0f392da236068c.tar.gz rust-d7185dcff12a6963535e73ed4b0f392da236068c.zip | |
Auto merge of #25571 - hirschenberger:master, r=nrc
It is hard to find the actual unstable feature which caused the error when using a list of stable and unstable features as the span marks the whole line
```
src/k8055.rs:22:1: 22:64 error: unstable feature
src/k8055.rs:22 #![feature(slice_patterns, rustc_private, core, convert, libc)]
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
This PR spawns an error for each unstable feature in the list:
```
est.rs:1:12: 1:26 error: unstable feature [-D unstable-features]
test.rs:1 #![feature(slice_patterns, rustc_private, core, convert, libc)]
^~~~~~~~~~~~~~
test.rs:1:28: 1:41 error: unstable feature [-D unstable-features]
test.rs:1 #![feature(slice_patterns, rustc_private, core, convert, libc)]
^~~~~~~~~~~~~
test.rs:1:43: 1:47 error: unstable feature [-D unstable-features]
test.rs:1 #![feature(slice_patterns, rustc_private, core, convert, libc)]
^~~~
test.rs:1:49: 1:56 error: unstable feature [-D unstable-features]
test.rs:1 #![feature(slice_patterns, rustc_private, core, convert, libc)]
^~~~~~~
test.rs:1:58: 1:62 error: unstable feature [-D unstable-features]
test.rs:1 #![feature(slice_patterns, rustc_private, core, convert, libc)]
^~~~
```
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions
