diff options
| author | bors <bors@rust-lang.org> | 2018-02-01 04:47:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-02-01 04:47:46 +0000 |
| commit | 26792f0607bea2b03daa5195c2688fd53289042b (patch) | |
| tree | 35a3660501f3d9c285d4fbfcdf2efd01777574a5 /src/libsyntax/lib.rs | |
| parent | 8ccab7eed5f4fc93500fbf242e575073ca70d7cb (diff) | |
| parent | 540f95d9fad41a605e4c8b898d77f47374a76cbd (diff) | |
Auto merge of #47540 - Manishearth:suggestion, r=nrc
Add approximate suggestions for rustfix This adds `span_approximate_suggestion()` that lets you emit a suggestion marked as "non-machine applicable" in the JSON output. UI users see no difference. This is for when rustc and clippy wish to emit suggestions which will make sense to the reader (e.g. they may have placeholders like `<type>`) but are not source-applicable, so that rustfix/etc can ignore these. fixes #39254
Diffstat (limited to 'src/libsyntax/lib.rs')
| -rw-r--r-- | src/libsyntax/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/lib.rs b/src/libsyntax/lib.rs index 3b4c5da10f2..9181cca215c 100644 --- a/src/libsyntax/lib.rs +++ b/src/libsyntax/lib.rs @@ -25,6 +25,7 @@ #![feature(match_default_bindings)] #![feature(i128_type)] #![feature(const_atomic_usize_new)] +#![feature(rustc_attrs)] // See librustc_cratesio_shim/Cargo.toml for a comment explaining this. #[allow(unused_extern_crates)] |
