Skip to content
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 5 pull requests #107026

Merged
merged 19 commits into from
Jan 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
1f34e11
Lift `T: Sized` bounds from some `strict_provenance` pointer methods
WaffleLapkin Oct 28, 2022
662f1f2
Lift `T: Sized` bounds from some `strict_provenance` `NonNull` methods
WaffleLapkin Nov 7, 2022
ee59533
relax reference requirement on from_abstract_name
mllken Jan 4, 2023
47014b1
Don't do pointer arithmetic on pointers to deallocated memory
the8472 Jan 16, 2023
2d54b7c
add miri regression test
the8472 Jan 17, 2023
6d7e213
rustdoc: remove function `handleClick` that's only used once
notriddle Jan 18, 2023
708b529
rustdoc: stop using deprecated `window.event` when there's an `ev` param
notriddle Jan 18, 2023
b738b06
update cache
lcnr Jan 11, 2023
bf7dbff
instantiate canonical vars eagerly
lcnr Jan 17, 2023
660c283
remove assembly context and impl a bit more
lcnr Jan 17, 2023
9a757d6
add `eq` to `InferCtxtExt`
lcnr Jan 17, 2023
31ac29d
update project to emulate a projection cache
lcnr Jan 17, 2023
415aa66
add note about indirect cycles
lcnr Jan 17, 2023
369f9aa
add comment
lcnr Jan 18, 2023
d6ea99d
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer…
Dylan-DPC Jan 18, 2023
548ae60
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
Dylan-DPC Jan 18, 2023
6f5c3c9
Rollup merge of #106718 - lcnr:solver-cycles, r=compiler-errors
Dylan-DPC Jan 18, 2023
1ff4a12
Rollup merge of #106950 - the8472:fix-splice-miri, r=cuviper
Dylan-DPC Jan 18, 2023
43b1e73
Rollup merge of #107014 - notriddle:notriddle/js-cleanup, r=Guillaume…
Dylan-DPC Jan 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4783,6 +4783,7 @@ dependencies = [
"rustc_middle",
"rustc_parse_format",
"rustc_query_system",
"rustc_serialize",
"rustc_session",
"rustc_span",
"rustc_target",
Expand Down
6 changes: 6 additions & 0 deletions compiler/rustc_middle/src/infer/canonical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,12 @@ TrivialTypeTraversalAndLiftImpls! {
}

impl<'tcx> CanonicalVarValues<'tcx> {
/// Creates dummy var values which should not be used in a
/// canonical response.
pub fn dummy() -> CanonicalVarValues<'tcx> {
CanonicalVarValues { var_values: Default::default() }
}

#[inline]
pub fn len(&self) -> usize {
self.var_values.len()
Expand Down
11 changes: 0 additions & 11 deletions compiler/rustc_middle/src/ty/sty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1113,17 +1113,6 @@ impl<'tcx, T> Binder<'tcx, T> {
if self.0.has_escaping_bound_vars() { None } else { Some(self.skip_binder()) }
}

pub fn no_bound_vars_ignoring_escaping(self, tcx: TyCtxt<'tcx>) -> Option<T>
where
T: TypeFoldable<'tcx>,
{
if !self.0.has_escaping_bound_vars() {
Some(self.skip_binder())
} else {
self.0.try_fold_with(&mut SkipBindersAt { index: ty::INNERMOST, tcx }).ok()
}
}

/// Splits the contents into two things that share the same binder
/// level as the original, returning two distinct binders.
///
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_trait_selection/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ rustc_infer = { path = "../rustc_infer" }
rustc_lint_defs = { path = "../rustc_lint_defs" }
rustc_macros = { path = "../rustc_macros" }
rustc_query_system = { path = "../rustc_query_system" }
rustc_serialize = { path = "../rustc_serialize" }
rustc_session = { path = "../rustc_session" }
rustc_span = { path = "../rustc_span" }
rustc_target = { path = "../rustc_target" }
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_trait_selection/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#![feature(never_type)]
#![feature(result_option_inspect)]
#![feature(type_alias_impl_trait)]
#![feature(min_specialization)]
#![recursion_limit = "512"] // For rustdoc

#[macro_use]
Expand Down
Loading