-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bump nightly to 2023-08-25 #33048
bump nightly to 2023-08-25 #33048
Changes from all commits
4dc3826
edb503b
c6b3e2a
9bb423e
81337b3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1003,7 +1003,8 @@ pub fn keypair_from_path( | |
keypair_name: &str, | ||
confirm_pubkey: bool, | ||
) -> Result<Keypair, Box<dyn error::Error>> { | ||
let keypair = encodable_key_from_path(matches, path, keypair_name)?; | ||
let skip_validation = matches.is_present(SKIP_SEED_PHRASE_VALIDATION_ARG.name); | ||
let keypair = encodable_key_from_path(path, keypair_name, skip_validation)?; | ||
if confirm_pubkey { | ||
confirm_encodable_keypair_pubkey(&keypair, "pubkey"); | ||
} | ||
|
@@ -1050,7 +1051,8 @@ pub fn elgamal_keypair_from_path( | |
elgamal_keypair_name: &str, | ||
confirm_pubkey: bool, | ||
) -> Result<ElGamalKeypair, Box<dyn error::Error>> { | ||
let elgamal_keypair = encodable_key_from_path(matches, path, elgamal_keypair_name)?; | ||
let skip_validation = matches.is_present(SKIP_SEED_PHRASE_VALIDATION_ARG.name); | ||
let elgamal_keypair = encodable_key_from_path(path, elgamal_keypair_name, skip_validation)?; | ||
if confirm_pubkey { | ||
confirm_encodable_keypair_pubkey(&elgamal_keypair, "ElGamal pubkey"); | ||
} | ||
|
@@ -1104,29 +1106,27 @@ pub fn ae_key_from_path( | |
path: &str, | ||
key_name: &str, | ||
) -> Result<AeKey, Box<dyn error::Error>> { | ||
encodable_key_from_path(matches, path, key_name) | ||
let skip_validation = matches.is_present(SKIP_SEED_PHRASE_VALIDATION_ARG.name); | ||
encodable_key_from_path(path, key_name, skip_validation) | ||
} | ||
|
||
fn encodable_key_from_path<K: EncodableKey + SeedDerivable>( | ||
matches: &ArgMatches, | ||
path: &str, | ||
keypair_name: &str, | ||
skip_validation: bool, | ||
) -> Result<K, Box<dyn error::Error>> { | ||
let SignerSource { | ||
kind, | ||
derivation_path, | ||
legacy, | ||
} = parse_signer_source(path)?; | ||
match kind { | ||
SignerSourceKind::Prompt => { | ||
let skip_validation = matches.is_present(SKIP_SEED_PHRASE_VALIDATION_ARG.name); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so there's some bug with didn't see any related issues on github and haven't had time to try to minimize repro yet There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have you reported this already? Even without minimal reproduction it might be worth giving them a heads up on this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not yet. if we can put this commit in, i'll have something to permalink. don't think the pr links persist after i delete the branch. otherwise hoping to have time to attempt a minimization tonight. |
||
Ok(encodable_key_from_seed_phrase( | ||
keypair_name, | ||
skip_validation, | ||
derivation_path, | ||
legacy, | ||
)?) | ||
} | ||
SignerSourceKind::Prompt => Ok(encodable_key_from_seed_phrase( | ||
keypair_name, | ||
skip_validation, | ||
derivation_path, | ||
legacy, | ||
)?), | ||
SignerSourceKind::Filepath(path) => match K::read_from_file(&path) { | ||
Err(e) => Err(std::io::Error::new( | ||
std::io::ErrorKind::Other, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1972,6 +1972,10 @@ impl ClusterInfo { | |
// Returns a predicate checking if the pull request is from a valid | ||
// address, and if the address have responded to a ping request. Also | ||
// appends ping packets for the addresses which need to be (re)verified. | ||
// | ||
// allow lint false positive trait bound requirement (`CryptoRng` only | ||
// implemented on `&'a mut T` | ||
#[rustversion::attr(since(1.73), allow(clippy::needless_pass_by_ref_mut))] | ||
Comment on lines
+1976
to
+1978
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. comment pretty much covers it. allegedly this lint was introduced in 1.72, but that version was complaining that it doesn't know about it, hence the toolchain version gating. i'm guessing this one won't be contentious and we can just put it in with a corresponding tracking issue |
||
fn check_pull_request<'a, R>( | ||
&'a self, | ||
now: Instant, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,6 +185,7 @@ impl<'a> AccountInfo<'a> { | |
pub fn assign(&self, new_owner: &Pubkey) { | ||
// Set the non-mut owner field | ||
unsafe { | ||
#[allow(invalid_reference_casting)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Lichtso says the compiler's being hyperbolic in calling this UB 😉 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From Rust perspective it is UB, but in LLVM the subsequent volatile write will become pretty well defined again. |
||
std::ptr::write_volatile( | ||
self.owner as *const Pubkey as *mut [u8; 32], | ||
new_owner.to_bytes(), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rust-lang/rust-clippy#11153
allowing this one globally Feels Bad Man ™️, but the offending code is emitted by a proc-macro and we can't put it in the right place locally 🤕