mirror of
https://github.com/servo/servo.git
synced 2025-06-09 17:13:24 +00:00
Update nightly rustc.
This commit is contained in:
parent
74f1eb199e
commit
01681e79c4
20 changed files with 33 additions and 28 deletions
|
@ -92,9 +92,14 @@ fn has_lint_attr(sym: &Symbols, attrs: &[Attribute], name: Symbol) -> bool {
|
|||
}
|
||||
|
||||
/// Checks if a type is unrooted or contains any owned unrooted types
|
||||
fn is_unrooted_ty(sym: &Symbols, cx: &LateContext, ty: &ty::TyS, in_new_function: bool) -> bool {
|
||||
fn is_unrooted_ty<'tcx>(
|
||||
sym: &'_ Symbols,
|
||||
cx: &LateContext<'tcx>,
|
||||
ty: &'tcx ty::TyS<'tcx>,
|
||||
in_new_function: bool,
|
||||
) -> bool {
|
||||
let mut ret = false;
|
||||
let mut walker = ty.walk();
|
||||
let mut walker = ty.walk(cx.tcx);
|
||||
while let Some(generic_arg) = walker.next() {
|
||||
let t = match generic_arg.unpack() {
|
||||
rustc_middle::ty::subst::GenericArgKind::Type(t) => t,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue