Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e6e620e

Browse files
committedOct 4, 2021
Auto merge of #89527 - ehuss:beta-backports, r=ehuss
[beta] Beta rollup * Fix WinUWP std compilation errors due to I/O safety #88587 * Disable RemoveZsts in generators to avoid query cycles #88979 * Disable the evaluation cache when in intercrate mode #88994 * Fix linting when trailing macro expands to a trailing semi #88996 * Don't use projection cache or candidate cache in intercrate mode #89125 * 2229: Mark insignificant dtor in stdlib #89144 * Temporarily rename int_roundings functions to avoid conflicts #89184 * [rfc 2229] Drop fully captured upvars in the same order as the regular drop code #89208 * Use the correct edition for syntax highlighting doctests #89277 * Don't normalize opaque types with escaping late-bound regions #89285 * Update Let's Encrypt ROOT CA certificate in dist-(i686|x86_64)-linux docker images #89486 Cargo update: * - [beta] 1.56 backports (rust-lang/cargo#9958) * - [beta] Revert "When a dependency does not have a version, git or path… (rust-lang/cargo#9912) * - [beta] Fix rustc --profile=dev unstable check. (rust-lang/cargo#9901)
2 parents deef866 + 06b37f1 commit e6e620e

File tree

62 files changed

+1087
-640
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1087
-640
lines changed
 

‎Cargo.lock‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,9 +871,9 @@ dependencies = [
871871

872872
[[package]]
873873
name = "curl-sys"
874-
version = "0.4.45+curl-7.78.0"
874+
version = "0.4.49+curl-7.79.1"
875875
source = "registry+https://github.com/rust-lang/crates.io-index"
876-
checksum = "de9e5a72b1c744eb5dd20b2be4d7eb84625070bb5c4ab9b347b70464ab1e62eb"
876+
checksum = "e0f44960aea24a786a46907b8824ebc0e66ca06bf4e4978408c7499620343483"
877877
dependencies = [
878878
"cc",
879879
"libc",

‎compiler/rustc_expand/src/expand.rs‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,14 +1373,17 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> {
13731373
// `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` lint if needed.
13741374
// See #78991 for an investigation of treating macros in this position
13751375
// as statements, rather than expressions, during parsing.
1376-
if let StmtKind::Expr(expr) = &stmt.kind {
1377-
if matches!(**expr, ast::Expr { kind: ast::ExprKind::MacCall(..), .. }) {
1376+
let res = match &stmt.kind {
1377+
StmtKind::Expr(expr)
1378+
if matches!(**expr, ast::Expr { kind: ast::ExprKind::MacCall(..), .. }) =>
1379+
{
13781380
self.cx.current_expansion.is_trailing_mac = true;
1381+
// Don't use `assign_id` for this statement - it may get removed
1382+
// entirely due to a `#[cfg]` on the contained expression
1383+
noop_flat_map_stmt(stmt, self)
13791384
}
1380-
}
1381-
1382-
let res = assign_id!(self, &mut stmt.id, || noop_flat_map_stmt(stmt, self));
1383-
1385+
_ => assign_id!(self, &mut stmt.id, || noop_flat_map_stmt(stmt, self)),
1386+
};
13841387
self.cx.current_expansion.is_trailing_mac = false;
13851388
res
13861389
}

0 commit comments

Comments
 (0)
Please sign in to comment.