-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Rollup of 6 pull requests #121636
Rollup of 6 pull requests #121636
Commits on Feb 21, 2024
-
llvm-wrapper: fix warning C4244
llvm-wrapper/RustWrapper.cpp(1234): warning C4244: '=': conversion from 'uint64_t' to 'unsigned int', possible loss of data nice consistency: uint64_t https://github.com/llvm/llvm-project/blob/6009708b4367171ccdbf4b5905cb6a803753fe18/llvm/include/llvm/IR/DiagnosticInfo.h#L172 but unsigned https://github.com/llvm/llvm-project/blob/6009708b4367171ccdbf4b5905cb6a803753fe18/llvm/include/llvm/IR/DiagnosticInfo.h#L1091
Configuration menu - View commit details
-
Copy full SHA for 205cfcb - Browse repository at this point
Copy the full SHA 205cfcbView commit details -
llvm-wrapper: fix warning C4305
llvm-wrapper/ArchiveWrapper.cpp(70): warning C4305: 'argument': truncation from 'int' to 'bool' while in llvm 12 signature was static ErrorOr<std::unique_ptr<MemoryBuffer>> getFile(const Twine &Filename, int64_t FileSize = -1, bool RequiresNullTerminator = true, bool IsVolatile = false); https://github.com/llvm/llvm-project/blame/fed41342a82f5a3a9201819a82bf7a48313e296b/llvm/include/llvm/Support/MemoryBuffer.h#L85-L87 in llvm 13 and later it was changed to static ErrorOr<std::unique_ptr<MemoryBuffer>> getFile(const Twine &Filename, bool IsText = false, bool RequiresNullTerminator = true, bool IsVolatile = false); https://github.com/llvm/llvm-project/blame/75e33f71c2dae584b13a7d1186ae0a038ba98838/llvm/include/llvm/Support/MemoryBuffer.h#L86-L88 so code was interpreted as MemoryBuffer::getFile(Path, /*IsText*/true, /*RequiresNullTerminator=*/false), but now will be MemoryBuffer::getFile(Path, /*IsText*/false, /*RequiresNullTerminator=*/false). How that worked before?
Configuration menu - View commit details
-
Copy full SHA for 0ce966f - Browse repository at this point
Copy the full SHA 0ce966fView commit details
Commits on Feb 23, 2024
-
By changing some attributes to only_local, reducing encoding attribut…
…es in the crate metadate. Thank you. This is part of changing attributes to only_local. I hope get your opinion whether I should split into multiple PRs, or submit in one. According to [try to not rely on attributes from extern crates](rust-lang/compiler-team#505) and lcnr's guidance.
Configuration menu - View commit details
-
Copy full SHA for ccf789b - Browse repository at this point
Copy the full SHA ccf789bView commit details
Commits on Feb 25, 2024
-
Move
emit_stashed_diagnostic
call in rustfmt.This call was added to `parse_crate_mod` in rust-lang#121487, to fix a case where a stashed diagnostic wasn't emitted. But there is another path where a stashed diagnostic might fail to be emitted if there's a parse error, if the `build` call in `parse_crate_inner` fails before `parse_crate_mod` is reached. So this commit moves the `emit_stashed_diagnostic` call outwards, from `parse_crate_mod` to `format_project`, just after the `Parser::parse_crate` call. This should be far out enough to catch any parsing errors. Fixes rust-lang#121517.
Configuration menu - View commit details
-
Copy full SHA for bf7d1b5 - Browse repository at this point
Copy the full SHA bf7d1b5View commit details
Commits on Feb 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ff07f55 - Browse repository at this point
Copy the full SHA ff07f55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 297abc3 - Browse repository at this point
Copy the full SHA 297abc3View commit details -
as they can made to produce values whose types don't match their underlying layout types which can lead to ICEs on eval
Configuration menu - View commit details
-
Copy full SHA for 633c92c - Browse repository at this point
Copy the full SHA 633c92cView commit details -
Rollup merge of rust-lang#121389 - klensy:llvm-warn-fix, r=nikic
llvm-wrapper: fix few warnings Two fixes: first one is simple unsigned -> uint64_t, but how second one is more subtile, see commit description.
Configuration menu - View commit details
-
Copy full SHA for 6700714 - Browse repository at this point
Copy the full SHA 6700714View commit details -
Rollup merge of rust-lang#121493 - surechen:edit_attribute_only_local…
…, r=lcnr By changing some attributes to only_local, reducing encoding attributes in the crate metadate. Thank you. This is part of changing attributes to only_local. I hope get your opinion whether I should split into multiple PRs, or submit in one. According to [try to not rely on attributes from extern crates](rust-lang/compiler-team#505) and lcnr's guidance.
Configuration menu - View commit details
-
Copy full SHA for 6e3ece3 - Browse repository at this point
Copy the full SHA 6e3ece3View commit details -
Rollup merge of rust-lang#121615 - nnethercote:fix-121517, r=oli-obk
Move `emit_stashed_diagnostic` call in rustfmt. This call was added to `parse_crate_mod` in rust-lang#121487, to fix a case where a stashed diagnostic wasn't emitted. But there is another path where a stashed diagnostic might fail to be emitted if there's a parse error, if the `build` call in `parse_crate_inner` fails before `parse_crate_mod` is reached. So this commit moves the `emit_stashed_diagnostic` call outwards, from `parse_crate_mod` to `format_project`, just after the `Parser::parse_crate` call. This should be far out enough to catch any parsing errors. Fixes rust-lang#121517. r? `@oli-obk` cc `@ytmimi`
Configuration menu - View commit details
-
Copy full SHA for 9d5ab73 - Browse repository at this point
Copy the full SHA 9d5ab73View commit details -
Rollup merge of rust-lang#121617 - compiler-errors:async-closure-kind…
…-check, r=oli-obk Actually use the right closure kind when checking async Fn goals Dumb copy-paste mistake on my part from rust-lang#120712. Sorry! r? oli-obk Fixes rust-lang#121599
Configuration menu - View commit details
-
Copy full SHA for 4f167b4 - Browse repository at this point
Copy the full SHA 4f167b4View commit details -
Rollup merge of rust-lang#121628 - gurry:121534-ice-asymm-binop, r=ol…
…i-obk Do not const prop unions Unions can produce values whose types don't match their underlying layout types which can lead to ICEs on eval. Fixes rust-lang#121534
Configuration menu - View commit details
-
Copy full SHA for 218be27 - Browse repository at this point
Copy the full SHA 218be27View commit details -
Rollup merge of rust-lang#121629 - RalfJung:field-shuffle-seed, r=oli…
…-obk fix some references to no-longer-existing ReprOptions.layout_seed Seems like the field got renamed but some comments not updated.
Configuration menu - View commit details
-
Copy full SHA for 81eddb3 - Browse repository at this point
Copy the full SHA 81eddb3View commit details