Allow ascii whitespace char for doc aliases
This commit is contained in:
parent
efbaa41306
commit
a215151cd3
5 changed files with 7 additions and 20 deletions
|
@ -287,8 +287,9 @@ impl CheckAttrVisitor<'tcx> {
|
|||
self.doc_alias_str_error(meta);
|
||||
return false;
|
||||
}
|
||||
if let Some(c) =
|
||||
doc_alias.chars().find(|&c| c == '"' || c == '\'' || c.is_whitespace())
|
||||
if let Some(c) = doc_alias
|
||||
.chars()
|
||||
.find(|&c| c == '"' || c == '\'' || (c.is_whitespace() && c != ' '))
|
||||
{
|
||||
self.tcx
|
||||
.sess
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue