Skip to content

Rollup of 10 pull requests #52989

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

Closed
wants to merge 33 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ef6fddd
cleanup: Remove `Def::GlobalAsm`
petrochenkov Jul 30, 2018
e9509d7
Disable debug sections when optimization flags is set for LLD.
yurydelendik Jul 31, 2018
5e70e5e
Move validate_crate_name to rustc_metadata
Mark-Simulacrum Jul 31, 2018
8752e61
Delete dummy crate store
Mark-Simulacrum Jul 31, 2018
5ce5f31
check_const: use the same ParamEnv as codegen for statics
RalfJung Jul 31, 2018
d148b41
Visibility is now a query
Mark-Simulacrum Jul 31, 2018
222dd17
add comment
RalfJung Aug 1, 2018
0da7da8
Align 6-week cycle check with beta promotion instead of stable release.
kennytm Aug 1, 2018
424f6bd
Store concrete crate stores where possible
Mark-Simulacrum Jul 31, 2018
dd753cd
Move unused trait functions to inherent functions
Mark-Simulacrum Jul 31, 2018
c3618c8
Special-case `Box` in `rustc_mir::borrow_check`.
pnkfelix Jul 26, 2018
1863cb7
Errors are more specific in cases where borrows are used in future it…
davidtwco Aug 1, 2018
88284ba
minor fallout from the change.
pnkfelix Jul 27, 2018
08b3a8e
Regression tests.
pnkfelix Jul 27, 2018
469d6a8
Test for (previously uncaught) infinite loop identified by matthewjas…
pnkfelix Jul 30, 2018
a1b8a93
Expand long-live-borrows-in-boxes test to include simplier illustrati…
pnkfelix Jul 30, 2018
c02c00b
Fix bug in test pointed out during review.
pnkfelix Jul 30, 2018
01cf9bf
Update LLVM submodule
cramertj Aug 1, 2018
2488cb6
Explicitly label any named lifetimes mentioned in error messages.
davidtwco Aug 2, 2018
bb88c98
Add lldb to the build
tromey Jul 3, 2018
4aa21d1
Ignore clang and lldb in tidy
tromey Jul 26, 2018
7707578
Do not try to distribute lldb if it was not built
tromey Jul 27, 2018
1d43f25
Handle the dry_run case in the lldb dist step
tromey Jul 27, 2018
bd67fce
Rollup merge of #52716 - tromey:rustup-lldb, r=Mark-Simulacrum
cramertj Aug 2, 2018
ca93f6f
Rollup merge of #52782 - pnkfelix:issue-45696-dangly-paths-for-box, r…
cramertj Aug 2, 2018
ec58d48
Rollup merge of #52886 - petrochenkov:noga, r=alexcrichton
cramertj Aug 2, 2018
542f99c
Rollup merge of #52887 - yurydelendik:disable-lld-symbols, r=alexcric…
cramertj Aug 2, 2018
977c015
Rollup merge of #52925 - RalfJung:sanity_check, r=oli-obk
cramertj Aug 2, 2018
6846aec
Rollup merge of #52927 - Mark-Simulacrum:cratestore-cleanup, r=varkor
cramertj Aug 2, 2018
ac2165a
Rollup merge of #52940 - kennytm:move-checktool-protection-week, r=al…
cramertj Aug 2, 2018
13386bc
Rollup merge of #52948 - davidtwco:issue-52633-later-loop-iteration, …
cramertj Aug 2, 2018
1727484
Rollup merge of #52952 - cramertj:llvm-update, r=alexcrichton
cramertj Aug 2, 2018
52d4e68
Rollup merge of #52973 - davidtwco:issue-52663-lifetimes-not-included…
cramertj Aug 2, 2018
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
6 changes: 1 addition & 5 deletions src/librustc/hir/def.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ pub enum Def {
// Macro namespace
Macro(DefId, MacroKind),

GlobalAsm(DefId),

// Both namespaces
Err,
}
Expand Down Expand Up @@ -249,8 +247,7 @@ impl Def {
Def::AssociatedTy(id) | Def::TyParam(id) | Def::Struct(id) | Def::StructCtor(id, ..) |
Def::Union(id) | Def::Trait(id) | Def::Method(id) | Def::Const(id) |
Def::AssociatedConst(id) | Def::Macro(id, ..) |
Def::Existential(id) | Def::AssociatedExistential(id) |
Def::GlobalAsm(id) | Def::TyForeign(id) => {
Def::Existential(id) | Def::AssociatedExistential(id) | Def::TyForeign(id) => {
id
}

Expand Down Expand Up @@ -298,7 +295,6 @@ impl Def {
Def::Label(..) => "label",
Def::SelfTy(..) => "self type",
Def::Macro(.., macro_kind) => macro_kind.descr(),
Def::GlobalAsm(..) => "global asm",
Def::Err => "unresolved item",
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/hir/map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ impl<'hir> Map<'hir> {
ItemKind::Const(..) => Some(Def::Const(def_id())),
ItemKind::Fn(..) => Some(Def::Fn(def_id())),
ItemKind::Mod(..) => Some(Def::Mod(def_id())),
ItemKind::GlobalAsm(..) => Some(Def::GlobalAsm(def_id())),
ItemKind::Existential(..) => Some(Def::Existential(def_id())),
ItemKind::Ty(..) => Some(Def::TyAlias(def_id())),
ItemKind::Enum(..) => Some(Def::Enum(def_id())),
Expand All @@ -445,6 +444,7 @@ impl<'hir> Map<'hir> {
ItemKind::ExternCrate(_) |
ItemKind::Use(..) |
ItemKind::ForeignMod(..) |
ItemKind::GlobalAsm(..) |
ItemKind::Impl(..) => None,
}
}
Expand Down
1 change: 0 additions & 1 deletion src/librustc/ich/impls_hir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,6 @@ impl_stable_hash_for!(enum hir::def::Def {
Upvar(def_id, index, expr_id),
Label(node_id),
Macro(def_id, macro_kind),
GlobalAsm(def_id),
Err
});

Expand Down
2 changes: 1 addition & 1 deletion src/librustc_metadata/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,10 @@ impl<'tcx> EntryKind<'tcx> {
EntryKind::Trait(_) => Def::Trait(did),
EntryKind::Enum(..) => Def::Enum(did),
EntryKind::MacroDef(_) => Def::Macro(did, MacroKind::Bang),
EntryKind::GlobalAsm => Def::GlobalAsm(did),
EntryKind::ForeignType => Def::TyForeign(did),

EntryKind::ForeignMod |
EntryKind::GlobalAsm |
EntryKind::Impl(_) |
EntryKind::Field |
EntryKind::Generator(_) |
Expand Down
9 changes: 2 additions & 7 deletions src/librustc_resolve/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,10 @@ fn resolve_struct_error<'sess, 'a>(resolver: &'sess Resolver,
err.span_label(typaram_span, "type variable from outer function");
}
},
Def::Mod(..) | Def::Struct(..) | Def::Union(..) | Def::Enum(..) | Def::Variant(..) |
Def::Trait(..) | Def::TyAlias(..) | Def::TyForeign(..) | Def::TraitAlias(..) |
Def::AssociatedTy(..) | Def::PrimTy(..) | Def::Fn(..) | Def::Const(..) |
Def::Static(..) | Def::StructCtor(..) | Def::VariantCtor(..) | Def::Method(..) |
Def::AssociatedConst(..) | Def::Local(..) | Def::Upvar(..) | Def::Label(..) |
Def::Existential(..) | Def::AssociatedExistential(..) |
Def::Macro(..) | Def::GlobalAsm(..) | Def::Err =>
_ => {
bug!("TypeParametersFromOuterFunction should only be used with Def::SelfTy or \
Def::TyParam")
}
}

// Try to retrieve the span of the function signature and generate a new message with
Expand Down
1 change: 0 additions & 1 deletion src/librustc_save_analysis/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,6 @@ impl<'l, 'tcx: 'l> SaveContext<'l, 'tcx> {
HirDef::SelfTy(..) |
HirDef::Label(..) |
HirDef::Macro(..) |
HirDef::GlobalAsm(..) |
HirDef::Err => None,
}
}
Expand Down