Unrolled build for #142267 · rust-lang/rust@bd9d8ad (original) (raw)
`@@ -523,7 +523,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
`
523
523
`span: Span,
`
524
524
`) -> LocalDefId {
`
525
525
`let parent = self.current_hir_id_owner.def_id;
`
526
``
`-
debug_assert_ne!(node_id, ast::DUMMY_NODE_ID);
`
``
526
`+
assert_ne!(node_id, ast::DUMMY_NODE_ID);
`
527
527
`assert!(
`
528
528
`self.opt_local_def_id(node_id).is_none(),
`
529
529
`"adding a def'n for node-id {:?} and def kind {:?} but a previous def'n exists: {:?}",
`
`@@ -607,10 +607,10 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
`
607
607
`}
`
608
608
``
609
609
`let item = f(self);
`
610
``
`-
debug_assert_eq!(owner_id, item.def_id());
`
``
610
`+
assert_eq!(owner_id, item.def_id());
`
611
611
`` // f should have consumed all the elements in these vectors when constructing item.
``
612
``
`-
debug_assert!(self.impl_trait_defs.is_empty());
`
613
``
`-
debug_assert!(self.impl_trait_bounds.is_empty());
`
``
612
`+
assert!(self.impl_trait_defs.is_empty());
`
``
613
`+
assert!(self.impl_trait_bounds.is_empty());
`
614
614
`let info = self.make_owner_info(item);
`
615
615
``
616
616
`self.attrs = current_attrs;
`
`@@ -918,7 +918,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
`
918
918
`} else {
`
919
919
`let lowered_attrs = self.lower_attrs_vec(attrs, self.lower_span(target_span), id);
`
920
920
``
921
``
`-
debug_assert_eq!(id.owner, self.current_hir_id_owner);
`
``
921
`+
assert_eq!(id.owner, self.current_hir_id_owner);
`
922
922
`let ret = self.arena.alloc_from_iter(lowered_attrs);
`
923
923
``
924
924
`// this is possible if an item contained syntactical attribute,
`
`@@ -956,10 +956,10 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
`
956
956
`}
`
957
957
``
958
958
`fn alias_attrs(&mut self, id: HirId, target_id: HirId) {
`
959
``
`-
debug_assert_eq!(id.owner, self.current_hir_id_owner);
`
960
``
`-
debug_assert_eq!(target_id.owner, self.current_hir_id_owner);
`
``
959
`+
assert_eq!(id.owner, self.current_hir_id_owner);
`
``
960
`+
assert_eq!(target_id.owner, self.current_hir_id_owner);
`
961
961
`if let Some(&a) = self.attrs.get(&target_id.local_id) {
`
962
``
`-
debug_assert!(!a.is_empty());
`
``
962
`+
assert!(!a.is_empty());
`
963
963
`self.attrs.insert(id.local_id, a);
`
964
964
`}
`
965
965
`}
`
`@@ -1438,7 +1438,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
`
1438
1438
`let id = if let Some(LifetimeRes::ElidedAnchor { start, end }) =
`
1439
1439
`self.resolver.get_lifetime_res(t.id)
`
1440
1440
`{
`
1441
``
`-
debug_assert_eq!(start.plus(1), end);
`
``
1441
`+
assert_eq!(start.plus(1), end);
`
1442
1442
` start
`
1443
1443
`} else {
`
1444
1444
`self.next_node_id()
`
`@@ -1846,16 +1846,16 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
`
1846
1846
`let res = match res {
`
1847
1847
`LifetimeRes::Param { param, .. } => hir::LifetimeKind::Param(param),
`
1848
1848
`LifetimeRes::Fresh { param, .. } => {
`
1849
``
`-
debug_assert_eq!(ident.name, kw::UnderscoreLifetime);
`
``
1849
`+
assert_eq!(ident.name, kw::UnderscoreLifetime);
`
1850
1850
`let param = self.local_def_id(param);
`
1851
1851
` hir::LifetimeKind::Param(param)
`
1852
1852
`}
`
1853
1853
`LifetimeRes::Infer => {
`
1854
``
`-
debug_assert_eq!(ident.name, kw::UnderscoreLifetime);
`
``
1854
`+
assert_eq!(ident.name, kw::UnderscoreLifetime);
`
1855
1855
` hir::LifetimeKind::Infer
`
1856
1856
`}
`
1857
1857
`LifetimeRes::Static { .. } => {
`
1858
``
`-
debug_assert!(matches!(ident.name, kw::StaticLifetime | kw::UnderscoreLifetime));
`
``
1858
`+
assert!(matches!(ident.name, kw::StaticLifetime | kw::UnderscoreLifetime));
`
1859
1859
` hir::LifetimeKind::Static
`
1860
1860
`}
`
1861
1861
`LifetimeRes::Error => hir::LifetimeKind::Error,
`
`@@ -2285,7 +2285,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
`
2285
2285
`) -> hir::Stmt<'hir> {
`
2286
2286
`let hir_id = self.next_id();
`
2287
2287
`if let Some(a) = attrs {
`
2288
``
`-
debug_assert!(!a.is_empty());
`
``
2288
`+
assert!(!a.is_empty());
`
2289
2289
`self.attrs.insert(hir_id.local_id, a);
`
2290
2290
`}
`
2291
2291
`let local = hir::LetStmt {
`