Skip to content

Commit c807785

Browse files
vshakitskiylpil
authored andcommitted
remove unresolved function
1 parent 2d0660d commit c807785

File tree

2 files changed

+0
-130
lines changed

2 files changed

+0
-130
lines changed

CHANGELOG.md

Lines changed: 0 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -41,118 +41,7 @@
4141

4242
- Fixed a bug that would result in not being able to rename an aliased pattern.
4343
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
44-
- Fixed two bugs that made gleam not update the manifest correctly, causing
45-
it to hit hex for version resolution on every operation and quickly reach
46-
request limits in large projects.
47-
([fruno](https://github.com/fruno-bulax/))
4844

49-
- Fixed a bug where renaming a variable from an alternative pattern would not
50-
rename all its occurrences.
51-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
52-
53-
- The compiler now reports an error for literal floats that are outside the
54-
floating point representable range on both targets. Previously it would only
55-
do that when compiling on the Erlang target.
56-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
57-
58-
- Fixed a typo in the error message emitted when trying to run a module that
59-
does not have a main function.
60-
([Louis Pilfold](https://github.com/lpil))
61-
62-
- Fixed a bug where the "Generate function" code action would be incorrectly
63-
offered when calling a function unsupported by the current target, leading to
64-
invalid code if the code action was accepted.
65-
([Surya Rose](https://github.com/GearsDatapacks))
66-
67-
- Fixed a bug where the formatter would not remove the right number of double
68-
negations from literal integers.
69-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
70-
71-
- Fixed a typo for the "Invalid number of patterns" error.
72-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
73-
74-
- Fixed a stack overflow when type checking some case expressions with
75-
thousands of branches.
76-
([fruno](https://github.com/fruno-bulax/))
77-
78-
- The "add omitted label" code action no longer adds labels to arguments
79-
being piped in or the callbacks of `use`.
80-
([fruno](https://github.com/fruno-bulax))
81-
82-
- Fixed a bug that caused the compiler to incorrectly optimise away runtime
83-
size checks in bit array patterns on the javascript target if they used
84-
calculations in the size of a segment (`_:size(wibble - wobble)`).
85-
([fruno](https://github.com/fruno-bulax/))
86-
87-
- Add a missing BitArray constructor return type in the prelude's TypeScript
88-
definitions.
89-
([Richard Viney](https://github.com/richard-viney))
90-
91-
- Fixed a bug where the BEAM would be shut down abruptly once the program had
92-
successfully finished running.
93-
([Louis Pilfold](https://github.com/lpil))
94-
95-
- Fixed a bug where the "pattern match on variable" code action would generate
96-
invalid code when applied on a list's tail.
97-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
98-
99-
- Fixed a bug where the "pattern match on variable" code action would generate
100-
invalid patterns by repeating a variable name already used in the same
101-
pattern.
102-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
103-
104-
- Fixed a bug where the "generate function" code action would pop up for
105-
variants.
106-
([Giacomo Cavalieri](https://github.com/giacomocavalieri))
107-
108-
- Fixed a bug where useless comparison warnings for floats compared literal
109-
strings, claiming for example that `1.0 == 1.` was always false.
110-
([fruno](https://github.com/fruno-bulax/))
111-
112-
- Fixed a bug where pattern variables in case clause guards would incorrectly
113-
shadow outer scope variables in other branches when compiling to JavaScript.
114-
([Elias Haider](https://github.com/EliasDerHai))
115-
116-
- Fix invalid TypeScript definition being generated for variant constructors
117-
with long names that take no arguments.
118-
([Richard Viney](https://github.com/richard-viney))
119-
120-
- Fixed a bug where the formatter would remove the `@deprecated` attribute from
121-
constants.
122-
([Surya Rose](https://github.com/GearsDatapacks))
123-
124-
- Fixed a bug where invalid code would be generated on the JavaScript target in
125-
cases where an underscore followed the decimal point in a float literal.
126-
([Patrick Dewey](https://github.com/ptdewey))
127-
128-
- Typos in the error message shown when trying to install a non-existent package
129-
have been fixed.
130-
([Ioan Clarke](https://github.com/ioanclarke))
131-
132-
- Fixed a bug where the compiler would generate invalid Erlang and TypeScript
133-
code for unused opaque types referencing private types.
134-
([Surya Rose](https://github.com/GearsDatapacks))
135-
136-
- Fixed a bug where the type checker would allow invalid programs when a large
137-
group of functions were all mutually recursive.
138-
([Surya Rose](https://github.com/GearsDatapacks))
139-
140-
- The compiler now provides a clearer error message when a function's return type
141-
is mistakenly declared using `:` instead of `->`.
142-
([Gurvir Singh](https://github.com/baraich))
143-
144-
- Fixed a bug where the data generated for searching documentation was in the
145-
wrong format, preventing it from being used by Hexdocs search.
146-
([Surya Rose](https://github.com/GearsDatapacks))
147-
148-
- Fixed a bug where the "collapse nested case" code action would produce invalid
149-
code on a list tail pattern.
150-
([Matias Carlander](https://github.com/matiascr))
151-
152-
- Fixed two bugs that made gleam not update the manifest correctly, causing
153-
it to hit hex for version resolution on every operation and quickly reach
154-
request limits in large projects.
155-
([fruno](https://github.com/fruno-bulax/))
15645
- Added an error message when attempting to update packages that are not dependencies
15746
of the project, instead of failing silently.
15847
([Etienne Boutet](https://github.com/EtienneBoutet)) and ([Vladislav Shakitskiy](https://github.com/vshakitskiy))

compiler-cli/src/dependencies/dependency_manager.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -141,25 +141,6 @@ where
141141
Ok(resolved)
142142
}
143143

144-
fn ensure_packages_exist_locally(
145-
&self,
146-
manifest: &Manifest,
147-
packages: Vec<EcoString>,
148-
) -> Result<()> {
149-
let missing_packages: Vec<String> = packages
150-
.iter()
151-
.filter(|package_name| !manifest.packages.iter().any(|p| &p.name == *package_name))
152-
.map(|eco| eco.to_string())
153-
.collect();
154-
155-
if !missing_packages.is_empty() {
156-
return Err(Error::PackagesToUpdateNotExist {
157-
packages: missing_packages,
158-
});
159-
}
160-
Ok(())
161-
}
162-
163144
pub fn resolve_and_download_versions(
164145
&self,
165146
paths: &ProjectPaths,

0 commit comments

Comments
 (0)