about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-29 04:08:18 +0100
committerGitHub <noreply@github.com>2019-10-29 04:08:18 +0100
commit42d4e261a170377fefb49516405445f9a27c0df5 (patch)
treec89eb796dbc30ab12f85db50770a2fd53c5b572c /src/libsyntax
parentcac68218105f1ba8b6a2a0b21b791951ff02f75d (diff)
parentf47f53078c7477d2a2f7739c8f0e295125dd6bd3 (diff)
downloadrust-42d4e261a170377fefb49516405445f9a27c0df5.tar.gz
rust-42d4e261a170377fefb49516405445f9a27c0df5.zip
Rollup merge of #65294 - varkor:lint-inline-prototype, r=matthewjasper
Lint ignored `#[inline]` on function prototypes

Fixes https://github.com/rust-lang/rust/issues/51280.

- Adds a `unused_attribute` lint for `#[inline]` on function prototypes.
- As a consequence, foreign items, impl items and trait items now have their attributes checked, which could cause some code to no longer compile (it was previously erroneously ignored).
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/Cargo.toml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/Cargo.toml b/src/libsyntax/Cargo.toml
index d8de21cc677..3ce47e6a7b8 100644
--- a/src/libsyntax/Cargo.toml
+++ b/src/libsyntax/Cargo.toml
@@ -10,7 +10,7 @@ path = "lib.rs"
 doctest = false
 
 [dependencies]
-bitflags = "1.0"
+bitflags = "1.2.1"
 rustc_serialize = { path = "../libserialize", package = "serialize" }
 log = "0.4"
 scoped-tls = "1.0"