Skip to content

Commit 45bad64

Browse files
committed
rustc_lint: remove superfluous assertion
`Option::unwrap` is called on the next line.
1 parent 6d2b84b commit 45bad64

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_lint/src/late.rs

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ use std::cell::Cell;
3333
/// Extract the `LintStore` from the query context.
3434
/// This function exists because we've erased `LintStore` as `dyn Any` in the session.
3535
pub fn unerased_lint_store(sess: &Session) -> &LintStore {
36-
assert!(sess.lint_store.is_some());
3736
let store: &Lrc<_> = sess.lint_store.as_ref().unwrap();
3837
let store: &dyn Any = &**store;
3938
store.downcast_ref().unwrap()

0 commit comments

Comments
 (0)