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 8 pull requests #93541

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b94da2b
Enable combining +crt-static and relocation-model=pic on x86_64-unkno…
bossmc Jun 16, 2021
6a88311
Check for -static-pie support before testing support
bossmc Nov 1, 2021
bae0da8
Implement data and vtable getters for `RawWaker`
oxalica Dec 12, 2021
d9b98f9
Eliminate duplicate codes of is_single_fp_element
woodenarrow Dec 17, 2021
368a83d
Configure panic hook backtrace behavior
Mark-Simulacrum Jan 26, 2022
746b3d8
Update compiler_builtins to fix duplicate symbols in `armv7-linux-and…
dcsommer Jan 28, 2022
7fcf774
update `FutureIncompatibilityReason`
lcnr Jan 27, 2022
ea62469
implement lint for suspicious auto trait impls
lcnr Jan 27, 2022
94b0a7b
silence lint in clippy
lcnr Feb 1, 2022
a1a30f7
add a rustc::query_stability lint
lcnr Jan 5, 2022
6970547
rustfmt is broken, manually reduce line length
lcnr Jan 19, 2022
4bbe970
review + rebase
lcnr Feb 1, 2022
7ebd48d
remove `TyS::same_type`
lcnr Jan 25, 2022
fd67672
Rollup merge of #86374 - bossmc:enable-static-pie-for-gnu, r=nagisa
matthiaskrgr Feb 1, 2022
9710096
Rollup merge of #91828 - oxalica:feat/waker-getters, r=dtolnay
matthiaskrgr Feb 1, 2022
9872329
Rollup merge of #92021 - woodenarrow:br_single_fp_element, r=Mark-Sim…
matthiaskrgr Feb 1, 2022
508fb37
Rollup merge of #92584 - lcnr:query-stable-lint, r=estebank
matthiaskrgr Feb 1, 2022
da8911e
Rollup merge of #93101 - Mark-Simulacrum:library-backtrace, r=yaahc
matthiaskrgr Feb 1, 2022
2707e49
Rollup merge of #93267 - lcnr:auto-trait-lint, r=nikomatsakis
matthiaskrgr Feb 1, 2022
2c3e750
Rollup merge of #93290 - lcnr:same_type, r=jackh726
matthiaskrgr Feb 1, 2022
fe62a2f
Rollup merge of #93436 - dcsommer:master, r=Mark-Simulacrum
matthiaskrgr Feb 1, 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
rustfmt is broken, manually reduce line length
lcnr committed Feb 1, 2022
commit 6970547d40108ba87cc64425c54c91a6caaebc5a
9 changes: 7 additions & 2 deletions compiler/rustc_lint/src/internal.rs
Original file line number Diff line number Diff line change
@@ -75,11 +75,16 @@ impl LateLintPass<'_> for QueryStability {
}

let (span, def_id, substs) = match expr.kind {
ExprKind::MethodCall(_, span, _, _) if let Some(def_id) = cx.typeck_results().type_dependent_def_id(expr.hir_id) => {
ExprKind::MethodCall(_, span, _, _)
if let Some(def_id) = cx.typeck_results().type_dependent_def_id(expr.hir_id) =>
{
(span, def_id, cx.typeck_results().node_substs(expr.hir_id))
},
_ => {
let &ty::FnDef(def_id, substs) = cx.typeck_results().node_type(expr.hir_id).kind() else { return };
let &ty::FnDef(def_id, substs) =
cx.typeck_results()
.node_type(expr.hir_id)
.kind() else { return };
(expr.span, def_id, substs)
}
};