File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
compiler/rustc_attr_parsing/src/attributes Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -137,10 +137,8 @@ impl DocParser {
137137 cx : & ' c mut AcceptContext < ' _ , ' _ , S > ,
138138 alias : Symbol ,
139139 span : Span ,
140- is_list : bool ,
141140 ) {
142- let attr_str =
143- & format ! ( "`#[doc(alias{})]`" , if is_list { "(\" ...\" )" } else { " = \" ...\" " } ) ;
141+ let attr_str = "`#[doc(alias = \" ...\" )]`" ;
144142 if alias == sym:: empty {
145143 cx. emit_err ( DocAliasEmpty { span, attr_str } ) ;
146144 return ;
@@ -186,15 +184,15 @@ impl DocParser {
186184 continue ;
187185 } ;
188186
189- self . add_alias ( cx, alias, i. span ( ) , false ) ;
187+ self . add_alias ( cx, alias, i. span ( ) ) ;
190188 }
191189 }
192190 ArgParser :: NameValue ( nv) => {
193191 let Some ( alias) = nv. value_as_str ( ) else {
194192 cx. expected_string_literal ( nv. value_span , Some ( nv. value_as_lit ( ) ) ) ;
195193 return ;
196194 } ;
197- self . add_alias ( cx, alias, nv. value_span , false ) ;
195+ self . add_alias ( cx, alias, nv. value_span ) ;
198196 }
199197 }
200198 }
You can’t perform that action at this time.
0 commit comments