Skip to content

Commit 2f467ac

Browse files
committed
Auto merge of #3544 - flip1995:rollup, r=flip1995
Rollup of 3 pull requests Successful merges: - #3509 (Fix doc_markdown off by one issue) - #3539 (Fix rvm/gpg bug in travis osx build) - #3540 (rustup rust-lang/rust#56092) Failed merges: r? @ghost
2 parents f5d6aca + b7a431e commit 2f467ac

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

.travis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@ env:
1818
global:
1919
- RUST_BACKTRACE=1
2020

21-
before_install:
22-
- |
23-
# work-around for issue https://github.com/travis-ci/travis-ci/issues/6307
24-
# might not be necessary in the future
25-
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
26-
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
27-
rvm get stable
28-
fi
29-
3021
install:
3122
- |
3223
if [ -z ${INTEGRATION} ]; then

clippy_lints/src/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ fn check_doc<'a, Events: Iterator<Item = (usize, pulldown_cmark::Event<'a>)>>(
238238
}
239239

240240
fn check_text(cx: &EarlyContext<'_>, valid_idents: &[String], text: &str, span: Span) {
241-
for word in text.split_whitespace() {
241+
for word in text.split(|c: char| c.is_whitespace() || c == '\'') {
242242
// Trim punctuation as in `some comment (see foo::bar).`
243243
// ^^
244244
// Or even as in `_foo bar_` which is emphasized.

tests/ui/cast_alignment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
//! Test casts for alignment issues
1111
12-
#![feature(libc)]
1312

13+
#![feature(rustc_private)]
1414
extern crate libc;
1515

1616
#[warn(clippy::cast_ptr_alignment)]

tests/ui/doc.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,7 @@ fn issue_1832() {}
177177

178178
/// Ok: CamelCase (It should not be surrounded by backticks)
179179
fn issue_2395() {}
180+
181+
/// An iterator over mycrate::Collection's values.
182+
/// It should not lint a `'static` lifetime in ticks.
183+
fn issue_2210() {}

tests/ui/doc.stderr

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,11 @@ error: you should put bare URLs between `<`/`>` or make a proper Markdown link
180180
175 | /// Not ok: http://www.unicode.org/reports/tr9/#Reordering_Resolved_Levels
181181
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
182182

183-
error: aborting due to 30 previous errors
183+
error: you should put `mycrate::Collection` between ticks in the documentation
184+
--> $DIR/doc.rs:181:22
185+
|
186+
181 | /// An iterator over mycrate::Collection's values.
187+
| ^^^^^^^^^^^^^^^^^^^
188+
189+
error: aborting due to 31 previous errors
184190

0 commit comments

Comments
 (0)