Skip to content

Commit 8a3dfe4

Browse files
oslfmtsmoelius
authored andcommitted
upgrade toolchain
1 parent f2aa39e commit 8a3dfe4

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

lints/duplicate_mutable_accounts/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lints/duplicate_mutable_accounts/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ name = "recommended-2"
3030
path = "ui/recommended-2/src/lib.rs"
3131

3232
[dependencies]
33-
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "0cb0f7636851f9fcc57085cf80197a2ef6db098f" }
33+
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "2b2190cb5667cdd276a24ef8b9f3692209c54a89" }
3434
dylint_linting = "2.0.1"
3535
if_chain = "1.0.2"
3636
proc-macro2 = "1.0.40"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "nightly-2022-06-30"
2+
channel = "nightly-2022-08-11"
33
components = ["llvm-tools-preview", "rustc-dev"]

lints/duplicate_mutable_accounts/src/anchor_constraint.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::default::Default;
22

33
use rustc_ast::{
44
token::{Delimiter, Token, TokenKind},
5-
tokenstream::{DelimSpan, TokenStream, TokenTree, TreeAndSpacing},
5+
tokenstream::{DelimSpan, Spacing, TokenStream, TokenTree},
66
};
77
use rustc_hir::{def::Res, FieldDef, GenericArg, QPath, TyKind};
88
use rustc_span::{
@@ -51,23 +51,23 @@ pub fn create_key_check_constraint_tokenstream(a: Symbol, b: Symbol) -> TokenStr
5151
// TODO: may be more efficient way to do this, since the stream is effectively fixed
5252
// and determined. Only two tokens are variable.
5353
let constraint = vec![
54-
TreeAndSpacing::from(create_token_from_ident(a.as_str())),
55-
TreeAndSpacing::from(TokenTree::Token(Token::new(TokenKind::Dot, DUMMY_SP))),
56-
TreeAndSpacing::from(create_token_from_ident("key")),
57-
TreeAndSpacing::from(TokenTree::Delimited(
54+
create_token_from_ident(a.as_str()),
55+
TokenTree::Token(Token::new(TokenKind::Dot, DUMMY_SP), Spacing::Alone),
56+
create_token_from_ident("key"),
57+
TokenTree::Delimited(
5858
DelimSpan::dummy(),
5959
Delimiter::Parenthesis,
6060
TokenStream::new(vec![]),
61-
)),
62-
TreeAndSpacing::from(TokenTree::Token(Token::new(TokenKind::Ne, DUMMY_SP))),
63-
TreeAndSpacing::from(create_token_from_ident(b.as_str())),
64-
TreeAndSpacing::from(TokenTree::Token(Token::new(TokenKind::Dot, DUMMY_SP))),
65-
TreeAndSpacing::from(create_token_from_ident("key")),
66-
TreeAndSpacing::from(TokenTree::Delimited(
61+
),
62+
TokenTree::Token(Token::new(TokenKind::Ne, DUMMY_SP), Spacing::Alone),
63+
create_token_from_ident(b.as_str()),
64+
TokenTree::Token(Token::new(TokenKind::Dot, DUMMY_SP), Spacing::Alone),
65+
create_token_from_ident("key"),
66+
TokenTree::Delimited(
6767
DelimSpan::dummy(),
6868
Delimiter::Parenthesis,
6969
TokenStream::new(vec![]),
70-
)),
70+
),
7171
];
7272

7373
TokenStream::new(constraint)
@@ -76,7 +76,7 @@ pub fn create_key_check_constraint_tokenstream(a: Symbol, b: Symbol) -> TokenStr
7676
/// Returns a `TokenTree::Token` which has `TokenKind::Ident`, with the string set to `s`.
7777
fn create_token_from_ident(s: &str) -> TokenTree {
7878
let ident = Ident::from_str(s);
79-
TokenTree::Token(Token::from_ast_ident(ident))
79+
TokenTree::Token(Token::from_ast_ident(ident), Spacing::Alone)
8080
}
8181

8282
#[derive(Debug, Default)]

0 commit comments

Comments
 (0)