X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibrustc_parse%2Flib.rs;h=3924da5ca67d7bae85ea1227ae3469a23648721b;hb=1a496f33796d848609e06604445e28056954f412;hp=1215c7a199a98816d90e73fb3ef5f57f31d78764;hpb=876a72a251e0d533f776fa9149b3e4daaeea3a61;p=rust.git diff --git a/src/librustc_parse/lib.rs b/src/librustc_parse/lib.rs index 1215c7a199a..3924da5ca67 100644 --- a/src/librustc_parse/lib.rs +++ b/src/librustc_parse/lib.rs @@ -277,7 +277,7 @@ pub fn parse_in_attr<'a, T>( ) -> PResult<'a, T> { let mut parser = Parser::new( sess, - attr.get_normal_item().tokens.clone(), + attr.get_normal_item().args.outer_tokens(), None, false, false, @@ -409,7 +409,7 @@ fn prepend_attrs( brackets.push(stream); } - brackets.push(item.tokens.clone()); + brackets.push(item.args.outer_tokens()); // The span we list here for `#` and for `[ ... ]` are both wrong in // that it encompasses more than each token, but it hopefully is "good