diff --git a/.travis.yml b/.travis.yml index 5014a66a7..eb6611221 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,15 +18,6 @@ env: global: - RUST_BACKTRACE=1 -before_install: - - | - # work-around for issue https://github.com/travis-ci/travis-ci/issues/6307 - # might not be necessary in the future - if [ "$TRAVIS_OS_NAME" == "osx" ]; then - command curl -sSL https://rvm.io/mpapis.asc | gpg --import - - rvm get stable - fi - install: - | if [ -z ${INTEGRATION} ]; then diff --git a/clippy_lints/src/doc.rs b/clippy_lints/src/doc.rs index a3278159e..d6c96fa62 100644 --- a/clippy_lints/src/doc.rs +++ b/clippy_lints/src/doc.rs @@ -238,7 +238,7 @@ fn check_doc<'a, Events: Iterator)>>( } fn check_text(cx: &EarlyContext<'_>, valid_idents: &[String], text: &str, span: Span) { - for word in text.split_whitespace() { + for word in text.split(|c: char| c.is_whitespace() || c == '\'') { // Trim punctuation as in `some comment (see foo::bar).` // ^^ // Or even as in `_foo bar_` which is emphasized. diff --git a/tests/ui/cast_alignment.rs b/tests/ui/cast_alignment.rs index efc56ea2b..77f50b3ad 100644 --- a/tests/ui/cast_alignment.rs +++ b/tests/ui/cast_alignment.rs @@ -9,8 +9,8 @@ //! Test casts for alignment issues -#![feature(libc)] +#![feature(rustc_private)] extern crate libc; #[warn(clippy::cast_ptr_alignment)] diff --git a/tests/ui/doc.rs b/tests/ui/doc.rs index 8935e3f01..c09cacd6b 100644 --- a/tests/ui/doc.rs +++ b/tests/ui/doc.rs @@ -177,3 +177,7 @@ fn issue_1832() {} /// Ok: CamelCase (It should not be surrounded by backticks) fn issue_2395() {} + +/// An iterator over mycrate::Collection's values. +/// It should not lint a `'static` lifetime in ticks. +fn issue_2210() {} diff --git a/tests/ui/doc.stderr b/tests/ui/doc.stderr index 85c0fd898..26ac81035 100644 --- a/tests/ui/doc.stderr +++ b/tests/ui/doc.stderr @@ -180,5 +180,11 @@ error: you should put bare URLs between `<`/`>` or make a proper Markdown link 175 | /// Not ok: http://www.unicode.org/reports/tr9/#Reordering_Resolved_Levels | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: aborting due to 30 previous errors +error: you should put `mycrate::Collection` between ticks in the documentation + --> $DIR/doc.rs:181:22 + | +181 | /// An iterator over mycrate::Collection's values. + | ^^^^^^^^^^^^^^^^^^^ + +error: aborting due to 31 previous errors