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

Rollup of 9 pull requests #94565

Closed
wants to merge 24 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7cee1b4
ARM: Only allow using d16-d31 with asm! when supported by the target
Amanieu Feb 24, 2022
2d854f9
Remove num_cpus dependency from bootstrap, build-manifest and rustc_s…
bjorn3 Mar 2, 2022
78e7d9b
Re-enable debuginfo tests that have been ignored
wesleywiser Mar 1, 2022
926bf1a
Pass LLVM string attributes as string slices
tmiasko Mar 3, 2022
bac5523
Use cgroup quotas for calculating `available_parallelism`
the8472 Jan 9, 2022
af6d2ed
hardcode /sys/fs/cgroup instead of doing a lookup via mountinfo
the8472 Mar 2, 2022
e18abbf
update available_parallelism docs since cgroups and sched_getaffinity…
the8472 Mar 2, 2022
37c1eb0
Doc: Fix use of quote instead of backstick in Adapter::map.
darnuria Mar 3, 2022
11c565f
Improve if/else formatting in macro_parser.rs.
nnethercote Mar 3, 2022
b9fabc3
Add a static size assertion for `MatcherPos`.
nnethercote Mar 3, 2022
643ba50
Introduce `MatcherPosRepetition`.
nnethercote Mar 3, 2022
e5f3fd6
Use a better return type for `inner_parse_loop`.
nnethercote Mar 3, 2022
97eb1b4
Change `initial_matcher_pos()` into `MatcherPos::new()`.
nnethercote Mar 3, 2022
5164884
Fix invalid lint_node_id being put on a removed stmt
Urgau Mar 3, 2022
00fffdd
all: fix some typos
cuishuang Mar 3, 2022
8e2102a
Rollup merge of #92697 - the8472:cgroups, r=joshtriplett
Dylan-DPC Mar 3, 2022
1895861
Rollup merge of #94339 - Amanieu:arm-d32, r=nagisa
Dylan-DPC Mar 3, 2022
441fb2d
Rollup merge of #94489 - wesleywiser:enable_some_debuginfo_tests, r=M…
Dylan-DPC Mar 3, 2022
886b7f1
Rollup merge of #94524 - bjorn3:remove_num_cpus, r=Mark-Simulacrum
Dylan-DPC Mar 3, 2022
e5db9fe
Rollup merge of #94539 - tmiasko:string-attributes, r=nikic
Dylan-DPC Mar 3, 2022
35a7043
Rollup merge of #94547 - nnethercote:parse_tt-cleanups, r=petrochenkov
Dylan-DPC Mar 3, 2022
a63b186
Rollup merge of #94551 - darnuria:doc-map-backstick, r=dtolnay
Dylan-DPC Mar 3, 2022
31eed28
Rollup merge of #94554 - Urgau:stmt-node-id-ice, r=petrochenkov
Dylan-DPC Mar 3, 2022
dfe6427
Rollup merge of #94555 - cuishuang:master, r=oli-obk
Dylan-DPC Mar 3, 2022
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 invalid lint_node_id being put on a removed stmt
Urgau committed Mar 3, 2022
commit 516488484ebcf83759d94bc11608971bb6331d5e
4 changes: 2 additions & 2 deletions compiler/rustc_expand/src/expand.rs
Original file line number Diff line number Diff line change
@@ -1841,7 +1841,7 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> {
self.flat_map_node(node)
}

fn flat_map_stmt(&mut self, mut node: ast::Stmt) -> SmallVec<[ast::Stmt; 1]> {
fn flat_map_stmt(&mut self, node: ast::Stmt) -> SmallVec<[ast::Stmt; 1]> {
// FIXME: invocations in semicolon-less expressions positions are expanded as expressions,
// changing that requires some compatibility measures.
if node.is_expr() {
@@ -1863,7 +1863,7 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> {
self.cx.current_expansion.is_trailing_mac = false;
res
}
_ => assign_id!(self, &mut node.id, || noop_flat_map_stmt(node, self)),
_ => noop_flat_map_stmt(node, self),
};
}

10 changes: 10 additions & 0 deletions src/test/ui/check-cfg/stmt-no-ice.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This test checks that there is no ICE with this code
//
// check-pass
// compile-flags:--check-cfg=names() -Z unstable-options

fn main() {
#[cfg(crossbeam_loom)]
//~^ WARNING unexpected `cfg` condition name
{}
}
10 changes: 10 additions & 0 deletions src/test/ui/check-cfg/stmt-no-ice.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
warning: unexpected `cfg` condition name
--> $DIR/stmt-no-ice.rs:7:11
|
LL | #[cfg(crossbeam_loom)]
| ^^^^^^^^^^^^^^
|
= note: `#[warn(unexpected_cfgs)]` on by default

warning: 1 warning emitted