Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
3dd114e
SliceConcatExt::connect defaults to calling join
czipperz May 25, 2019
f65b6a8
rustc-book: Update the rustc/clang compatibility table for xLTO.
michaelwoerister May 28, 2019
cf5df27
Changed the error message to more clearly explain what is allowed
Jun 9, 2019
4e9615d
changed the language of the error message to make it more clear
Jun 9, 2019
4410916
replace NodeId with HirId in traits::ObligationCauseCode
ljedrz Jun 19, 2019
b710e08
remove TyCtx::expr_span (unused)
ljedrz Jun 19, 2019
f6eb392
replace NodeId with HirId in infer::SubregionOrigin
ljedrz Jun 19, 2019
468647c
remove hir::map::name
ljedrz Jun 19, 2019
98cc18a
rename hir::map::name_by_hir_id to ::name
ljedrz Jun 19, 2019
3ed7585
make hir::def_kind work with HirId
ljedrz Jun 20, 2019
21e63dd
remove definitions::def_index_to_node_id (unused)
ljedrz Jun 20, 2019
2d1e223
remove uses of the NodeId hir::map::expr
ljedrz Jun 20, 2019
fe044a8
rename hir::map::expect_expr_by_hir_id to expect_expr
ljedrz Jun 20, 2019
ae72c91
make blocks::Code work with HirId
ljedrz Jun 20, 2019
a64456e
remove hir::map::get
ljedrz Jun 20, 2019
73cb9ab
rename hir::map::get_by_hir_id to get
ljedrz Jun 20, 2019
cfd754d
Fix theme-checker failure
GuillaumeGomez May 25, 2019
165a95b
Add test for empty css file check
GuillaumeGomez May 26, 2019
640bdbd
Improve theme checker by removing unneeded conditions
GuillaumeGomez May 27, 2019
b4c73a2
Add test for issue-27697
JohnTitor Jun 21, 2019
0a511cc
revert the NodeId to HirId parameter change to get_path_res
ljedrz Jun 21, 2019
0d67510
Remove warnings about incr. comp. generating less debugging output.
michaelwoerister May 28, 2019
004efa2
Remove needless lifetimes
jeremystucki Jun 21, 2019
6392bc9
Add DocFS layer to rustdoc
rbtcollins May 20, 2019
3eeb543
Handle fs errors through errors::Handler instead of eprintln and panic
GuillaumeGomez May 26, 2019
65f1295
Better handling of the sender channel part in rustdoc file writing
GuillaumeGomez Jun 20, 2019
54acbd9
changed expected output in tests so it now passes with changed output
Jun 21, 2019
f4cd3c2
adding in these files that didn't get added in previous commit
Jun 21, 2019
f2a0ce9
Rollup merge of #60971 - rbtcollins:docs-perf, r=rbtcollins,Guillaume…
Centril Jun 21, 2019
3a8536e
Rollup merge of #61146 - czipperz:SliceConcatExt-connect-default-to-j…
Centril Jun 21, 2019
18bb754
Rollup merge of #61181 - GuillaumeGomez:fix-theme-checker, r=kinnison
Centril Jun 21, 2019
653b44d
Rollup merge of #61267 - michaelwoerister:update-xlto-table, r=alexcr…
Centril Jun 21, 2019
c3c3a5e
Rollup merge of #61270 - michaelwoerister:remove-incr-comp-warning, r…
Centril Jun 21, 2019
9eb88f3
Rollup merge of #61681 - asfreitas:addSendTrait, r=estebank
Centril Jun 21, 2019
dc0ef82
Rollup merge of #61984 - ljedrz:more_node_id_pruning, r=Zoxc
Centril Jun 21, 2019
595f55c
Rollup merge of #62016 - JohnTitor:add-test-for-issue-27697, r=alexcr…
Centril Jun 21, 2019
64e5818
Rollup merge of #62019 - jeremystucki:refactoring, r=estebank
Centril Jun 21, 2019
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
remove uses of the NodeId hir::map::expr
  • Loading branch information
ljedrz committed Jun 20, 2019
commit 2d1e223a0e61e93aaeeef01a0e4a71ee2234aa06
6 changes: 0 additions & 6 deletions src/librustc/hir/map/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -927,12 +927,6 @@ impl<'hir> Map<'hir> {
}
}

pub fn expect_expr(&self, id: NodeId) -> &'hir Expr {
let hir_id = self.node_to_hir_id(id);
self.expect_expr_by_hir_id(hir_id)
}

// FIXME(@ljedrz): replace the `NodeId` variant.
pub fn expect_expr_by_hir_id(&self, id: HirId) -> &'hir Expr {
match self.find_by_hir_id(id) { // read recorded by find
Some(Node::Expr(expr)) => expr,
Expand Down
3 changes: 2 additions & 1 deletion src/librustc_save_analysis/dump_visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,8 @@ impl<'l, 'tcx, 'll, O: DumpOutput + 'll> Visitor<'l> for DumpVisitor<'l, 'tcx, '
self.process_macro_use(ex.span);
match ex.node {
ast::ExprKind::Struct(ref path, ref fields, ref base) => {
let hir_expr = self.save_ctxt.tcx.hir().expect_expr(ex.id);
let expr_hir_id = self.save_ctxt.tcx.hir().node_to_hir_id(ex.id);
let hir_expr = self.save_ctxt.tcx.hir().expect_expr_by_hir_id(expr_hir_id);
let adt = match self.save_ctxt.tables.expr_ty_opt(&hir_expr) {
Some(ty) if ty.ty_adt_def().is_some() => ty.ty_adt_def().unwrap(),
_ => {
Expand Down
3 changes: 2 additions & 1 deletion src/librustc_save_analysis/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,8 @@ impl<'l, 'tcx> SaveContext<'l, 'tcx> {
}

pub fn get_expr_data(&self, expr: &ast::Expr) -> Option<Data> {
let hir_node = self.tcx.hir().expect_expr(expr.id);
let expr_hir_id = self.tcx.hir().node_to_hir_id(expr.id);
let hir_node = self.tcx.hir().expect_expr_by_hir_id(expr_hir_id);
let ty = self.tables.expr_ty_adjusted_opt(&hir_node);
if ty.is_none() || ty.unwrap().sty == ty::Error {
return None;
Expand Down