Skip to content

Commit 09ee43b

Browse files
committed
Auto merge of #160021 - JonathanBrouwer:rollup-o52lFrD, r=JonathanBrouwer
Rollup of 14 pull requests Successful merges: - #160009 (`rust-analyzer` subtree update) - #159833 (ci: Make the `x86_64-gnu-parallel-frontend` job non-optional) - #158873 (applying `/Brepro` in bootstrap on MSVC and adding a run-make test.) - #159777 (Enforce that we don't generate code for comptime fns) - #159997 (On many bindings with move error, limit the number of `Span`s) - #158205 (fix: defer const normalize in coherence mode) - #159312 (Windows implementation for stdio set/take/replace) - #159772 (Fix lowering of resolved const inference variables) - #159785 (Share _Unwind_Exception definition between native and wasm) - #159968 (Fix the const impl suggestion) - #159974 (Update thinvec to 0.2.19) - #160013 (tests/ui: Ignore one query cycle test in parallel frontend mode) - #160016 (compiletest: do not talk about JSON when the user never sees any) - #160018 (test suite: add ARM case to ABI-required target feature check for -Ctarget-cpu)
2 parents 4fefe36 + d3cf641 commit 09ee43b

304 files changed

Lines changed: 4550 additions & 4669 deletions

File tree

Some content is hidden

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

Cargo.lock

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

55765576
[[package]]
55775577
name = "thin-vec"
5578-
version = "0.2.18"
5578+
version = "0.2.19"
55795579
source = "registry+https://github.com/rust-lang/crates.io-index"
5580-
checksum = "b0f7e269b48f0a7dd0146680fa24b50cc67fc0373f086a5b2f99bd084639b482"
5580+
checksum = "79def32ffcd477db1ff26f76dab9e3a91f0bd42a85ca96577089b24623056f9d"
55815581

55825582
[[package]]
55835583
name = "thiserror"

compiler/rustc_ast/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ rustc_macros = { path = "../rustc_macros" }
1515
rustc_serialize = { path = "../rustc_serialize" }
1616
rustc_span = { path = "../rustc_span" }
1717
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
18-
thin-vec = "0.2.18"
18+
thin-vec = "0.2.19"
1919
tracing = "0.1"
2020
# tidy-alphabetical-end

compiler/rustc_ast_lowering/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ rustc_session = { path = "../rustc_session" }
2222
rustc_span = { path = "../rustc_span" }
2323
rustc_target = { path = "../rustc_target" }
2424
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
25-
thin-vec = "0.2.18"
25+
thin-vec = "0.2.19"
2626
tracing = "0.1"
2727
# tidy-alphabetical-end

compiler/rustc_ast_pretty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ rustc_span = { path = "../rustc_span" }
1313

1414
[dev-dependencies]
1515
# tidy-alphabetical-start
16-
thin-vec = "0.2.18"
16+
thin-vec = "0.2.19"
1717
# tidy-alphabetical-end

compiler/rustc_attr_parsing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ rustc_parse_format = { path = "../rustc_parse_format" }
2020
rustc_session = { path = "../rustc_session" }
2121
rustc_span = { path = "../rustc_span" }
2222
rustc_target = { path = "../rustc_target" }
23-
thin-vec = "0.2.18"
23+
thin-vec = "0.2.19"
2424
# tidy-alphabetical-end

compiler/rustc_borrowck/src/diagnostics/move_errors.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,9 @@ impl<'diag, 'tcx> MirBorrowckCtxt<'_, 'diag, 'tcx> {
12431243
}
12441244
} else if j == 0 {
12451245
err.span_label(binding_span, "data moved here");
1246+
} else if j == 5 && binds_to.len() > 6 && !self.infcx.tcx.sess.opts.verbose {
1247+
err.note(format!("...and {} other places", binds_to.len() - 5));
1248+
break;
12461249
} else {
12471250
err.span_label(binding_span, "...and here");
12481251
}

compiler/rustc_builtin_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ rustc_session = { path = "../rustc_session" }
2929
rustc_span = { path = "../rustc_span" }
3030
rustc_target = { path = "../rustc_target" }
3131
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
32-
thin-vec = "0.2.18"
32+
thin-vec = "0.2.19"
3333
tracing = "0.1"
3434
# tidy-alphabetical-end
3535

compiler/rustc_codegen_ssa/src/back/symbol_export.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::collections::hash_map::Entry::*;
33
use rustc_abi::{CanonAbi, X86Call};
44
use rustc_ast::expand::allocator::{AllocatorKind, NO_ALLOC_SHIM_IS_UNSTABLE, global_fn_name};
55
use rustc_data_structures::unord::UnordMap;
6+
use rustc_hir as hir;
67
use rustc_hir::def::DefKind;
78
use rustc_hir::def_id::{CrateNum, DefId, DefIdMap, LOCAL_CRATE, LocalDefId};
89
use rustc_middle::bug;
@@ -87,6 +88,11 @@ pub fn reachable_non_generics_helper(tcx: TyCtxt<'_>) -> DefIdMap<SymbolExportIn
8788

8889
// Only consider nodes that actually have exported symbols.
8990
match tcx.def_kind(def_id) {
91+
DefKind::Fn | DefKind::AssocFn
92+
if tcx.constness(def_id) == hir::Constness::Const { always: true } =>
93+
{
94+
return None;
95+
}
9096
DefKind::Fn | DefKind::Static { .. } => {}
9197
DefKind::AssocFn if tcx.impl_of_assoc(def_id.to_def_id()).is_some() => {}
9298
_ => return None,

compiler/rustc_data_structures/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ smallvec = { version = "1.8.1", features = [
3030
] }
3131
stacker = "0.1.17"
3232
tempfile = "3.2"
33-
thin-vec = "0.2.18"
33+
thin-vec = "0.2.19"
3434
tracing = "0.1"
3535
# tidy-alphabetical-end
3636

compiler/rustc_expand/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ rustc_session = { path = "../rustc_session" }
3030
rustc_span = { path = "../rustc_span" }
3131
scoped-tls = "1.0"
3232
smallvec = { version = "1.8.1", features = ["union", "may_dangle"] }
33-
thin-vec = "0.2.18"
33+
thin-vec = "0.2.19"
3434
tracing = "0.1"
3535
# tidy-alphabetical-end

0 commit comments

Comments
 (0)