Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 527bea6

Browse files
Benjamin GillYamakaky
authored andcommitted
Remove unknown_lints warning on stable (#209)
* Allow the new unknown lint 'unused_doc_comment' This is currently in nightly, but not stable. Hence, we need to allow unknown lints so that stable doesn't produce warnings * Deny build warnings in CI Fixes #208
1 parent 7feb96d commit 527bea6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ env:
3535
global:
3636
- secure: ncxJbvJM1vCZfcEftjsFKJMxxhKLgWKaR8Go9AMo0VB5fB2XVW/6NYO5bQEEYpOf1Nc/+2FbI2+Dkz0S/mJpUcNSfBgablCHgwU2sHse7KsoaqfHj2mf1E3exjzSHoP96hPGicC5zAjSXFjCgJPOUSGqqRaJ7z5AsJLhJT6LuK7QpvwPBZzklUN8T+n1sVmws8TNmRIbaniq/q6wYHANHcy6Dl59dx4sKwniUGiZdUhCiddVpoxbECSxc0A8mN2pk7/aW+WGxK3goBs5ZF7+JXF318F62pDcXQmR5CX6WdpenIcJ25g1Vg1WhQ4Ifpe17CN0bfxV8ShuzrQUThCDMffZCo9XySBtODdEowwK1UIpjnFLfIxjOs45Cd8o3tM2j0CfvtnjOz6BCdUU0qiwNPPNx0wFkx3ZiOfSh+FhBhvyPM12HN2tdN0esgVBItFmEci+sSIIXqjVL6DNiu5zTjbu0bs6COwlUWdmL6vmsZtq5tl7Cno9+C3szxRVAkShGydd04l9NYjqNEzTa1EPG50OsnVRKGdRiFzSxhc3BWExNKvcQ4v867t6/PpPkW6s4oXmYI3+De+8O7ExWc6a4alcrDXKlMs5fCb5Pcd4Ju9kowcjkoJo5yf2wW3Ox5R8SJpaEEpvyhx5O/qtIxjhHNzeo8Wsr/6gdNDv20r91TI=
3737
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
38+
- RUSTFLAGS="-D warnings"
3839
matrix:
3940
- FEATURES=--features=backtrace
4041
- FEATURES=--no-default-features

src/error_chain.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ macro_rules! error_chain_processed {
172172
self.0.description()
173173
}
174174

175-
#[allow(unused_doc_comment)]
175+
#[allow(unknown_lints, unused_doc_comment)]
176176
fn cause(&self) -> Option<&::std::error::Error> {
177177
match self.1.next_error {
178178
Some(ref c) => Some(&**c),
@@ -424,7 +424,7 @@ macro_rules! impl_extract_backtrace {
424424
($error_name: ident
425425
$error_kind_name: ident
426426
$([$link_error_path: path, $(#[$meta_links: meta])*])*) => {
427-
#[allow(unused_doc_comment)]
427+
#[allow(unknown_lints, unused_doc_comment)]
428428
fn extract_backtrace(e: &(::std::error::Error + Send + 'static))
429429
-> Option<::std::sync::Arc<$crate::Backtrace>> {
430430
if let Some(e) = e.downcast_ref::<$error_name>() {

src/quick_error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ macro_rules! quick_error {
260260
$item:ident: $imode:tt [$(#[$imeta:meta])*] [$( $var:ident: $typ:ty ),*] {$( $funcs:tt )*}
261261
)*}
262262
) => {
263-
#[allow(unused, unused_doc_comment)]
263+
#[allow(unknown_lints, unused, unused_doc_comment)]
264264
impl ::std::fmt::Display for $name {
265265
fn fmt(&self, fmt: &mut ::std::fmt::Formatter)
266266
-> ::std::fmt::Result
@@ -310,7 +310,7 @@ macro_rules! quick_error {
310310
}
311311
}
312312
}*/
313-
#[allow(unused, unused_doc_comment)]
313+
#[allow(unknown_lints, unused, unused_doc_comment)]
314314
impl $name {
315315
/// A string describing the error kind.
316316
pub fn description(&self) -> &str {

0 commit comments

Comments
 (0)