diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2018-01-24 13:49:57 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-01-24 13:49:59 +0530 |
| commit | f7ba00c6365e34f7541a25dfb0bb0669b64daf9d (patch) | |
| tree | dba83ba26e02013a5ffc9cd49540795d94a9f45f | |
| parent | a538fe7ce715c7bd27e2e05329c3d857b9ad92af (diff) | |
| download | rust-f7ba00c6365e34f7541a25dfb0bb0669b64daf9d.tar.gz rust-f7ba00c6365e34f7541a25dfb0bb0669b64daf9d.zip | |
Turn error into warning
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 78b24a8d18a..ae4ff10243e 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -880,10 +880,10 @@ fn ambiguity_error(cx: &DocContext, attrs: &Attributes, let sp = attrs.doc_strings.first() .map_or(DUMMY_SP, |a| a.span()); cx.sess() - .struct_span_err(sp, - &format!("`{}` is both {} {} and {} {}", - path_str, article1, kind1, - article2, kind2)) + .struct_span_warn(sp, + &format!("`{}` is both {} {} and {} {}", + path_str, article1, kind1, + article2, kind2)) .help(&format!("try `{}` if you want to select the {}, \ or `{}` if you want to \ select the {}", |
