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

[WIP] Deduplicate instances #48139

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Fix it
  • Loading branch information
bjorn3 committed Mar 29, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 98a8b650bb21d723550fee7a40f2a3268be2fe8c
3 changes: 2 additions & 1 deletion src/librustc_trans/debuginfo/mod.rs
Original file line number Diff line number Diff line change
@@ -206,7 +206,8 @@ pub fn create_function_debug_context<'a, 'tcx>(cx: &CodegenCx<'a, 'tcx>,
sig: ty::FnSig<'tcx>,
llfn: ValueRef,
mir: &mir::Mir) -> FunctionDebugContext {
if cx.sess().opts.debuginfo == NoDebugInfo {
let has_unused_subst = true; // FIXME: make it work with TyUnusedSubst
if cx.sess().opts.debuginfo == NoDebugInfo || has_unused_subst {
return FunctionDebugContext::DebugInfoDisabled;
}

1 change: 1 addition & 0 deletions src/librustdoc/clean/mod.rs
Original file line number Diff line number Diff line change
@@ -2836,6 +2836,7 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {

ty::TyClosure(..) | ty::TyGenerator(..) => Tuple(vec![]), // FIXME(pcwalton)

ty::TyUnusedParam => panic!("TyUnusedParam"),
ty::TyGeneratorWitness(..) => panic!("TyGeneratorWitness"),
ty::TyInfer(..) => panic!("TyInfer"),
ty::TyError => panic!("TyError"),