Skip to content

Commit a266f11

Browse files
committedMar 22, 2023
Auto merge of rust-lang#109496 - Dylan-DPC:rollup-u8rsi3h, r=Dylan-DPC
Rollup of 11 pull requests Successful merges: - rust-lang#100311 (Fix handling of trailing bare CR in str::lines) - rust-lang#108997 (Change text -> rust highlighting in sanitizer.md) - rust-lang#109179 (move Option::as_slice to intrinsic) - rust-lang#109187 (Render source page layout with Askama) - rust-lang#109280 (Remove `VecMap`) - rust-lang#109295 (refactor `fn bootstrap::builder::Builder::compiler_for` logic) - rust-lang#109312 (rustdoc: Cleanup parent module tracking for doc links) - rust-lang#109317 (Update links for custom discriminants.) - rust-lang#109405 (RPITITs are `DefKind::Opaque` with new lowering strategy) - rust-lang#109414 (Do not consider synthesized RPITITs on missing items checks) - rust-lang#109435 (Detect uninhabited types early in const eval) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 439292b + eda88a3 commit a266f11

File tree

62 files changed

+513
-676
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

+513
-676
lines changed
 

‎compiler/rustc_borrowck/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ extern crate tracing;
1919

2020
use rustc_data_structures::fx::{FxIndexMap, FxIndexSet};
2121
use rustc_data_structures::graph::dominators::Dominators;
22-
use rustc_data_structures::vec_map::VecMap;
2322
use rustc_errors::{Diagnostic, DiagnosticBuilder, DiagnosticMessage, SubdiagnosticMessage};
2423
use rustc_hir as hir;
2524
use rustc_hir::def_id::LocalDefId;
@@ -141,7 +140,7 @@ fn mir_borrowck(tcx: TyCtxt<'_>, def: ty::WithOptConstParam<LocalDefId>) -> &Bor
141140
debug!("Skipping borrowck because of injected body");
142141
// Let's make up a borrowck result! Fun times!
143142
let result = BorrowCheckResult {
144-
concrete_opaque_types: VecMap::new(),
143+
concrete_opaque_types: FxIndexMap::default(),
145144
closure_requirements: None,
146145
used_mut_upvars: SmallVec::new(),
147146
tainted_by_errors: None,

‎compiler/rustc_borrowck/src/nll.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![deny(rustc::diagnostic_outside_of_impl)]
33
//! The entry point of the NLL borrow checker.
44
5-
use rustc_data_structures::vec_map::VecMap;
5+
use rustc_data_structures::fx::FxIndexMap;
66
use rustc_hir::def_id::LocalDefId;
77
use rustc_index::vec::IndexVec;
88
use rustc_middle::mir::{create_dump_file, dump_enabled, dump_mir, PassWhere};
@@ -44,7 +44,7 @@ pub type PoloniusOutput = Output<RustcFacts>;
4444
/// closure requirements to propagate, and any generated errors.
4545
pub(crate) struct NllOutput<'tcx> {
4646
pub regioncx: RegionInferenceContext<'tcx>,
47-
pub opaque_type_values: VecMap<LocalDefId, OpaqueHiddenType<'tcx>>,
47+
pub opaque_type_values: FxIndexMap<LocalDefId, OpaqueHiddenType<'tcx>>,
4848
pub polonius_input: Option<Box<AllFacts>>,
4949
pub polonius_output: Option<Rc<PoloniusOutput>>,
5050
pub opt_closure_req: Option<ClosureRegionRequirements<'tcx>>,
@@ -377,7 +377,7 @@ pub(super) fn dump_annotation<'tcx>(
377377
body: &Body<'tcx>,
378378
regioncx: &RegionInferenceContext<'tcx>,
379379
closure_region_requirements: &Option<ClosureRegionRequirements<'tcx>>,
380-
opaque_type_values: &VecMap<LocalDefId, OpaqueHiddenType<'tcx>>,
380+
opaque_type_values: &FxIndexMap<LocalDefId, OpaqueHiddenType<'tcx>>,
381381
errors: &mut crate::error::BorrowckErrors<'tcx>,
382382
) {
383383
let tcx = infcx.tcx;

0 commit comments

Comments
 (0)